core: Error setting up entry for simplisafe

Home Assistant release with the issue: 0.103.0

Last working Home Assistant release (if known): UNKNOWN

Operating environment (Hass.io/Docker/Windows/etc.): Hass.io RasberryPi P4 Integration: https://www.home-assistant.io/components/simplisafe/ Setup through “Configuration/integrations”

Description of problem:

Simplisafe integration stopped working when we hit version Hass ver 0.1xx.x

Hass.io does not recognize my simplisafe setup. And no entries are created. I tried removing/re-adding the integration and restarting but that did not resolve the issue. I tried a fresh install too and that did not clear the issue.

I also removed all tokens in my simplisafe account. This did not help either.

According to the integration wizard, the config file is successfully created. However, simplisafe account details are not pulled into the integration and the integration remains empty.

The log indicates that there is an Error: 406, and returns a ‘Not Acceptable’ message.

I am on the paid 24/7 Interactive Monitoring Plan and everything in the simplisafe online control panel and mobile application is fine.

Additional information:

Error setting up entry xxx@xxx.com for simplisafe
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/simplipy/api.py", line 189, in _request
    resp.raise_for_status()
  File "/usr/local/lib/python3.7/site-packages/aiohttp/client_reqrep.py", line 946, in raise_for_status
    headers=self.headers)
aiohttp.client_exceptions.ClientResponseError: 406, message='Not Acceptable', url='https://api.simplisafe.com/v1/subscriptions/xxxxxxx/settings?settingsType=all&cached=true

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 192, in async_setup
    hass, self
  File "/usr/src/homeassistant/homeassistant/components/simplisafe/__init__.py", line 184, in async_setup_entry
    systems = await api.get_systems()
  File "/usr/local/lib/python3.7/site-packages/simplipy/api.py", line 237, in get_systems
    await system.update(include_system=False)
  File "/usr/local/lib/python3.7/site-packages/simplipy/system/__init__.py", line 432, in update
    await self._get_entities(cached)
  File "/usr/local/lib/python3.7/site-packages/simplipy/system/__init__.py", line 208, in _get_entities
    entities: dict = await self._get_entities_payload(cached)
  File "/usr/local/lib/python3.7/site-packages/simplipy/system/v2.py", line 25, in _get_entities_payload
    params={"settingsType": "all", "cached": str(cached).lower()},
  File "/usr/local/lib/python3.7/site-packages/simplipy/api.py", line 218, in _request
    raise RequestError(f"Error requesting data from {endpoint}: {err}")
simplipy.errors.RequestError: Error requesting data from subscriptions/xxxxxxxx/settings: 406, message='Not Acceptable', url='https://api.simplisafe.com/v1/subscriptions/xxxxxxx/settings?settingsType=all&cached=true

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 33 (14 by maintainers)

Most upvoted comments

Hi all, Just wanted to give a quick update. I have updated to 0.117. And the long standing issue disappeared. Thank you for addressing the issue

I had the same issue. I had multiple accounts under my Simplisafe account which were no longer in use. I called Simplisafe support and had them remove the inactive accounts. After I was able to add the integration without issue.