KeyError: -9 for simplisafe configuration with Home Assistant

Hello,

I have simplisafe home alarm system with basic alarm monitoring service and I currently don’t have access to it via its mobile app.

I have following configuration in configuration.yaml.

alarm_control_panel:
  platform: simplisafe
  username: {username}
  password: {password}

When I run hass --open-ui command, on the web UI I see the current state of Simplisafe alarm system. When I change the state manually on the system, it reflects on the web UI. But when I change it from the web UI, and provide the code, the state doesn’t change. In home-assistant.log file I see below exceptions.

What I am missing?

16-12-30 22:39:41 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/asyncio/tasks.py", line 241, in _step
    result = coro.throw(exc)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/homeassistant/core.py", line 1049, in _event_to_service_call
    yield from service_handler.func(service_call)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/homeassistant/components/alarm_control_panel/__init__.py", line 108, in async_alarm_service_handler
    yield from getattr(alarm, method)(code)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/homeassistant/components/alarm_control_panel/__init__.py", line 169, in async_alarm_arm_home
    None, self.alarm_arm_home, code)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/asyncio/futures.py", line 361, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/asyncio/tasks.py", line 296, in _wakeup
    future.result()
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/asyncio/futures.py", line 274, in result
    raise self._exception
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/homeassistant/components/alarm_control_panel/simplisafe.py", line 107, in alarm_arm_home
    self.simplisafe.set_state('home')
  File "/Users/sinsub/.homeassistant/deps/simplisafe.py", line 74, in set_state
    self.state = result_codes[str(result_code)]
KeyError: '-9'

Are you still having trouble with this? I have never run the library with python3.5 so not sure if that could have something to do with it.

Yes. I am still facing this issue. I am not sure at this time if home assistant can control simplisafe alarm system if I have $14.99 package. Any thoughts/ideas?

Yeah, I don’t think it will work if you aren’t paying for the mobile app support. This uses the mobile api so if the app doesn’t work, this won’t.