Page 5 of 6

Re: Tado Thermostat plugin

Posted: Friday 06 December 2024 14:57
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

Re: Tado Thermostat plugin

Posted: Sunday 16 March 2025 20:43
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??

Re: Tado Thermostat plugin

Posted: Monday 17 March 2025 0:22
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.

Re: Tado Thermostat plugin

Posted: Monday 17 March 2025 11:43
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.

Re: Tado Thermostat plugin

Posted: Monday 17 March 2025 14:07
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

Re: Tado Thermostat plugin

Posted: Friday 21 March 2025 20:43
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.

Re: Tado Thermostat plugin

Posted: Friday 21 March 2025 20:48
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...

Re: Tado Thermostat plugin

Posted: Friday 28 March 2025 11:56
by gizmocuz
It's ready for testing, see the github issue

Re: Tado Thermostat plugin

Posted: Saturday 29 March 2025 9:11
by gizmocuz
New beta (final Tado changes) is ready (16598)

Re: Tado Thermostat plugin

Posted: Saturday 29 March 2025 9:52
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!!!

Re: Tado Thermostat plugin

Posted: Sunday 30 March 2025 18:31
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 :)

Re: Tado Thermostat plugin

Posted: Sunday 30 March 2025 19:45
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.

Re: Tado Thermostat plugin

Posted: Sunday 30 March 2025 20:47
by HendrikJan
Hi Walter,

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

What URL is meant there?

Re: Tado Thermostat plugin

Posted: Sunday 30 March 2025 21:22
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

Re: Tado Thermostat plugin

Posted: Monday 31 March 2025 12:40
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.

Re: Tado Thermostat plugin

Posted: Monday 31 March 2025 12:48
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

Re: Tado Thermostat plugin

Posted: Monday 31 March 2025 13:22
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.

Re: Tado Thermostat plugin

Posted: Monday 31 March 2025 19:29
by jannl
Don't forget to set the loglevel to info/status

Re: Tado Thermostat plugin

Posted: Tuesday 01 April 2025 11:06
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.

Re: Tado Thermostat plugin

Posted: Friday 04 April 2025 8:11
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?