I recently got a Sleep Number bed, and I’d love to use the sensor that its component provides, but I can’t quite get it to work, when hass starts up I get this exception in the logs:
ERROR (MainThread) [homeassistant.setup] Error during setup of component sleepiq
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/homeassistant/setup.py", line 156, in _async_setup_component
component.setup, hass, processed_config) # type: ignore
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.7/site-packages/homeassistant/components/sleepiq/__init__.py", line 54, in setup
DATA = SleepIQData(client)
File "/usr/local/lib/python3.7/site-packages/homeassistant/components/sleepiq/__init__.py", line 77, in __init__
self.update()
File "/usr/local/lib/python3.7/site-packages/homeassistant/util/__init__.py", line 224, in wrapper
result = method(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/homeassistant/components/sleepiq/__init__.py", line 83, in update
beds = self._client.beds_with_sleeper_status()
File "/usr/local/lib/python3.7/site-packages/sleepyq/__init__.py", line 86, in beds_with_sleeper_status
sleeper = sleepers_by_id[sleeper_id]
KeyError: '0'
My config for it looks like:
sleepiq:
username: [email protected]
password: !secret sleepiq_password