Open themistymay opened 2 years ago
We just got our Eight Pod Pro so the account is brand new as well.
@themistymay Did this correct itself once you collected some data?
I will retry. Give me a few days as I'm currently away.
I have confirmed this is still an issue:
2021-12-16 09:39:09 ERROR (MainThread) [pyeight.eight] Error fetching Eight data: 403
2021-12-16 09:39:09 ERROR (MainThread) [pyeight.user] Unable to fetch eight intervals data.
2021-12-16 09:39:09 ERROR (MainThread) [pyeight.eight] Error fetching Eight data: 403
2021-12-16 09:39:09 ERROR (MainThread) [pyeight.user] Unable to fetch eight trend data.
2021-12-16 09:34:09 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up eight_sleep platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 257, in _async_setup_platform
await asyncio.gather(*pending)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 382, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 613, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 748, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 505, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 538, in _async_write_ha_state
state = self._stringify_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 511, in _stringify_state
if (state := self.state) is None:
File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 363, in state
value = self.native_value
File "/usr/src/homeassistant/homeassistant/components/eight_sleep/sensor.py", line 173, in native_value
return self._usrobj.current_sleep_score
File "/usr/local/lib/python3.9/site-packages/pyeight/user.py", line 237, in current_sleep_score
score = self.intervals[0]['score']
TypeError: 'NoneType' object is not subscriptable
Very late reply, but I noticed in your last snippet you are getting a 403 forbidden error. That usually only happens if the login info is incorrect. Please verify you have it entered correctly in your config. Others have had problems with certain special characters in the past.
Got the following error when using this in HA. Not sure if you want this issue here or in the HA repo.