Skip to content

After reboot HA, Tado failed to setup: Login failed for unknown reason with status code 403 #141044

@Kraganov

Description

@Kraganov

The problem

After a reboot of HA, I suddenly got notified that the Tado integration failed to setup.
It showed a configure button to configure the fallback method, but this didn't change anything.
Tried to reconfigure by entering my password again, failed with "unexpected error"

When I check in the logs I first find this log:

2025-03-21 07:55:29.472 ERROR (MainThread) [homeassistant.util.logging] Exception in <function _register_repairs_platform at 0x7fd54ab43a60> when processing platform 'repairs': (, 'tado', <module 'homeassistant.components.tado.repairs' from '/usr/src/homeassistant/homeassistant/components/tado/repairs.py'>)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/repairs/issue_handler.py", line 118, in _register_repairs_platform
raise HomeAssistantError(f"Invalid repairs platform {platform}")
homeassistant.exceptions.HomeAssistantError: Invalid repairs platform <module 'homeassistant.components.tado.repairs' from '/usr/src/homeassistant/homeassistant/components/tado/repairs.py'>
s6-rc: info: service legacy-services: stopping

a bit further the following:

2025-03-21 07:58:15.190 ERROR (MainThread) [homeassistant.components.tado.config_flow] Unexpected exception
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/tado/config_flow.py", line 131, in async_step_reconfigure
await validate_input(self.hass, user_input)
File "/usr/src/homeassistant/homeassistant/components/tado/config_flow.py", line 52, in validate_input
tado = await hass.async_add_executor_job(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Tado, data[CONF_USERNAME], data[CONF_PASSWORD]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.13/site-packages/PyTado/interface/interface.py", line 46, in init
self._http = Http(
~~~~^
username=username,
^^^^^^^^^^^^^^^^^^
...<2 lines>...
debug=debug,
^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.13/site-packages/PyTado/http.py", line 153, in init
self._id, self._token_refresh = self._login()
~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/PyTado/http.py", line 333, in _login
raise TadoException(
f"Login failed for unknown reason with status code {response.status_code}"
)
PyTado.exceptions.TadoException: Login failed for unknown reason with status code 403
2025-03-21 07:58:55.684 ERROR (MainThread) [homeassistant.components.tado.config_flow] Unexpected exception
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/tado/config_flow.py", line 131, in async_step_reconfigure
await validate_input(self.hass, user_input)
File "/usr/src/homeassistant/homeassistant/components/tado/config_flow.py", line 52, in validate_input
tado = await hass.async_add_executor_job(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Tado, data[CONF_USERNAME], data[CONF_PASSWORD]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.13/site-packages/PyTado/interface/interface.py", line 46, in init
self._http = Http(
~~~~^
username=username,
^^^^^^^^^^^^^^^^^^
...<2 lines>...
debug=debug,
^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.13/site-packages/PyTado/http.py", line 153, in init
self._id, self._token_refresh = self._login()
~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/PyTado/http.py", line 333, in _login
raise TadoException(
f"Login failed for unknown reason with status code {response.status_code}"
)
PyTado.exceptions.TadoException: Login failed for unknown reason with status code 403
2025-03-21 07:59:02.994 DEBUG (MainThread) [homeassistant.components.tado] Setting up Tado connection
2025-03-21 08:00:23.117 DEBUG (MainThread) [homeassistant.components.tado] Setting up Tado connection
2025-03-21 08:01:43.644 DEBUG (MainThread) [homeassistant.components.tado] Setting up Tado connection
2025-03-21 08:01:49.793 ERROR (MainThread) [homeassistant.components.tado.config_flow] Unexpected exception
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/tado/config_flow.py", line 131, in async_step_reconfigure
await validate_input(self.hass, user_input)
File "/usr/src/homeassistant/homeassistant/components/tado/config_flow.py", line 52, in validate_input
tado = await hass.async_add_executor_job(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Tado, data[CONF_USERNAME], data[CONF_PASSWORD]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.13/site-packages/PyTado/interface/interface.py", line 46, in init
self._http = Http(
~~~~^
username=username,
^^^^^^^^^^^^^^^^^^
...<2 lines>...
debug=debug,
^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.13/site-packages/PyTado/http.py", line 153, in init
self._id, self._token_refresh = self._login()
~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/PyTado/http.py", line 333, in _login
raise TadoException(
f"Login failed for unknown reason with status code {response.status_code}"
)
PyTado.exceptions.TadoException: Login failed for unknown reason with status code 403
2025-03-21 08:03:03.977 DEBUG (MainThread) [homeassistant.components.tado] Setting up Tado connection
2025-03-21 08:04:24.316 DEBUG (MainThread) [homeassistant.components.tado] Setting up Tado connection
2025-03-21 08:05:44.813 DEBUG (MainThread) [homeassistant.components.tado] Setting up Tado connection
2025-03-21 08:07:05.072 DEBUG (MainThread) [homeassistant.components.tado] Setting up Tado connection
2025-03-21 08:08:25.370 DEBUG (MainThread) [homeassistant.components.tado] Setting up Tado connection
2025-03-21 08:09:45.577 DEBUG (MainThread) [homeassistant.components.tado] Setting up Tado connection
2025-03-21 08:09:58.427 DEBUG (MainThread) [homeassistant.components.tado] Setting up Tado connection
2025-03-21 08:10:03.572 DEBUG (MainThread) [homeassistant.components.tado] Setting up Tado connection
2025-03-21 08:10:14.034 DEBUG (MainThread) [homeassistant.components.tado] Setting up Tado connection
2025-03-21 08:10:19.377 ERROR (MainThread) [homeassistant.components.tado.config_flow] Unexpected exception
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/tado/config_flow.py", line 131, in async_step_reconfigure
await validate_input(self.hass, user_input)
File "/usr/src/homeassistant/homeassistant/components/tado/config_flow.py", line 52, in validate_input
tado = await hass.async_add_executor_job(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Tado, data[CONF_USERNAME], data[CONF_PASSWORD]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.13/site-packages/PyTado/interface/interface.py", line 46, in init
self._http = Http(
~~~~^
username=username,
^^^^^^^^^^^^^^^^^^
...<2 lines>...
debug=debug,
^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.13/site-packages/PyTado/http.py", line 153, in init
self._id, self._token_refresh = self._login()
~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/site-packages/PyTado/http.py", line 333, in _login
raise TadoException(
f"Login failed for unknown reason with status code {response.status_code}"
)
PyTado.exceptions.TadoException: Login failed for unknown reason with status code 403
2025-03-21 08:10:34.331 DEBUG (MainThread) [homeassistant.components.tado] Setting up Tado connection
s6-rc: info: service legacy-services: stopping
Found 3 non-daemonic threads.

I see with debug logging enable that the connections seems to be trying but not working.

I can see on my firewall that there is a successful connection to IP 18.239.69.94 URL auth.tado.com/

What version of Home Assistant Core has the issue?

core-2025.3.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Tado

Link to integration documentation on our website

https://www.home-assistant.io/integrations/tado

Diagnostics information

home-assistant_tado_2025-03-21T08-00-54.053Z.log

Example YAML snippet

Anything in the logs that might be useful for us?

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions