Update Security Package
This commit is contained in:
@@ -28,6 +28,11 @@ alarm_control_panel:
|
||||
arming_time: 0
|
||||
delay_time: 0
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Alarm Trigger Source
|
||||
input_text:
|
||||
ha_alarm_trigger:
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Alarm Settings
|
||||
input_boolean:
|
||||
@@ -140,6 +145,28 @@ automation:
|
||||
person.attributes.friendly_name
|
||||
}}
|
||||
|
||||
- alias: Reset Alarm Trigger on Disarm
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: alarm_control_panel.ha_alarm
|
||||
to: 'disarmed'
|
||||
action:
|
||||
- service: input_text.set_value
|
||||
target:
|
||||
entity_id: input_text.ha_alarm_trigger
|
||||
data:
|
||||
value: ""
|
||||
|
||||
- alias: Notify on Alarm Triggered
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: alarm_control_panel.alarm_trigger
|
||||
state: 'triggered'
|
||||
action:
|
||||
- service: notify.security
|
||||
data:
|
||||
message: Alarm triggered by {{ states('input_text.ha_alarm_trigger') }}
|
||||
|
||||
- alias: Trigger Alarm on Window or Door Open
|
||||
trigger:
|
||||
- platform: state
|
||||
@@ -155,10 +182,12 @@ automation:
|
||||
- 'armed_away'
|
||||
- 'armed_vacation'
|
||||
action:
|
||||
- service: input_text.set_value
|
||||
target:
|
||||
entity_id: input_text.ha_alarm_trigger
|
||||
data:
|
||||
value: "{{ states('sensor.open_windows_doors') }}"
|
||||
|
||||
- service: alarm_control_panel.alarm_trigger
|
||||
target:
|
||||
entity_id: alarm_control_panel.ha_alarm
|
||||
|
||||
- service: notify.security
|
||||
data:
|
||||
message: Alarm triggered by {{ states('sensor.open_windows_doors') }}
|
||||
|
||||
Reference in New Issue
Block a user