Git Product home page Git Product logo

tado-exporter's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

tado-exporter's Issues

Image won't build for ARM devices

I've tried to use the docker instructions as per the readme but I get a
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested error

I have tried pulling locally and updating the dockerfile with different targets but to no avail!

Thanks

How to make a helm chart?

Hi there, and thanks for releasing this in the open!

I'm wondering if there is a way to make a helm chart of this?
Im' totally not familiar with rust.

Thanks and keep it up!

outside temp

hi, thanks a lot for great exporter. Is there an option to get the outside temperature? It's reported in the TADO api.

Missing Field 'Access Token'

Running current release on Ubuntu - package download, tar extract. Userid & password exported as per instructions but the client failing with the following error:

[2022-11-21T18:00:36Z ERROR tado_exporter::tado::client] unable to authenticate: error decoding response body: missing field access_token at line 1 column 63

Use of ticker in tokio spawn is blocking async tasks

Hello great niche repo that i have found very useful, in my own grafana setup.

I noticed that when hitting the prometheus http endpoint it was very slow to respond and seemed to be related to the ticker duration.

Doing a bit of digging it seem that tokio sleep should be used rather than using the ticker as that wont cause the the async task to block other async tasks.
https://docs.rs/tokio/latest/tokio/time/fn.sleep.html

Happy to raise a PR to fix this issue.

Is grafana dashboard available?

Hello,

First of all thank you for this project!

I wonder if you can publish relevant grafana's dashboard code as well?

Cheers!

Hot Water Zone

getting this error with the Docker package

[2022-11-21T17:53:33Z ERROR tado_exporter::tado::client] unable to retrieve home zone 'Hot Water - Gas' state: error decoding response body: missing field insideTemperature at line 1 column 647

image

API response:

}, {
"id": 18,
"name": "Utility Room",
"type": "HEATING",
"dateCreated": "2022-06-06T18:35:46.600Z",
"deviceTypes": ["VA02"],
"devices": [{
"deviceType": "VA02",
"serialNo": "",
"shortSerialNo": "",
"currentFwVersion": "95.1",
"connectionState": {
"value": true,
"timestamp": "2022-11-21T18:54:07.657Z"
},
"characteristics": {
"capabilities": ["INSIDE_TEMPERATURE_MEASUREMENT", "IDENTIFY"]
},
"mountingState": {
"value": "CALIBRATED",
"timestamp": "2022-06-06T18:52:36.585Z"
},
"mountingStateWithError": "CALIBRATED",
"batteryState": "NORMAL",
"orientation": "VERTICAL",
"childLockEnabled": false,
"duties": ["ZONE_UI", "ZONE_DRIVER", "ZONE_LEADER"]
}],
"reportAvailable": false,
"showScheduleSetup": false,
"supportsDazzle": true,
"dazzleEnabled": true,
"dazzleMode": {
"supported": true,
"enabled": true
},
"openWindowDetection": {
"supported": true,
"enabled": true,
"timeoutInSeconds": 900
}
}, {
"id": 0,
"name": "Hot Water - Gas",
"type": "HOT_WATER",
"dateCreated": "2022-03-07T17:38:41.127Z",
"deviceTypes": ["BP02", "SU02"],
"devices": [{
"deviceType": "BP02",
"serialNo": "",
"shortSerialNo": "",
"currentFwVersion": "94.1",
"connectionState": {
"value": true,
"timestamp": "2022-11-21T18:50:24.008Z"
},
"characteristics": {
"capabilities": []
},
"isDriverConfigured": true,
"duties": ["ZONE_DRIVER"]
}, {
"deviceType": "SU02",
"serialNo": "",
"shortSerialNo": "",
"currentFwVersion": "90.1",
"connectionState": {
"value": true,
"timestamp": "2022-11-21T18:44:16.570Z"
},
"characteristics": {
"capabilities": ["INSIDE_TEMPERATURE_MEASUREMENT", "IDENTIFY"]
},
"batteryState": "NORMAL",
"duties": ["ZONE_UI", "ZONE_LEADER"]
}],
"reportAvailable": false,
"showScheduleSetup": false,
"supportsDazzle": false,
"dazzleEnabled": false,
"dazzleMode": {
"supported": false
},
"openWindowDetection": {
"supported": false
}
}]

Docker images for RaspberryPI

The current Docker image is made for AMD. Can you also make a Docker image for ARM/RaspberryPi so I can use it on the RaspberryPi?

HOT_WATER -> OFF

is there an option to set HOT_WATER to 0 while toggled off? i played with the temp lowering down to 30 degrees which works but usually the WATER system can be set to OFF during a timeframe at night. Would be interessting to see the "OFF" valve in the chart as well.

image

[2022-01-09T15:08:20Z INFO  tado_exporter::tado::metrics] -> HOT_WATER -> setting temperature (celsius): 30
[2022-01-09T15:08:20Z INFO  tado_exporter::tado::metrics] -> HOT_WATER -> setting temperature (fahrenheit): 86

Help with grafana

I think I've set up prometheus correction; am getting meaningful output when I look on webpage through port 9898
However, when I setup Grafana data source - the following error:
Error reading Prometheus: bad_response: readObjectStart: expect { or n, but found #, error found in #1 byte of ...|# HELP tado|..., bigger context ...|# HELP tado_activity_heating_power_percentage The %|...

Looking at webpage data, in amongst the tado_sensor data, there are every so often two lines which say:

HELP tado_sensor_temperature_value The temperature of a specific zone in celsius degres.

TYPE tado_sensor_temperature_value gauge

These seem to be the issue. Sorry for the ignorant question, but any thoughts?

insideTemperature error

I am using tado with the called "waterboiler"

image

but i am getting this error at the tado client routine:

ERROR tado_exporter::tado::client] unable to retrieve home zone 'Hotwater' state: error decoding response body: missing field insideTemperature at line 1 column 494

