Tado Thermostat plugin

For heating/cooling related questions in Domoticz

Moderator: leecollings

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

Re: Tado Thermostat plugin

Post by waltervl »

jannl wrote: Friday 04 April 2025 8:11 knip

Edit: obviously I asked the wrong question. I had to re-enable Tado through the URL, when is this needed? Every restart?
Probably when you restart Domoticz after more than 30 days as the token is valid for 30 days.
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: 673
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 »

hm, but no. First token was at 31 march, so that is not it.

Wonder if it is possible to automate that......
User avatar
waltervl
Posts: 5844
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Tado Thermostat plugin

Post by waltervl »

... 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
It should work when token is from 31 March
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: 2537
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 »

You should not need to refresh the token yourself if you keep Domoticz running.
If you stop Domoticz, wait 31 days, and start Domoticz again, then you need to do the URL thing again.
(Domoticz will tell you this every minute in the Log)
Quality outlives Quantity!
reinestein
Posts: 17
Joined: Friday 01 April 2022 8:52
Target OS: NAS (Synology & others)
Domoticz version: 2023.1
Contact:

Re: Tado Thermostat plugin

Post by reinestein »

I get this error:
Tado: Failed to retrieve API environment from https://app.tado.com/env.js

Running domoticz 2025.1 build 16672 on docker/unraid. I run the stable version not the latest, because of my Tuya plugin not working.

Any thoughts?
ViperAppie
Posts: 1
Joined: Thursday 22 May 2025 8:46
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Tado Thermostat plugin

Post by ViperAppie »

Got the same error since yesterday.

ado: Failed to retrieve API environment from https://app.tado.com/env.js

Following the post....
Last edited by ViperAppie on Thursday 22 May 2025 8:48, edited 1 time in total.
User avatar
gizmocuz
Posts: 2537
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 »

Seems TADO removed an environment API call.

I removed this call, and hard coded the endpoint in beta 16703 (others seem to do this as well)
All seems to be working again now
Quality outlives Quantity!
sloeber70
Posts: 23
Joined: Wednesday 08 July 2020 10:59
Target OS: Linux
Domoticz version: latest
Location: Bruges
Contact:

Re: Tado Thermostat plugin

Post by sloeber70 »

Hi..

after updating to latest beta:
Version: 2025.1 (build 16703)
Build Hash: adbdd30c1
Compile Date: 2025-05-22 09:41:41
dzVents Version: 3.1.8
Python Version: 3.11.2 (main, Apr 28 2025, 14:11:48) [GCC 12.2.0]

works again. thx guys !!!
Kind regards,
Sloeber70

Linux 12 Bookworm standard edition
Domoticz latest beta
Donski
Posts: 5
Joined: Wednesday 21 February 2024 20:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands
Contact:

Re: Tado Thermostat plugin

Post by Donski »

gizmocuz wrote: Thursday 22 May 2025 9:48 Seems TADO removed an environment API call.

I removed this call, and hard coded the endpoint in beta 16703 (others seem to do this as well)
All seems to be working again now
I had also had the API environment errors:

Code: Select all

 Error: Tado thermostaat: Failed to retrieve API environment from https://app.tado.com/env.js
And I was running:

Version: 2025.1
Build Hash: 89d5c900d
Compile Date: 2025-05-05 09:02:49
dzVents Version: 3.1.8
Python Version: 3.11.2 (main, Nov 30 2024, 21:22:50) [GCC 12.2.0]

Installed the beta as suggested and everything seems to work again.

Now I’m running:

Version: 2025.1 (build 16712)
Build Hash: e3d5ebea0
Compile Date: 2025-05-27 08:21:42
dzVents Version: 3.1.8
Python Version: 3.11.2 (main, Nov 30 2024, 21:22:50) [GCC 12.2.0]

But since 2 days encounter some issues with the tado API again. I use the geofencing away status of tado to control a couple of lights in my home and I noticed they were acting strange, randomly switching off and within a minute or so switching back on. I checked the tado app and here I was marked as home only the status in domoticz was away, after checking the error log I saw the following error:

Code: Select all

Error: Tado thermostaat: Failed to perform GET request to Tado Api: ; Response headers: HTTP/1.1 28 Timeout was reached
I tried rebooting my Pi but the problem persists. Does anybody now what’s causing this issue and how to fix it?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest