core: Simplisafe not triggering
The problem
I have created automations with Simplisafe following the directions given in the docs and they never get triggered. I was seeing the events in the developers tools, but this stopped after the February update.
What is version of Home Assistant Core has the issue?
Home Assistant 2021.2.3
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Simplisafe
Link to integration documentation on our website
https://www.home-assistant.io/integrations/simplisafe
Example YAML snippet
# Put your YAML below this line
- id: '16100184557111'
alias: Simplisafe front door
description: ''
trigger:
- platform: event
event_type: SIMPLISAFE_EVENT
event_data:
last_event_type: motion_detected
last_event_sensor_name: Front Door
condition: []
action:
- service: notify.pixel_xl_4
data:
message: Front door motion_detected from SimpliSafe
mode: single
and
- id: '123456'
alias: Log SimpliSafe events and notifications
trigger:
- platform: event
event_type: SIMPLISAFE_EVENT
- platform: event
event_type: SIMPLISAFE_NOTIFICATION
action:
service: logbook.log
data:
name: SimpliSafe
message: "{% if trigger.event.event_type == \"SIMPLISAFE_EVENT\" %}\n {% set\
\ message = trigger.event.data.last_event_info %}\n{% elif trigger.event.event_type\
\ == \"SIMPLISAFE_NOTIFICATION\" %}\n {% set message = trigger.event.data.message\
\ %}\n{% endif %}\n\U0001F4E5 SimpliSafe Message: {{ message }}\n"
Anything in the logs that might be useful for us?
# Put your logs below this line
No errors in the logs.
I was seeing the events in developers tools, but this stopped after a resent update. I know the motion is firing as I received notification from Simplisafe on my phone via text.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 26 (9 by maintainers)
The persistent_notification is working everytime. Finally got my front door to work. This is the code:
The change from the original is the event_type: SIMPLISAFE_EVENT was moved. I thought the order didn’t matter in yaml on this? Apparently it does. I’ll change the garage and if this works I’ll close this out and also post in the forum. Everything is working. Thanks for all your help.
So far, the logs have not been helpful, but now with this simple automation working, I’ll try adding slowly to this and share any log info. It least now I have a starting point where I can see something. It would think it most likely is a wrong label somewhere in my automation. Hopefully I’ll catch it soon. Again, thanks for all your help. I wish I had a better handle on Python (never used it).