Tado Thermostat plugin

For heating/cooling related questions in Domoticz

Moderator: leecollings

User avatar
waltervl
Posts: 5721
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Tado Thermostat plugin

Post by waltervl »

Recently the Tado plugin stopped working. The log shows the error: Error: tado: Failed to retrieve API environment from https://my.tado.com/webapp/env.js

After some investigation is looks like the hard-coded API-url (in hardware/tado.ccp) is not correct anymore.

When opening the url in the browser, it redirects to https://app.tado.com/env.js and serves the env.json with the required information.
Just an heads up: This is fixed in latest 2024.7 beta see also https://github.com/domoticz/domoticz/issues/6196
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Afterburner
Posts: 17
Joined: Wednesday 26 February 2020 17:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Tado Thermostat plugin

Post by Afterburner »

Besides Domoticz, Dashticz etc I also use IoBroker, a Germany based homeautomation system. What is called a plugin in Domoticz is called a adapter in IoBroker. The Tado adapter got a update the reason why is also important for the Tado plugin within Domoticz as the login method will be token based from March 21 2025. Which is next Friday......

See https://github.com/DrozmotiX/ioBroker.tado/issues/954

It starts with the mailtext from Tado:

We’ve noticed that you’re using the unofficial tado° REST API with the password grant flow and the clients ‘tado-web-app’ or ‘public-api-preview’.

To meet strict security standards, we haven’t used the password grant flow in any official tado° applications for a while and we’ll be removing access to it on 21 March 2025.

If you’ve written your own software, we’ve provided an alternative method of authentication, please check out this article (see link above)for details.
We’ve already informed Home Assistant and python-tado, the largest open-source software systems using this authentication method, and they’ve confirmed that they'll provide an update by the deadline. If you’re using any other open-source or commercial home automation software, we recommend reaching out to them directly.

Is anyone working on this issue already??
User avatar
waltervl
Posts: 5721
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Tado Thermostat plugin

Post by waltervl »

This should be fixed in latest beta... Are you using latest beta? See also the forum post just before you posted this question.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Afterburner
Posts: 17
Joined: Wednesday 26 February 2020 17:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Tado Thermostat plugin

Post by Afterburner »

Should be fixed or is fixed? Yes, I read that forum post, but didn't see a link between the two issues, which might be my lack of knowledge of this stuff.
No, I don't use beta versions as I'am very much interested in any latest stable version, for many years already. Thanks for all the effort.
User avatar
waltervl
Posts: 5721
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Tado Thermostat plugin

Post by waltervl »

Frankly I also have no idea this is fixed in latest beta......
Perhaps other Tado - Domoticz users got this email too?

https://support.tado.com/en/articles/85 ... e-rest-api
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
frank12311
Posts: 5
Joined: Tuesday 12 December 2017 20:49
Target OS: Linux
Domoticz version: 2025.1
Location: The Netherlands
Contact:

Re: Tado Thermostat plugin

Post by frank12311 »

Hello!

This seems not to be fixed yet.
Sharp at 7am this morning the plugin is not working anymore and giving the following:
2025-03-21 20:42:40.719 Error: TADO: Received token is zero length.
User avatar
waltervl
Posts: 5721
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Tado Thermostat plugin

Post by waltervl »

Indeed, there is already a new GitHub issue for this.
https://github.com/domoticz/domoticz/issues/6278
But assistance from a developer with a tado and tado account will be needed...
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
gizmocuz
Posts: 2480
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Tado Thermostat plugin

Post by gizmocuz »

It's ready for testing, see the github issue
Quality outlives Quantity!
User avatar
gizmocuz
Posts: 2480
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Tado Thermostat plugin

Post by gizmocuz »

New beta (final Tado changes) is ready (16598)
Quality outlives Quantity!
DJathome
Posts: 27
Joined: Monday 26 July 2021 11:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Contact:

Re: Tado Thermostat plugin

Post by DJathome »

Gizmocuz has worked miracles once again ;)
I can confirm this solved the problem but i did not update to the latest ‘polished’ beta update yet.
Glad I could help by providing credentials to test! But credits are due to Gizmocuz!!!
DJ
HendrikJan
Posts: 5
Joined: Wednesday 04 April 2018 17:31
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Location: Noord-Brabant
Contact:

Re: Tado Thermostat plugin

Post by HendrikJan »

