Update Security Package
This commit is contained in:
@@ -102,3 +102,28 @@ automation:
|
|||||||
- service: notify.telegram_home
|
- service: notify.telegram_home
|
||||||
data:
|
data:
|
||||||
message: Home Disarmed
|
message: Home Disarmed
|
||||||
|
|
||||||
|
- alias: Notify on Alarm Arm/Disarm
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: alarm_control_panel.ha_alarm
|
||||||
|
to: disarmed
|
||||||
|
- platform: state
|
||||||
|
entity_id: alarm_control_panel.ha_alarm
|
||||||
|
to: armed_home
|
||||||
|
- platform: state
|
||||||
|
entity_id: alarm_control_panel.ha_alarm
|
||||||
|
to: armed_away
|
||||||
|
- platform: state
|
||||||
|
entity_id: alarm_control_panel.ha_alarm
|
||||||
|
to: armed_night
|
||||||
|
- platform: state
|
||||||
|
entity_id: alarm_control_panel.ha_alarm
|
||||||
|
to: armed_vacation
|
||||||
|
action:
|
||||||
|
- service: notify.telegram_home
|
||||||
|
data:
|
||||||
|
message: >
|
||||||
|
Alarm changed to {{ trigger.to_state.state|replace('_', ' ')|capfirst }} by {%
|
||||||
|
set username = states.person|selectattr('attributes.user_id', 'eq', trigger.to_state.context.user_id)|first|default('Automation'))
|
||||||
|
%}{{ username }}
|
||||||
|
|||||||
Reference in New Issue
Block a user