Is there a way to have dasher disarm Simplisafe when initially pushed and rearmed after another button push, some time later? I’ve looked and can’t find anything. Thanks in advance
Oh yeah for sure. I use dash buttons for lights basically it needs to toggle the state. Here is how one of my lights works.
It’s basically a condition check, you need two automations.
- alias: downstairs hallway off
trigger:
- platform: event
event_type: toggle_hallway_light
condition:
- condition: state
entity_id: light.down_stairs_hallway
state: 'on'
action:
service: homeassistant.turn_off
entity_id: light.down_stairs_hallway
- alias: downstairs hallway on
trigger:
- platform: event
event_type: toggle_hallway_light
condition:
- condition: state
entity_id: light.down_stairs_hallway
state: 'off'
action:
service: homeassistant.turn_on
entity_id: light.down_stairs_hallway
I’ve got the automation part setup and working. Just not sure what to put in dashers config.json body": “{“entity_id”: “alarm_control_panel.simplisafe”: “armed_home”: “disarmed”}” Here’s my automation
- alias: SimpliSafe Disarmed
trigger:
- platform: event
event_type: toggle_simplisafe_alarm
condition:
- condition: state
entity_id: alarm_control_panel.simplisafe
state: 'armed_home'
action:
service: alarm_control_panel.alarm_disarm
entity_id: alarm_control_panel.simplisafe
- alias: SimpliSafe Armed Home
trigger:
- platform: event
event_type: toggle_simplisafe_alarm
condition:
- condition: state
entity_id: alarm_control_panel.simplisafe
state: 'disarmed'
action:
service: alarm_control_panel.alarm_arm_home
entity_id: alarm_control_panel.simplisafe
No body needed just a post to the below endpoint.
{
“name”: “Toggle SimpliSafe”,
“address”: “YOUR_MACC”,
“interface”: “enp3s0”,
“url”: “http://127.0.0.1:8123/api/events/toggle_simplisafe_alarm”,
“method”: “POST”,
“headers”: {“x-ha-access”: “YOUR_PASSWORD”},
“json”: true
}
1 Like
Thanks w1ll1am23, Worked like a charm!!
1 Like