Solved!
Firstly, thanks to everyone working hard with HA. I’m so impressed with all this!
Just a little question if any have experienced the same problem with the Withings integration as me, after upgrade to 2021.3.
Now my Withings sensors do not update, and I get “unawailable” as a result!
Can it be something after update, or has anything other gone wrong??
I update the permission for HA to fetch data from Withings everytime I am asked!
My log file looks like this:
2021-03-05 12:18:43 INFO (MainThread) [homeassistant.components.withings] Updating all withings data
2021-03-05 12:18:45 INFO (MainThread) [homeassistant.components.withings] Updating all withings data
2021-03-05 12:18:46 INFO (MainThread) [homeassistant.components.withings] Updating all withings data
2021-03-05 12:18:47 ERROR (MainThread) [homeassistant.components.withings] Unexpected error fetching poll_data_update_coordinator data: Error code 503
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 151, in async_refresh
self.data = await self._async_update_data()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 139, in _async_update_data
return await self.update_method()
File "/usr/src/homeassistant/homeassistant/components/withings/common.py", line 765, in async_get_all_data
raise exception
File "/usr/src/homeassistant/homeassistant/components/withings/common.py", line 734, in async_get_all_data
return await self._do_retry(self._async_get_all_data)
File "/usr/src/homeassistant/homeassistant/components/withings/common.py", line 654, in _do_retry
raise exception
File "/usr/src/homeassistant/homeassistant/components/withings/common.py", line 647, in _do_retry
return await func()
File "/usr/src/homeassistant/homeassistant/components/withings/common.py", line 771, in _async_get_all_data
**await self.async_get_sleep_summary(),
File "/usr/src/homeassistant/homeassistant/components/withings/common.py", line 837, in async_get_sleep_summary
response = await self._hass.async_add_executor_job(get_sleep_summary)
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/withings/common.py", line 814, in get_sleep_summary
return self._api.sleep_get_summary(
File "/usr/local/lib/python3.8/site-packages/withings_api/__init__.py", line 221, in sleep_get_summary
self.request(path=self.PATH_V2_SLEEP, params=params)
File "/usr/local/lib/python3.8/site-packages/withings_api/__init__.py", line 81, in request
return response_body_or_raise(
File "/usr/local/lib/python3.8/site-packages/withings_api/common.py", line 896, in response_body_or_raise
raise InvalidParamsException(status=status)
withings_api.common.InvalidParamsException: Error code 503