Created
June 29, 2022 19:42
-
-
Save cnf/804c4ef1a8fb2735ed801036ff34e7dd to your computer and use it in GitHub Desktop.
Alarm Triggers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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