core icon indicating copy to clipboard operation
core copied to clipboard

Echobee Integration - Authentication failure

Open lordwizzard opened this issue 1 week ago • 24 comments

The problem

Receiving this error in the log file from the Echobee Integration authentication failure as processed in the helpers/entity.py

Logger: homeassistant.helpers.entity Source: helpers/entity.py:961 First occurred: 3:29:31 PM (23 occurrences) Last logged: 5:38:32 PM

Update for climate.thermostat fails Traceback (most recent call last): File "/usr/local/lib/python3.13/site-packages/pyecobee/init.py", line 997, in _request response.raise_for_status() ~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/local/lib/python3.13/site-packages/requests/models.py", line 1026, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://api.ecobee.com/1/thermostat?json=%7B%22selection%22%3A+%7B%22selectionType%22%3A+%22registered%22%2C+%22includeRuntime%22%3A+%22true%22%2C+%22includeSensors%22%3A+%22true%22%2C+%22includeProgram%22%3A+%22true%22%2C+%22includeEquipmentStatus%22%3A+%22true%22%2C+%22includeEvents%22%3A+%22true%22%2C+%22includeWeather%22%3A+%22true%22%2C+%22includeSettings%22%3A+%22true%22%2C+%22includeLocation%22%3A+%22true%22%7D%7D

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 961, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1312, in async_device_update await self.async_update() File "/usr/src/homeassistant/homeassistant/components/ecobee/climate.py", line 398, in async_update await self.data.update() File "/usr/src/homeassistant/homeassistant/components/ecobee/init.py", line 62, in update await self._hass.async_add_executor_job(self.ecobee.update) 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/pyecobee/init.py", line 327, in update return self.get_thermostats() ~~~~~~~~~~~~~~~~~~~~^^ File "/usr/local/lib/python3.13/site-packages/pyecobee/init.py", line 303, in get_thermostats response = self._request_with_refresh( "GET", ECOBEE_ENDPOINT_THERMOSTAT, log_msg_action, params=params ) File "/usr/local/lib/python3.13/site-packages/pyecobee/init.py", line 939, in _request_with_refresh response = self._request( method, endpoint, log_msg_action, params, body, auth_request ) File "/usr/local/lib/python3.13/site-packages/pyecobee/init.py", line 1022, in _request raise InvalidTokenError( "ecobee tokens invalid; re-authentication required" ) pyecobee.errors.InvalidTokenError: ecobee tokens invalid; re-authentication required

The Echobee site talks about a refresh token stored by third party in order to be given a new token to authenicate

What version of Home Assistant Core has the issue?

Installation method Home Assistant OS Core 2025.12.3 Supervisor 2025.12.3 Operating System 16.3 Frontend 20251203.2

What was the last working version of Home Assistant Core?

2025.11.3

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Echobee

Link to integration documentation on our website

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

Diagnostics information

Logger: homeassistant.helpers.entity Source: helpers/entity.py:961 First occurred: 3:29:31 PM (23 occurrences) Last logged: 5:38:32 PM

Update for climate.thermostat fails Traceback (most recent call last): File "/usr/local/lib/python3.13/site-packages/pyecobee/init.py", line 997, in _request response.raise_for_status() ~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/local/lib/python3.13/site-packages/requests/models.py", line 1026, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://api.ecobee.com/1/thermostat?json=%7B%22selection%22%3A+%7B%22selectionType%22%3A+%22registered%22%2C+%22includeRuntime%22%3A+%22true%22%2C+%22includeSensors%22%3A+%22true%22%2C+%22includeProgram%22%3A+%22true%22%2C+%22includeEquipmentStatus%22%3A+%22true%22%2C+%22includeEvents%22%3A+%22true%22%2C+%22includeWeather%22%3A+%22true%22%2C+%22includeSettings%22%3A+%22true%22%2C+%22includeLocation%22%3A+%22true%22%7D%7D

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 961, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1312, in async_device_update await self.async_update() File "/usr/src/homeassistant/homeassistant/components/ecobee/climate.py", line 398, in async_update await self.data.update() File "/usr/src/homeassistant/homeassistant/components/ecobee/init.py", line 62, in update await self._hass.async_add_executor_job(self.ecobee.update) 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/pyecobee/init.py", line 327, in update return self.get_thermostats() ~~~~~~~~~~~~~~~~~~~~^^ File "/usr/local/lib/python3.13/site-packages/pyecobee/init.py", line 303, in get_thermostats response = self._request_with_refresh( "GET", ECOBEE_ENDPOINT_THERMOSTAT, log_msg_action, params=params ) File "/usr/local/lib/python3.13/site-packages/pyecobee/init.py", line 939, in _request_with_refresh response = self._request( method, endpoint, log_msg_action, params, body, auth_request ) File "/usr/local/lib/python3.13/site-packages/pyecobee/init.py", line 1022, in _request raise InvalidTokenError( "ecobee tokens invalid; re-authentication required" ) pyecobee.errors.InvalidTokenError: ecobee tokens invalid; re-authentication required

Example YAML snippet


Anything in the logs that might be useful for us?


Additional information

https://developer.ecobee.com/home/developer/api/documentation/v1/auth/auth-intro.shtml https://www.ecobee.com/home/developer/api/documentation/v1/auth/token-refresh.shtml

lordwizzard avatar Dec 20 '25 01:12 lordwizzard