additional hints:

RU2051149312-0": {
        "active": true,
        "overrideMode": "manual",
        "autoTemp": 50,
        "ID": 0,
        "zoneName": "HotWater",
        "zoneType": "HOT_WATER",
        "deviceType": "RU",
        "serial": "RU2051149312",
        "type": "boiler",
        "canSetTemperature": true
}

how can i debug this?

Source of Grafana dashboard?

Hi!

First of all: thanks for the awesome exporter! Really appreciated!

Can you share the widget/dashboard code that is used in the Grafana screenshot?

Thanks in advance!

docker container under unraid 6.10rc2 no data

i have installed the tado-exporter docker but it seems that no data come to the prometheus container.

here is my log from the exporter container:-- tado° exporter configuration ---
Ticker seconds: 30
Username: [email protected]
Password:
Client secret: 00000000001111111111111111222222222222222211111111111xxxxxxxxxxxxxxxx
Bildschirmfoto 2021-12-18 um 15 16 33
Bildschirmfoto 2021-12-18 um 15 19 49


[2021-12-18T13:24:09Z INFO tado_exporter] starting tado° exporter on address: 0.0.0.0:9898
[2021-12-18T13:24:09Z INFO tado_exporter] waiting for the first tick in 30 seconds...
[2021-12-18T13:24:39Z INFO tado_exporter::tado::client] retrieving zone details for Schlafzimmer...
[2021-12-18T13:24:39Z INFO tado_exporter::tado::client] retrieving zone details for Bad...
[2021-12-18T13:24:39Z INFO tado_exporter::tado::client] retrieving zone details for Wohn/Ess Zimmer...
[2021-12-18T13:24:39Z INFO tado_exporter::tado::client] retrieving zone details for Duschbad...
[2021-12-18T13:24:39Z INFO tado_exporter::tado::client] retrieving zone details for Gaestezimmer...
[2021-12-18T13:24:39Z INFO tado_exporter::tado::client] retrieving zone details for Arbeitszimmer...
[2021-12-18T13:24:40Z INFO tado_exporter::tado::client] retrieving zone details for Diele...
[2021-12-18T13:24:40Z INFO tado_exporter::tado::client] retrieving zone details for WC...
[2021-12-18T13:24:40Z INFO tado_exporter::tado::client] retrieving zone details for Heizung/Diele unten...
[2021-12-18T13:24:40Z INFO tado_exporter::tado::client] retrieving zone details for Haustür/Diele...
[2021-12-18T13:24:40Z INFO tado_exporter::tado::client] retrieving zone details for Warmwasser...
[2021-12-18T13:24:40Z ERROR tado_exporter::tado::client] unable to retrieve home zone 'Warmwasser' state: error decoding response body: missing field insideTemperature at line 1 column 525

[2021-12-18T13:25:09Z INFO tado_exporter::tado::client] retrieving zone details for Schlafzimmer...
[2021-12-18T13:25:09Z INFO tado_exporter::tado::client] retrieving zone details for Bad...
[2021-12-18T13:25:09Z INFO tado_exporter::tado::client] retrieving zone details for Wohn/Ess Zimmer...
[2021-12-18T13:25:09Z INFO tado_exporter::tado::client] retrieving zone details for Duschbad...
[2021-12-18T13:25:09Z INFO tado_exporter::tado::client] retrieving zone details for Gaestezimmer...
[2021-12-18T13:25:09Z INFO tado_exporter::tado::client] retrieving zone details for Arbeitszimmer...
[2021-12-18T13:25:09Z INFO tado_exporter::tado::client] retrieving zone details for Diele...
[2021-12-18T13:25:09Z INFO tado_exporter::tado::client] retrieving zone details for WC...
[2021-12-18T13:25:09Z INFO tado_exporter::tado::client] retrieving zone details for Heizung/Diele unten...
[2021-12-18T13:25:09Z INFO tado_exporter::tado::client] retrieving zone details for Haustür/Diele...
[2021-12-18T13:25:09Z INFO tado_exporter::tado::client] retrieving zone details for Warmwasser...
[2021-12-18T13:25:09Z ERROR tado_exporter::tado::client] unable to retrieve home zone 'Warmwasser' state: error decoding response body: missing field insideTemperature at line 1 column 525

All seems to work but the metrics side are empty.

"HotWater" not properly parsed - ERROR

Setup: TADO V3 with OpenTherm connection to gas boiler (combo - heating and water).

Exporter thorws an error while parsing "HotWater" component:

2021-01-17T08:57:38Z ERROR tado_exporter::tado::client] unable to retrieve home zone 'Hot Wat
er' state: error decoding response body: missing field insideTemperature at line 1 column 36

tado client `access_token`

I am receiving this error from the docker hib published "latest" version.

ERROR tado_exporter::tado::client] unable to authenticate: error decoding response body: missing field access_token at line 1 column 63

the client secret is identfied correct.

any suggetions how to fix this?

TIA

Temperature scale is empty

Hi,

Installed the Tado exporter and the data is loaded into Prometheus. When loading the Grafana dashboard data is shown, but the timescale stays empty (see screenshot).

Any idea how to solve this?

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.