Skip to content

Instantly share code, notes, and snippets.

@cnf
Created June 29, 2022 19:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cnf/804c4ef1a8fb2735ed801036ff34e7dd to your computer and use it in GitHub Desktop.
Save cnf/804c4ef1a8fb2735ed801036ff34e7dd to your computer and use it in GitHub Desktop.
Alarm Triggers
blueprint:
name: Alarm Triggers
description: Trigger the alarm
domain: automation
input:
sensor:
name: Sensors
description: Select the Sensors you want to trigger on.
selector:
entity:
domain: binary_sensor
multiple: true
target_alarm_panel:
name: Alarm Control Panel
description: What alarm are we using?
selector:
entity:
domain: alarm_control_panel
alarm_state:
name: Alarm State
description: In what state(s) should we trigger?
selector:
select:
multiple: true
custom_value: true
options:
- label: Armed Away
value: armed_away
- label: Armed Night
value: armed_night
- label: Armed Home
value: armed_home
- label: Armed Vacation
value: armed_vacation
- label: Disarmed
value: disarmed
trigger:
platform: state
entity_id: !input sensor
action:
service: alarm_control_panel.alarm_trigger
entity_id: !input target_alarm_panel
condition:
- condition: state
entity_id: !input target_alarm_panel
state: !input alarm_state
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment