Core: Netatmo worked briefly after 0.116.2 fix ... now sensors are "unavailable"

Created on 12 Oct 2020  路  15Comments  路  Source: home-assistant/core

The problem


a fix for netatmo integration was released with version 0.116.2 ... integration worked after fix, however a few days later after some restarts (for other development) ... netatmo sensors are showing "unavailable" (see trackback below)

Environment

arch | x86_64
-- | --
dev | false
docker | false
hassio | false
installation_type | Home Assistant Core
os_name | Linux
os_version | 4.15.0-118-generic
python_version | 3.8.0
timezone | America/Los_Angeles
version | 0.116.2
virtualenv | true

  • Home Assistant Core release with the issue: 0.116.2
  • Last working Home Assistant Core release (if known): 0.115.x
  • Operating environment (OS/Container/Supervised/Core): ubuntu 18.04 venv python 3.8
  • Integration causing this issue: netatmo
  • Link to integration documentation on our website: https://www.home-assistant.io/integrations/netatmo/

Problem-relevant configuration.yaml

netatmo:
  client_id: !secret netatmo_client_id
  client_secret: !secret netatmo_secret

Traceback/Error logs

2020-10-12 05:15:51 INFO (MainThread) [homeassistant.setup] Setting up netatmo
2020-10-12 05:15:51 INFO (MainThread) [homeassistant.setup] Setup of domain netatmo took 0.0 seconds
2020-10-12 05:15:52 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=device_tracker.netatmo_personal_weather_statio, old_state=None, new_state=<state device_tracker.netatmo_personal_weather_statio=not_home; source_type=None, friendly_name=Netatmo-Personal-Weather-Statio @ 2020-10-12T05:15:52.744289-07:00>>
2020-10-12 05:15:58 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.netatmo_ul_sum_rain_24i, old_state=None, new_state=<state sensor.netatmo_ul_sum_rain_24i=unknown; unit_of_measurement=", friendly_name=netatmo_ul_sum_rain_24i @ 2020-10-12T05:15:58.605561-07:00>>
2020-10-12 05:15:58 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.netatmo_ul_sum_rain_1i, old_state=None, new_state=<state sensor.netatmo_ul_sum_rain_1i=unknown; unit_of_measurement=", friendly_name=netatmo_ul_sum_rain_1i @ 2020-10-12T05:15:58.605648-07:00>>
2020-10-12 05:15:58 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=netatmo, service=register_webhook>
2020-10-12 05:15:58 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=netatmo, service=unregister_webhook>
2020-10-12 05:15:58 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=netatmo>
2020-10-12 05:15:58 INFO (MainThread) [homeassistant.components.camera] Setting up camera.netatmo
2020-10-12 05:15:58 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.netatmo
2020-10-12 05:15:58 INFO (MainThread) [homeassistant.components.climate] Setting up climate.netatmo
2020-10-12 05:15:59 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=netatmo, service=set_persons_home>
2020-10-12 05:15:59 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=netatmo, service=set_person_away>
2020-10-12 05:15:59 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=netatmo, service=set_camera_light>
2020-10-12 05:15:59 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.netatmo_double_ll_ranch_temperature, old_state=None, new_state=<state sensor.netatmo_double_ll_ranch_temperature=unavailable; unit_of_measurement=掳C, friendly_name=Netatmo Double LL Ranch Temperature, device_class=temperature @ 2020-10-12T05:15:59.486776-07:00>>
2020-10-12 05:15:59 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.netatmo_double_ll_ranch_co2, old_state=None, new_state=<state sensor.netatmo_double_ll_ranch_co2=unavailable; unit_of_measurement=ppm, friendly_name=Netatmo Double LL Ranch CO2, icon=mdi:molecule-co2 @ 2020-10-12T05:15:59.487218-07:00>>
2020-10-12 05:15:59 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.netatmo_double_ll_ranch_humidity, old_state=None, new_state=<state sensor.netatmo_double_ll_ranch_humidity=unavailable; unit_of_measurement=%, friendly_name=Netatmo Double LL Ranch Humidity, device_class=humidity @ 2020-10-12T05:15:59.487593-07:00>>
2020-10-12 05:15:59 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.netatmo_double_ll_ranch_noise, old_state=None, new_state=<state sensor.netatmo_double_ll_ranch_noise=unavailable; unit_of_measurement=dB, friendly_name=Netatmo Double LL Ranch Noise, icon=mdi:volume-high @ 2020-10-12T05:15:59.487960-07:00>>
2020-10-12 05:15:59 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.netatmo_double_ll_ranch_pressure, old_state=None, new_state=<state sensor.netatmo_double_ll_ranch_pressure=unavailable; unit_of_measurement=mbar, friendly_name=Netatmo Double LL Ranch Pressure, device_class=pressure @ 2020-10-12T05:15:59.488323-07:00>>
2020-10-12 05:15:59 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.netatmo_double_ll_ranch_wifi, old_state=None, new_state=<state sensor.netatmo_double_ll_ranch_wifi=unavailable; friendly_name=Netatmo Double LL Ranch Wifi, icon=mdi:wifi @ 2020-10-12T05:15:59.488690-07:00>>
2020-10-12 05:15:59 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.netatmo_double_ll_ranch_min_temp, old_state=None, new_state=<state sensor.netatmo_double_ll_ranch_min_temp=unavailable; unit_of_measurement=掳C, friendly_name=Netatmo Double LL Ranch Min Temp., device_class=temperature @ 2020-10-12T05:15:59.489066-07:00>>
2020-10-12 05:15:59 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.netatmo_double_ll_ranch_max_temp, old_state=None, new_state=<state sensor.netatmo_double_ll_ranch_max_temp=unavailable; unit_of_measurement=掳C, friendly_name=Netatmo Double LL Ranch Max Temp., device_class=temperature @ 2020-10-12T05:15:59.489434-07:00>>
2020-10-12 05:15:59 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.netatmo_double_ll_ranch_reachability, old_state=None, new_state=<state sensor.netatmo_double_ll_ranch_reachability=unavailable; friendly_name=Netatmo Double LL Ranch Reachability, icon=mdi:signal @ 2020-10-12T05:15:59.489818-07:00>>
2020-10-12 05:15:59 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.netatmo_double_ll_ranch_wifi_level, old_state=None, new_state=<state sensor.netatmo_double_ll_ranch_wifi_level=unavailable; unit_of_measurement=dBm, friendly_name=Netatmo Double LL Ranch Wifi Level, device_class=signal_strength @ 2020-10-12T05:15:59.490202-07:00>>
2020-10-12 05:15:59 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.netatmo_double_ll_ranch_shed_temperature, old_state=None, new_state=<state sensornetatmo_double_ll_ranch_shed_temperature=unavailable; unit_of_measurement=掳C, friendly_name=Netatmo Double LL Ranch Shed Temperature, device_class=temperature @ 2020-10-12T05:15:59.490594-07:00>>
2020-10-12 05:15:59 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.netatmo_double_ll_ranch_shed_humidity, old_state=None, new_state=<state sensor.netatmo_double_ll_ranch_shed_humidity=unavailable; unit_of_measurement=%, friendly_name=Netatmo Double LL Ranch Shed Humidity, device_class=humidity @ 2020-10-12T05:15:59.494153-07:00>>
2020-10-12 05:15:59 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.netatmo_double_ll_ranch_shed_radio, old_state=None, new_state=<state sensor.netatmo_double_ll_ranch_shed_radio=unavailable; friendly_name=Netatmo Double LL Ranch Shed Radio, icon=mdi:signal @ 2020-10-12T05:15:59.494660-07:00>>
2020-10-12 05:15:59 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.netatmo_double_ll_ranch_shed_battery, old_state=None, new_state=<state sensor.netatmo_double_ll_ranch_shed_battery=unavailable; unit_of_measurement=, friendly_name=Netatmo Double LL Ranch Shed Battery, icon=mdi:battery @ 2020-10-12T05:15:59.495065-07:00>>
2020-10-12 05:15:59 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.netatmo_double_ll_ranch_shed_battery_percent, old_state=None, new_state=<state sensor.netatmo_double_ll_ranch_shed_battery_percent=unavailable; unit_of_measurement=%, friendly_name=Netatmo Double LL Ranch Shed Battery Percent, device_class=battery @ 2020-10-12T05:15:59.495945-07:00>>
2020-10-12 05:15:59 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.netatmo_double_ll_ranch_shed_min_temp, old_state=None, new_state=<state sensor.netatmo_double_ll_ranch_shed_min_temp=unavailable; unit_of_measurement=掳C, friendly_name=Netatmo Double LL Ranch Shed Min Temp., device_class=temperature @ 2020-10-12T05:15:59.496344-07:00>>
2020-10-12 05:15:59 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.netatmo_double_ll_ranch_shed_max_temp, old_state=None, new_state=<state sensor.netatmo_double_ll_ranch_shed_max_temp=unavailable; unit_of_measurement=掳C, friendly_name=Netatmo Double LL Ranch Shed Max Temp., device_class=temperature @ 2020-10-12T05:15:59.496724-07:00>>
2020-10-12 05:15:59 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.netatmo_double_ll_ranch_shed_reachability, old_state=None, new_state=<state sensor.netatmo_double_ll_ranch_shed_reachability=unavailable; friendly_name=Netatmo Double LL Ranch Shed Reachability, icon=mdi:signal @ 2020-10-12T05:15:59.497085-07:00>>
2020-10-12 05:15:59 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.netatmo_double_ll_ranch_shed_radio_level, old_state=None, new_state=<state sensornetatmo_double_ll_ranch_shed_radio_level=unavailable; unit_of_measurement=, friendly_name=Netatmo Double LL Ranch Shed Radio Level, device_class=signal_strength @ 2020-10-12T05:15:59.497465-07:00>>
2020-10-12 05:15:59 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.netatmo_double_ll_ranch_shed_battery_level, old_state=None, new_state=<state sensor.netatmo_double_ll_ranch_shed_battery_level=unavailable; unit_of_measurement=, friendly_name=Netatmo Double LL Ranch Shed Battery Level, icon=mdi:battery @ 2020-10-12T05:15:59.497844-07:00>>
2020-10-12 05:15:59 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.netatmo_double_ll_ranch_ul_rain, old_state=None, new_state=<state sensor.netatmo_double_ll_ranch_ul_rain=unavailable; unit_of_measurement=mm, friendly_name=Netatmo Double LL Ranch UL Rain, icon=mdi:weather-rainy @ 2020-10-12T05:15:59.498251-07:00>>
2020-10-12 05:15:59 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.netatmo_double_ll_ranch_ul_rain_last_24h, old_state=None, new_state=<state sensornetatmo_double_ll_ranch_ul_rain_last_24h=unavailable; unit_of_measurement=mm, friendly_name=Netatmo Double LL Ranch UL Rain last 24h, icon=mdi:weather-rainy @ 2020-10-12T05:15:59.498642-07:00>>
2020-10-12 05:15:59 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.netatmo_double_ll_ranch_ul_rain_last_hour, old_state=None, new_state=<state sensor.netatmo_double_ll_ranch_ul_rain_last_hour=unavailable; unit_of_measurement=mm, friendly_name=Netatmo Double LL Ranch UL Rain last hour, icon=mdi:weather-rainy @ 2020-10-12T05:15:59.499040-07:00>>
2020-10-12 05:15:59 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.netatmo_double_ll_ranch_ul_radio, old_state=None, new_state=<state sensor.netatmo_double_ll_ranch_ul_radio=unavailable; friendly_name=Netatmo Double LL Ranch UL Radio, icon=mdi:signal @ 2020-10-12T05:15:59.501630-07:00>>
2020-10-12 05:15:59 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.netatmo_double_ll_ranch_ul_battery, old_state=None, new_state=<state sensor.netatmo_double_ll_ranch_ul_battery=unavailable; unit_of_measurement=, friendly_name=Netatmo Double LL Ranch UL Battery, icon=mdi:battery @ 2020-10-12T05:15:59.502066-07:00>>
2020-10-12 05:15:59 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.netatmo_double_ll_ranch_ul_battery_percent, old_state=None, new_state=<state sensor.netatmo_double_ll_ranch_ul_battery_percent=unavailable; unit_of_measurement=%, friendly_name=Netatmo Double LL Ranch UL Battery Percent, device_class=battery @ 2020-10-12T05:15:59.502460-07:00>>
2020-10-12 05:15:59 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.netatmo_double_ll_ranch_ul_reachability, old_state=None, new_state=<state sensor.netatmo_double_ll_ranch_ul_reachability=unavailable; friendly_name=Netatmo Double LL Ranch UL Reachability, icon=mdi:signal @ 2020-10-12T05:15:59.502854-07:00>>
2020-10-12 05:15:59 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.netatmo_double_ll_ranch_ul_radio_level, old_state=None, new_state=<state sensor.netatmo_double_ll_ranch_ul_radio_level=unavailable; unit_of_measurement=, friendly_name=Netatmo Double LL Ranch UL Radio Level, device_class=signal_strength @ 2020-10-12T05:15:59.503233-07:00>>
2020-10-12 05:15:59 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.netatmo_double_ll_ranch_ul_battery_level, old_state=None, new_state=<state sensornetatmo_double_ll_ranch_ul_battery_level=unavailable; unit_of_measurement=, friendly_name=Netatmo Double LL Ranch UL Battery Level, icon=mdi:battery @ 2020-10-12T05:15:59.503599-07:00>>
2020-10-12 05:15:59 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=netatmo, service=set_schedule>
2020-10-12 05:16:46 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.netatmo_ul_sum_rain_24i, old_state=<state sensor.netatmo_ul_sum_rain_24i=unknown; unit_of_measurement=", friendly_name=netatmo_ul_sum_rain_24i @ 2020-10-12T05:15:58.605561-07:00>, new_state=<state sensor.netatmo_ul_sum_rain_24i=0.0; unit_of_measurement=", friendly_name=netatmo_ul_sum_rain_24i @ 2020-10-12T05:16:46.219246-07:00>>
2020-10-12 05:16:46 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.netatmo_ul_sum_rain_1i, old_state=<state sensor.netatmo_ul_sum_rain_1i=unknown; unit_of_measurement=", friendly_name=netatmo_ul_sum_rain_1i @ 2020-10-12T05:15:58.605648-07:00>, new_state=<state sensor.netatmo_ul_sum_rain_1i=0.0; unit_of_measurement=", friendly_name=netatmo_ul_sum_rain_1i @ 2020-10-12T05:16:46.219428-07:00>>
2020-10-12 05:16:46 INFO (MainThread) [homeassistant.components.netatmo] Register Netatmo webhook: https://marotta-ha.ddns.net/api/webhook/c03bbe3d326d522188ff9a4f28f32264351df24a64909ec504f82b8e17061161
2020-10-12 05:16:46 INFO (MainThread) [homeassistant.components.light] Setting up light.netatmo
2020-10-12 05:16:46 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event netatmo_event[L]: type=None, data=user_id=57e93f5c6d1dbdaa2a8bad9a, user=id=57e93f5c6d1dbdaa2a8bad9a, [email protected], push_type=webhook_activation>
2020-10-12 05:16:46 INFO (MainThread) [homeassistant.components.netatmo.data_handler] Netatmo webhook successfully registered

