home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.49k stars 30.33k forks source link

Simplisafe events not firing #34152

Closed akamel001 closed 4 years ago

akamel001 commented 4 years ago

The problem

I'm unable to see SIMPLISAFE_NOTIFICATION in-home assistants Developer Tools -> Events tab as an event I can listen to. I also tried to listen to SIMPLISAFE_EVENT & SIMPLISAFE_NOTIFICATION but dont see any events fire when I trigger them. So far I tested, arming, disarming, camera motion.

I checked on the SimpliSafe app timeline and see all the events (camera motion, armed alarm, disarmed)

Environment

Problem-relevant configuration.yaml

I built automation to trigger off of camera motion. The automation never triggers.

- id: '1586455896461'
  alias: Turn on Light
  description: ''
  trigger:
    platform: event
    event_type: SIMPLISAFE_NOTIFICATION
    event_data:
      event_type: camera_motion_detected
  condition: []
  action:
    domain: switch
    entity_id: switch.garage_light
    type: turn_on

Traceback/Error logs

Additional information

probot-home-assistant[bot] commented 4 years ago

Hey there @bachya, mind taking a look at this issue as its been labeled with a integration (simplisafe) you are listed as a codeowner for? Thanks!

bachya commented 4 years ago

Thanks for the info, @akamel001.

As you know, the SIMPLISAFE_EVENT event currently responds to only 4 types of system event:

I temporarily added support for two more that I have easier access to (armed_home and disarmed_by_remote). Both of those came through as (and when) expected – here is my output from the Listen to events panel in HASS:

Screen Shot 2020-04-13 at 12 05 53 PM Screen Shot 2020-04-13 at 12 05 46 PM

Since you do see events related to camera motion in your SimpliSafe app's timeline, this leads me to wonder I have an incorrect internal identifier for those events (or if you have one I don't currently possess). So, I think a good next step is to dig into your system a bit. You can find instructions on how to do that here; I'm specifically interested in eventCid values for anything related to camera motion.

Thanks for your help!

akamel001 commented 4 years ago

Thanks for the quick response!

I actually think the issue was with my docker / Unraid setup. After restarting HA container, I started to see all the events now. All events fired correctly (near real-time) which is awesome!

Sorry for all the trouble and I appreciate you looking into this!

bachya commented 4 years ago

Thanks for the follow-up @akamel001; glad things are working for you. I will close this issue.