[Solved] Anyone else seen this issue with SleepIQ?

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

In case anyone comes across this later, I submitted a pull request to hopefully fix this.

FYI - I was able to resolve this by simply adding a 2nd person to my sleep number bed config. Once I did that and restarted hassio, it worked immediately.

Very cool! That worked great!

I’ll look into that more and see if I can fix it so that one sleeper will work.

I dont understand. I added my account info (username and pass) to the configuration.yml file. Although I cant find any errors, I dont see sleepiq added to my hass. How do I add a 2nd person?

Add a 2nd person in the app. Is that what you’re doing?