I also experience this problem. Last night at exactly 3:00 o'clock is stopped sending information.
First thing I tried was reboot my Raspberry PI and for the first time in 7 years the SD-card crashed :o
Luckily I made an image and this helped me bringing Domoticz back to life, but the problem with Tado stays.
I keep getting the message Tado Thermostaat: Received token is zero length
I tried upgrading to the latest Beta version but after that I couldn't give in credentials in the hardware settings of the Tado plugin.
I downgraded again to version 2024.7 but this problem stays. When I remove the Tado hardware I can't reinstall is; when I click submit nothing happens.
I put back an old database backup, Tado is in my list of hardware but does not communicate.

Does anyone have a great idea because I'm a bit out of inspiration :o

Thanks in advance :)
User avatar
waltervl
Posts: 5721
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Tado Thermostat plugin

Post by waltervl »

Tado has recently made a change in their API as indicated. You have to update Domoticz to latest beta and follow the procedure below as described in the GitHub issue by Gizmocuz.
The procedure is as following:

When the hardware is started for the first time, and it does not have authenticated before, a log message is displayed with an authentication URL starting with login.tado.com.
You can see this if you go to Setup->Log

You need to visit this URL to authenticate with your Tado user account.

Domoticz will check every 10 seconds if you have completed it and continue

All should work now

... When Domoticz is started another time, it will use the Refresh Token to get a new Access Token
The Refresh Token is valid for 30 days, so you need to start Domoticz within 30 days

In case there is a problem with the refresh token (30 days, or revoked), the Login message is presented again to the end user and you need to go to this URL again
Edit: Modified the procedure a little bit to make it more understandable.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
HendrikJan
Posts: 5
Joined: Wednesday 04 April 2018 17:31
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Location: Noord-Brabant
Contact:

Re: Tado Thermostat plugin

Post by HendrikJan »

Hi Walter,

I had read this post already, but it says
You need to visit this URL

What URL is meant there?
HendrikJan
Posts: 5
Joined: Wednesday 04 April 2018 17:31
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Location: Noord-Brabant
Contact:

Re: Tado Thermostat plugin

Post by HendrikJan »

Eureka :lol: The URL is mentioned in your log file after the upgrade. Now it works, took me some time :oops:
But thanks foor your help :D
sandeman684
Posts: 16
Joined: Sunday 08 January 2017 10:37
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Tado Thermostat plugin

Post by sandeman684 »

How is the URL mentioned exactly in the log? I see a very long message containing an IP address and a cloudfront URL. What should I be using?
And what version of Domoticz is required. The latest I see is 2024.7.
User avatar
gizmocuz
Posts: 2480
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Tado Thermostat plugin

Post by gizmocuz »

sandeman684 wrote: Monday 31 March 2025 12:40 How is the URL mentioned exactly in the log? I see a very long message containing an IP address and a cloudfront URL. What should I be using?
And what version of Domoticz is required. The latest I see is 2024.7.
You have to use the latest beta version, and you will see it mentioned quite clear... quite a few log lines about this

If you open two browser instances (side by side), on the left you 'disable' the TADO hardware, on the right you display the log
Now when you enable the TADO hardware on the left, you will see this message on the right side

Be sure to be on the latest beta first
Quality outlives Quantity!
User avatar
waltervl
Posts: 5721
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Tado Thermostat plugin

Post by waltervl »

sandeman684 wrote: Monday 31 March 2025 12:40 How is the URL mentioned exactly in the log? I see a very long message containing an IP address and a cloudfront URL. What should I be using?
And what version of Domoticz is required. The latest I see is 2024.7.
I updated their procedure description. You should see an url starting with login.tado.com when using latest beta.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
jannl
Posts: 666
Joined: Thursday 02 October 2014 6:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Geleen
Contact:

Re: Tado Thermostat plugin

Post by jannl »

Don't forget to set the loglevel to info/status
sandeman684
Posts: 16
Joined: Sunday 08 January 2017 10:37
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Tado Thermostat plugin

Post by sandeman684 »

Thanks a lot. It cost me some effort to get my Docker container on Synology upgraded, but now it works like a charm again.
jannl
Posts: 666
Joined: Thursday 02 October 2014 6:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Geleen
Contact:

Re: Tado Thermostat plugin

Post by jannl »

knip

Edit: obviously I asked the wrong question. I had to re-enable Tado through the URL, when is this needed? Every restart?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest