Thanks a lot. I have only weather station.
The problems are these log messages:
- token_expired
- database is locked
- Too many retries
With so many “errors” is difficult for me to read the log file… in a day it becomes huge.
Maybe could you advice me to use old configuration file to receive update from my netatmo weather station? (it works again or is it deprecated?)
Following the log file:
2020-04-11 13:48:39 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.netatmo_netatmo_indoor_temperature fails
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.7/site-packages/pyatmo/auth.py", line 129, in query
rsp = self._oauth.post(url=url, data=params, timeout=timeout)
File "/srv/homeassistant/lib/python3.7/site-packages/requests/sessions.py", line 578, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/srv/homeassistant/lib/python3.7/site-packages/requests_oauthlib/oauth2_session.py", line 478, in request
url, http_method=method, body=data, headers=headers
File "/srv/homeassistant/lib/python3.7/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 "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 476, in async_device_update
await self.hass.async_add_executor_job(self.update)
File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/netatmo/sensor.py", line 225, in update
self.netatmo_data.update()
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/util/__init__.py", line 240, in wrapper
result = method(*args, **kwargs)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/netatmo/sensor.py", line 550, in update
self.station_data = self.station_data.__class__(self.auth)
File "/srv/homeassistant/lib/python3.7/site-packages/pyatmo/weather_station.py", line 24, in __init__
resp = self.authData.post_request(url=self.urlReq)
File "/srv/homeassistant/lib/python3.7/site-packages/pyatmo/auth.py", line 143, in post_request
resp = query(url, params, timeout, 3)
File "/srv/homeassistant/lib/python3.7/site-packages/pyatmo/auth.py", line 137, in query
self._oauth.token = self.refresh_tokens()
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/netatmo/api.py", line 32, in refresh_tokens
self.session.async_ensure_token_valid(), self.hass.loop
File "/usr/lib/python3.7/concurrent/futures/_base.py", line 432, in result
return self.__get_result()
File "/usr/lib/python3.7/concurrent/futures/_base.py", line 384, in __get_result
raise self._exception
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/config_entry_oauth2_flow.py", line 413, in async_ensure_token_valid
new_token = await self.implementation.async_refresh_token(self.token)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/config_entry_oauth2_flow.py", line 78, in async_refresh_token
new_token = await self._async_refresh_token(token)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/cloud/account_link.py", line 143, in _async_refresh_token
self.hass.data[DOMAIN], self.service, token["refresh_token"]
File "/srv/homeassistant/lib/python3.7/site-packages/hass_nabucasa/account_link.py", line 112, in async_fetch_access_token
resp.raise_for_status()
File "/srv/homeassistant/lib/python3.7/site-packages/aiohttp/client_reqrep.py", line 946, in raise_for_status
headers=self.headers)
aiohttp.client_exceptions.ClientResponseError: 504, message='Gateway Time-out', url='https://account-link.nabucasa.com/refresh_token/netatmo
2020-04-11 13:49:40 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.netatmo_netatmo_indoor_co2 fails
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.7/site-packages/pyatmo/auth.py", line 129, in query
rsp = self._oauth.post(url=url, data=params, timeout=timeout)
File "/srv/homeassistant/lib/python3.7/site-packages/requests/sessions.py", line 578, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/srv/homeassistant/lib/python3.7/site-packages/requests_oauthlib/oauth2_session.py", line 478, in request
url, http_method=method, body=data, headers=headers
File "/srv/homeassistant/lib/python3.7/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 "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 476, in async_device_update
await self.hass.async_add_executor_job(self.update)
File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/netatmo/sensor.py", line 225, in update
self.netatmo_data.update()
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/util/__init__.py", line 240, in wrapper
result = method(*args, **kwargs)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/netatmo/sensor.py", line 550, in update
self.station_data = self.station_data.__class__(self.auth)
File "/srv/homeassistant/lib/python3.7/site-packages/pyatmo/weather_station.py", line 24, in __init__
resp = self.authData.post_request(url=self.urlReq)
File "/srv/homeassistant/lib/python3.7/site-packages/pyatmo/auth.py", line 143, in post_request
resp = query(url, params, timeout, 3)
File "/srv/homeassistant/lib/python3.7/site-packages/pyatmo/auth.py", line 137, in query
self._oauth.token = self.refresh_tokens()
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/netatmo/api.py", line 32, in refresh_tokens
self.session.async_ensure_token_valid(), self.hass.loop
File "/usr/lib/python3.7/concurrent/futures/_base.py", line 432, in result
return self.__get_result()
File "/usr/lib/python3.7/concurrent/futures/_base.py", line 384, in __get_result
raise self._exception
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/config_entry_oauth2_flow.py", line 413, in async_ensure_token_valid
new_token = await self.implementation.async_refresh_token(self.token)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/config_entry_oauth2_flow.py", line 78, in async_refresh_token
new_token = await self._async_refresh_token(token)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/cloud/account_link.py", line 143, in _async_refresh_token
self.hass.data[DOMAIN], self.service, token["refresh_token"]
File "/srv/homeassistant/lib/python3.7/site-packages/hass_nabucasa/account_link.py", line 112, in async_fetch_access_token
resp.raise_for_status()
File "/srv/homeassistant/lib/python3.7/site-packages/aiohttp/client_reqrep.py", line 946, in raise_for_status
headers=self.headers)
aiohttp.client_exceptions.ClientResponseError: 504, message='Gateway Time-out', url='https://account-link.nabucasa.com/refresh_token/netatmo
2020-04-11 13:50:40 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.netatmo_netatmo_indoor_humidity fails
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.7/site-packages/pyatmo/auth.py", line 129, in query
rsp = self._oauth.post(url=url, data=params, timeout=timeout)
File "/srv/homeassistant/lib/python3.7/site-packages/requests/sessions.py", line 578, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/srv/homeassistant/lib/python3.7/site-packages/requests_oauthlib/oauth2_session.py", line 478, in request
url, http_method=method, body=data, headers=headers
File "/srv/homeassistant/lib/python3.7/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 "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 476, in async_device_update
await self.hass.async_add_executor_job(self.update)
File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/netatmo/sensor.py", line 225, in update
self.netatmo_data.update()
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/util/__init__.py", line 240, in wrapper
result = method(*args, **kwargs)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/netatmo/sensor.py", line 550, in update
self.station_data = self.station_data.__class__(self.auth)
File "/srv/homeassistant/lib/python3.7/site-packages/pyatmo/weather_station.py", line 24, in __init__
resp = self.authData.post_request(url=self.urlReq)
File "/srv/homeassistant/lib/python3.7/site-packages/pyatmo/auth.py", line 143, in post_request
resp = query(url, params, timeout, 3)
File "/srv/homeassistant/lib/python3.7/site-packages/pyatmo/auth.py", line 137, in query
self._oauth.token = self.refresh_tokens()
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/netatmo/api.py", line 32, in refresh_tokens
self.session.async_ensure_token_valid(), self.hass.loop
File "/usr/lib/python3.7/concurrent/futures/_base.py", line 432, in result
return self.__get_result()
File "/usr/lib/python3.7/concurrent/futures/_base.py", line 384, in __get_result
raise self._exception
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/config_entry_oauth2_flow.py", line 413, in async_ensure_token_valid
new_token = await self.implementation.async_refresh_token(self.token)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/config_entry_oauth2_flow.py", line 78, in async_refresh_token
new_token = await self._async_refresh_token(token)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/cloud/account_link.py", line 143, in _async_refresh_token
self.hass.data[DOMAIN], self.service, token["refresh_token"]
File "/srv/homeassistant/lib/python3.7/site-packages/hass_nabucasa/account_link.py", line 112, in async_fetch_access_token
resp.raise_for_status()
File "/srv/homeassistant/lib/python3.7/site-packages/aiohttp/client_reqrep.py", line 946, in raise_for_status
headers=self.headers)
aiohttp.client_exceptions.ClientResponseError: 504, message='Gateway Time-out', url='https://account-link.nabucasa.com/refresh_token/netatmo
2020-04-11 14:10:45 ERROR (MainThread) [homeassistant.core] Error doing job: Fatal read error on socket transport
Traceback (most recent call last):
File "/usr/lib/python3.7/asyncio/selector_events.py", line 801, in _read_ready__data_received
data = self._sock.recv(self.max_size)
TimeoutError: [Errno 110] Connection timed out
2020-04-11 14:24:46 ERROR (SyncWorker_2) [homeassistant.components.recorder.util] Error executing query: (sqlite3.OperationalError) database is locked
(Background on this error at: http://sqlalche.me/e/e3q8)
2020-04-11 14:35:05 ERROR (SyncWorker_15) [homeassistant.components.recorder.util] Error executing query: (sqlite3.OperationalError) database is locked
(Background on this error at: http://sqlalche.me/e/e3q8)
2020-04-11 14:35:07 ERROR (MainThread) [homeassistant.components.webhook] Error processing webhook 9b9cceb4bcd1883ec9b7c24f0dacab85b67d25bbdf9315a6180290ddb1180f17
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/webhook/__init__.py", line 77, in async_handle_webhook
response = await webhook["handler"](hass, webhook_id, request)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/mobile_app/webhook.py", line 186, in handle_webhook
return await WEBHOOK_COMMANDS[webhook_type](hass, config_entry, webhook_payload)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/mobile_app/webhook.py", line 131, in validate_and_run
return await func(hass, config_entry, data)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/mobile_app/webhook.py", line 439, in webhook_update_sensor_states
await hass.data[DOMAIN][DATA_STORE].async_save(safe)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/storage.py", line 136, in async_save
await self._async_handle_write_data()
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/storage.py", line 197, in _async_handle_write_data
self._write_data, self.path, data
concurrent.futures._base.CancelledError
2020-04-11 14:45:05 ERROR (SyncWorker_16) [homeassistant.components.recorder.util] Error executing query: (sqlite3.OperationalError) database is locked
(Background on this error at: http://sqlalche.me/e/e3q8)
2020-04-11 15:07:34 ERROR (SyncWorker_15) [homeassistant.components.recorder.util] Error executing query: (sqlite3.OperationalError) database is locked
(Background on this error at: http://sqlalche.me/e/e3q8)
2020-04-11 16:58:00 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.netatmo_netatmo_indoor_temperature fails
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.7/site-packages/pyatmo/auth.py", line 129, in query
rsp = self._oauth.post(url=url, data=params, timeout=timeout)
File "/srv/homeassistant/lib/python3.7/site-packages/requests/sessions.py", line 578, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/srv/homeassistant/lib/python3.7/site-packages/requests_oauthlib/oauth2_session.py", line 478, in request
url, http_method=method, body=data, headers=headers
File "/srv/homeassistant/lib/python3.7/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 "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 476, in async_device_update
await self.hass.async_add_executor_job(self.update)
File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/netatmo/sensor.py", line 225, in update
self.netatmo_data.update()
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/util/__init__.py", line 240, in wrapper
result = method(*args, **kwargs)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/netatmo/sensor.py", line 550, in update
self.station_data = self.station_data.__class__(self.auth)
File "/srv/homeassistant/lib/python3.7/site-packages/pyatmo/weather_station.py", line 24, in __init__
resp = self.authData.post_request(url=self.urlReq)
File "/srv/homeassistant/lib/python3.7/site-packages/pyatmo/auth.py", line 143, in post_request
resp = query(url, params, timeout, 3)
File "/srv/homeassistant/lib/python3.7/site-packages/pyatmo/auth.py", line 137, in query
self._oauth.token = self.refresh_tokens()
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/netatmo/api.py", line 32, in refresh_tokens
self.session.async_ensure_token_valid(), self.hass.loop
File "/usr/lib/python3.7/concurrent/futures/_base.py", line 432, in result
return self.__get_result()
File "/usr/lib/python3.7/concurrent/futures/_base.py", line 384, in __get_result
raise self._exception
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/config_entry_oauth2_flow.py", line 413, in async_ensure_token_valid
new_token = await self.implementation.async_refresh_token(self.token)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/config_entry_oauth2_flow.py", line 78, in async_refresh_token
new_token = await self._async_refresh_token(token)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/cloud/account_link.py", line 143, in _async_refresh_token
self.hass.data[DOMAIN], self.service, token["refresh_token"]
File "/srv/homeassistant/lib/python3.7/site-packages/hass_nabucasa/account_link.py", line 112, in async_fetch_access_token
resp.raise_for_status()
File "/srv/homeassistant/lib/python3.7/site-packages/aiohttp/client_reqrep.py", line 946, in raise_for_status
headers=self.headers)
aiohttp.client_exceptions.ClientResponseError: 504, message='Gateway Time-out', url='https://account-link.nabucasa.com/refresh_token/netatmo
2020-04-11 16:59:00 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.netatmo_netatmo_indoor_co2 fails
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.7/site-packages/pyatmo/auth.py", line 129, in query
rsp = self._oauth.post(url=url, data=params, timeout=timeout)
File "/srv/homeassistant/lib/python3.7/site-packages/requests/sessions.py", line 578, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/srv/homeassistant/lib/python3.7/site-packages/requests_oauthlib/oauth2_session.py", line 478, in request
url, http_method=method, body=data, headers=headers
File "/srv/homeassistant/lib/python3.7/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 "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 476, in async_device_update
await self.hass.async_add_executor_job(self.update)
File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/netatmo/sensor.py", line 225, in update
self.netatmo_data.update()
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/util/__init__.py", line 240, in wrapper
result = method(*args, **kwargs)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/netatmo/sensor.py", line 550, in update
self.station_data = self.station_data.__class__(self.auth)
File "/srv/homeassistant/lib/python3.7/site-packages/pyatmo/weather_station.py", line 24, in __init__
resp = self.authData.post_request(url=self.urlReq)
File "/srv/homeassistant/lib/python3.7/site-packages/pyatmo/auth.py", line 143, in post_request
resp = query(url, params, timeout, 3)
File "/srv/homeassistant/lib/python3.7/site-packages/pyatmo/auth.py", line 137, in query
self._oauth.token = self.refresh_tokens()
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/netatmo/api.py", line 32, in refresh_tokens
self.session.async_ensure_token_valid(), self.hass.loop
File "/usr/lib/python3.7/concurrent/futures/_base.py", line 432, in result
return self.__get_result()
File "/usr/lib/python3.7/concurrent/futures/_base.py", line 384, in __get_result
raise self._exception
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/config_entry_oauth2_flow.py", line 413, in async_ensure_token_valid
new_token = await self.implementation.async_refresh_token(self.token)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/config_entry_oauth2_flow.py", line 78, in async_refresh_token
new_token = await self._async_refresh_token(token)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/cloud/account_link.py", line 143, in _async_refresh_token
self.hass.data[DOMAIN], self.service, token["refresh_token"]
File "/srv/homeassistant/lib/python3.7/site-packages/hass_nabucasa/account_link.py", line 112, in async_fetch_access_token
resp.raise_for_status()
File "/srv/homeassistant/lib/python3.7/site-packages/aiohttp/client_reqrep.py", line 946, in raise_for_status
headers=self.headers)
aiohttp.client_exceptions.ClientResponseError: 504, message='Gateway Time-out', url='https://account-link.nabucasa.com/refresh_token/netatmo
2020-04-11 17:00:00 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.netatmo_netatmo_indoor_humidity fails
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.7/site-packages/pyatmo/auth.py", line 129, in query
rsp = self._oauth.post(url=url, data=params, timeout=timeout)
File "/srv/homeassistant/lib/python3.7/site-packages/requests/sessions.py", line 578, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/srv/homeassistant/lib/python3.7/site-packages/requests_oauthlib/oauth2_session.py", line 478, in request
url, http_method=method, body=data, headers=headers
File "/srv/homeassistant/lib/python3.7/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 "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 476, in async_device_update
await self.hass.async_add_executor_job(self.update)
File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/netatmo/sensor.py", line 225, in update
self.netatmo_data.update()
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/util/__init__.py", line 240, in wrapper
result = method(*args, **kwargs)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/netatmo/sensor.py", line 550, in update
self.station_data = self.station_data.__class__(self.auth)
File "/srv/homeassistant/lib/python3.7/site-packages/pyatmo/weather_station.py", line 24, in __init__
resp = self.authData.post_request(url=self.urlReq)
File "/srv/homeassistant/lib/python3.7/site-packages/pyatmo/auth.py", line 143, in post_request
resp = query(url, params, timeout, 3)
File "/srv/homeassistant/lib/python3.7/site-packages/pyatmo/auth.py", line 137, in query
self._oauth.token = self.refresh_tokens()
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/netatmo/api.py", line 32, in refresh_tokens
self.session.async_ensure_token_valid(), self.hass.loop
File "/usr/lib/python3.7/concurrent/futures/_base.py", line 432, in result
return self.__get_result()
File "/usr/lib/python3.7/concurrent/futures/_base.py", line 384, in __get_result
raise self._exception
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/config_entry_oauth2_flow.py", line 413, in async_ensure_token_valid
new_token = await self.implementation.async_refresh_token(self.token)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/config_entry_oauth2_flow.py", line 78, in async_refresh_token
new_token = await self._async_refresh_token(token)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/cloud/account_link.py", line 143, in _async_refresh_token
self.hass.data[DOMAIN], self.service, token["refresh_token"]
File "/srv/homeassistant/lib/python3.7/site-packages/hass_nabucasa/account_link.py", line 112, in async_fetch_access_token
resp.raise_for_status()
File "/srv/homeassistant/lib/python3.7/site-packages/aiohttp/client_reqrep.py", line 946, in raise_for_status
headers=self.headers)
aiohttp.client_exceptions.ClientResponseError: 504, message='Gateway Time-out', url='https://account-link.nabucasa.com/refresh_token/netatmo
2020-04-11 17:01:00 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.netatmo_netatmo_indoor_noise fails
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.7/site-packages/pyatmo/auth.py", line 129, in query
rsp = self._oauth.post(url=url, data=params, timeout=timeout)
File "/srv/homeassistant/lib/python3.7/site-packages/requests/sessions.py", line 578, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/srv/homeassistant/lib/python3.7/site-packages/requests_oauthlib/oauth2_session.py", line 478, in request
url, http_method=method, body=data, headers=headers
File "/srv/homeassistant/lib/python3.7/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 "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 476, in async_device_update
await self.hass.async_add_executor_job(self.update)
File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/netatmo/sensor.py", line 225, in update
self.netatmo_data.update()
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/util/__init__.py", line 240, in wrapper
result = method(*args, **kwargs)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/netatmo/sensor.py", line 550, in update
self.station_data = self.station_data.__class__(self.auth)
File "/srv/homeassistant/lib/python3.7/site-packages/pyatmo/weather_station.py", line 24, in __init__
resp = self.authData.post_request(url=self.urlReq)
File "/srv/homeassistant/lib/python3.7/site-packages/pyatmo/auth.py", line 143, in post_request
resp = query(url, params, timeout, 3)
File "/srv/homeassistant/lib/python3.7/site-packages/pyatmo/auth.py", line 137, in query
self._oauth.token = self.refresh_tokens()
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/netatmo/api.py", line 32, in refresh_tokens
self.session.async_ensure_token_valid(), self.hass.loop
File "/usr/lib/python3.7/concurrent/futures/_base.py", line 432, in result
return self.__get_result()
File "/usr/lib/python3.7/concurrent/futures/_base.py", line 384, in __get_result
raise self._exception
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/config_entry_oauth2_flow.py", line 413, in async_ensure_token_valid
new_token = await self.implementation.async_refresh_token(self.token)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/config_entry_oauth2_flow.py", line 78, in async_refresh_token
new_token = await self._async_refresh_token(token)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/cloud/account_link.py", line 143, in _async_refresh_token
self.hass.data[DOMAIN], self.service, token["refresh_token"]
File "/srv/homeassistant/lib/python3.7/site-packages/hass_nabucasa/account_link.py", line 112, in async_fetch_access_token
resp.raise_for_status()
File "/srv/homeassistant/lib/python3.7/site-packages/aiohttp/client_reqrep.py", line 946, in raise_for_status
headers=self.headers)
aiohttp.client_exceptions.ClientResponseError: 504, message='Gateway Time-out', url='https://account-link.nabucasa.com/refresh_token/netatmo
2020-04-11 17:02:01 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.netatmo_netatmo_indoor_pressure fails
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.7/site-packages/pyatmo/auth.py", line 129, in query
rsp = self._oauth.post(url=url, data=params, timeout=timeout)
File "/srv/homeassistant/lib/python3.7/site-packages/requests/sessions.py", line 578, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/srv/homeassistant/lib/python3.7/site-packages/requests_oauthlib/oauth2_session.py", line 478, in request
url, http_method=method, body=data, headers=headers
File "/srv/homeassistant/lib/python3.7/site-packages/oauthlib/oauth2/rfc6749/clients/base.py", line 198, in add_token
raise TokenExpiredError()
oauthlib.oauth2.rfc6749.errors.TokenExpiredError: (token_expired)