Additional information

netatmo

All 15 comments

Hey there @cgtobi, mind taking a look at this issue as its been labeled with an integration (netatmo) you are listed as a codeowner for? Thanks!
(message by CodeOwnersMention)

I already restarted. No sensors available:
116.2
hass.io on raspb3+
Error logs:
````
Logger: homeassistant.components.sensor
Source: components/cloud/account_link.py:146
Integration: Sensor (documentation, issues)
First occurred: 17:01:52 (1 occurrences)
Last logged: 17:01:52

Error while setting up netatmo platform for sensor
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/pyatmo/auth.py", line 144, in query
rsp = self._oauth.post(url=url, data=params, timeout=timeout)
File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 578, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/usr/local/lib/python3.8/site-packages/requests_oauthlib/oauth2_session.py", line 477, in request
url, headers, data = self._client.add_token(
File "/usr/local/lib/python3.8/site-packages/oauthlib/oauth2/rfc6749/clients/base.py", line 198, in add_token
raise TokenExpiredError()
oauthlib.oauth2.rfc6749.errors.TokenExpiredError: (token_expired)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 193, in _async_setup_platform
await asyncio.shield(task)
File "/usr/src/homeassistant/homeassistant/components/netatmo/sensor.py", line 160, in async_setup_entry
async_add_entities(await find_entities(data_class_name), True)
File "/usr/src/homeassistant/homeassistant/components/netatmo/sensor.py", line 109, in find_entities
await data_handler.register_data_class(data_class_name, data_class_name, None)
File "/usr/src/homeassistant/homeassistant/components/netatmo/data_handler.py", line 149, in register_data_class
await self.async_fetch_data(
File "/usr/src/homeassistant/homeassistant/components/netatmo/data_handler.py", line 117, in async_fetch_data
self.data[data_class_entry] = await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(self.args, *self.kwargs)
File "/usr/local/lib/python3.8/site-packages/pyatmo/weather_station.py", line 30, in __init__
resp = self.auth.post_request(url=self.url_req)
File "/usr/local/lib/python3.8/site-packages/pyatmo/auth.py", line 159, in post_request
resp = query(url, params, timeout, 3)
File "/usr/local/lib/python3.8/site-packages/pyatmo/auth.py", line 153, in query
self._oauth.token = self.refresh_tokens()
File "/usr/src/homeassistant/homeassistant/components/netatmo/api.py", line 33, in refresh_tokens
run_coroutine_threadsafe(
File "/usr/local/lib/python3.8/concurrent/futures/_base.py", line 439, in result
return self.__get_result()
File "/usr/local/lib/python3.8/concurrent/futures/_base.py", line 388, in __get_result
raise self._exception
File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 444, in async_ensure_token_valid
new_token = await self.implementation.async_refresh_token(self.token)
File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 81, in async_refresh_token
new_token = await self._async_refresh_token(token)
File "/usr/src/homeassistant/homeassistant/components/cloud/account_link.py", line 146, in _async_refresh_token
return await account_link.async_fetch_access_token(
File "/usr/local/lib/python3.8/site-packages/hass_nabucasa/account_link.py", line 112, in async_fetch_access_token
resp.raise_for_status()
File "/usr/local/lib/python3.8/site-packages/aiohttp/client_reqrep.py", line 941, in raise_for_status
raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 400, message='Bad Request', url=URL('https://account-link.nabucasa.com/refresh_token/netatmo')
and
Logger: homeassistant.components.climate
Source: components/cloud/account_link.py:146
Integration: Klima (documentation, issues)
First occurred: 17:01:49 (1 occurrences)
Last logged: 17:01:49

Error while setting up netatmo platform for climate
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/pyatmo/auth.py", line 144, in query
rsp = self._oauth.post(url=url, data=params, timeout=timeout)
File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 578, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/usr/local/lib/python3.8/site-packages/requests_oauthlib/oauth2_session.py", line 477, in request
url, headers, data = self._client.add_token(
File "/usr/local/lib/python3.8/site-packages/oauthlib/oauth2/rfc6749/clients/base.py", line 198, in add_token
raise TokenExpiredError()
oauthlib.oauth2.rfc6749.errors.TokenExpiredError: (token_expired)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 193, in _async_setup_platform
await asyncio.shield(task)
File "/usr/src/homeassistant/homeassistant/components/netatmo/climate.py", line 106, in async_setup_entry
await data_handler.register_data_class(
File "/usr/src/homeassistant/homeassistant/components/netatmo/data_handler.py", line 149, in register_data_class
await self.async_fetch_data(
File "/usr/src/homeassistant/homeassistant/components/netatmo/data_handler.py", line 117, in async_fetch_data
self.data[data_class_entry] = await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(self.args, *self.kwargs)
File "/usr/local/lib/python3.8/site-packages/pyatmo/thermostat.py", line 33, in __init__
resp = self.auth.post_request(url=_GETHOMESDATA_REQ)
File "/usr/local/lib/python3.8/site-packages/pyatmo/auth.py", line 159, in post_request
resp = query(url, params, timeout, 3)
File "/usr/local/lib/python3.8/site-packages/pyatmo/auth.py", line 153, in query
self._oauth.token = self.refresh_tokens()
File "/usr/src/homeassistant/homeassistant/components/netatmo/api.py", line 33, in refresh_tokens
run_coroutine_threadsafe(
File "/usr/local/lib/python3.8/concurrent/futures/_base.py", line 439, in result
return self.__get_result()
File "/usr/local/lib/python3.8/concurrent/futures/_base.py", line 388, in __get_result
raise self._exception
File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 444, in async_ensure_token_valid
new_token = await self.implementation.async_refresh_token(self.token)
File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 81, in async_refresh_token
new_token = await self._async_refresh_token(token)
File "/usr/src/homeassistant/homeassistant/components/cloud/account_link.py", line 146, in _async_refresh_token
return await account_link.async_fetch_access_token(
File "/usr/local/lib/python3.8/site-packages/hass_nabucasa/account_link.py", line 112, in async_fetch_access_token
resp.raise_for_status()
File "/usr/local/lib/python3.8/site-packages/aiohttp/client_reqrep.py", line 941, in raise_for_status
raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 400, message='Bad Request', url=URL('https://account-link.nabucasa.com/refresh_token/netatmo')
Home Assistant wurde vollst盲ndig gestartet!
````

Just found out, that there are 2 following errors which might be taken into consideration:
````
Logger: homeassistant
Source: helpers/template.py:332
First occurred: 17:57:28 (1 occurrences)
Last logged: 17:57:28

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/automation/__init__.py", line 459, in async_enable_automation
self._async_detach_triggers = await self._async_attach_triggers(True)
File "/usr/src/homeassistant/homeassistant/components/automation/__init__.py", line 490, in _async_attach_triggers
return await async_initialize_triggers(
File "/usr/src/homeassistant/homeassistant/helpers/trigger.py", line 78, in async_initialize_triggers
removes = await asyncio.gather(triggers)
File "/usr/src/homeassistant/homeassistant/components/template/trigger.py", line 101, in async_attach_trigger
info = async_track_template_result(
File "/usr/src/homeassistant/homeassistant/helpers/event.py", line 933, in async_track_template_result
tracker.async_setup(raise_on_template_error)
File "/usr/src/homeassistant/homeassistant/helpers/event.py", line 740, in async_setup
self._info[template] = template.async_render_to_info(variables)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 401, in async_render_to_info
render_info._result = self.async_render(variables, *
kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 332, in async_render
return compiled.render(kwargs).strip()
File "/usr/local/lib/python3.8/site-packages/jinja2/environment.py", line 1090, in render
self.environment.handle_exception()
File "/usr/local/lib/python3.8/site-packages/jinja2/environment.py", line 832, in handle_exception
reraise(*rewrite_traceback_stack(source=source))
File "/usr/local/lib/python3.8/site-packages/jinja2/_compat.py", line 28, in reraise
raise value.with_traceback(tb)
File "