1
0

Bedroom motion turn off lights only when alarm is disarmed

This commit is contained in:
Przemek Grondek 2021-01-18 23:28:54 +01:00
parent 186f8beb78
commit 2854b1056f

View File

@ -71,6 +71,17 @@
- service: alarm_control_panel.alarm_arm_away - service: alarm_control_panel.alarm_arm_away
entity_id: alarm_control_panel.ha_alarm entity_id: alarm_control_panel.ha_alarm
- id: alarm-disarm
alias: '[Alarm] Disarm'
trigger:
- platform: zone
entity_id: device_tracker.sm_g965f
zone: zone.home
event: enter
action:
- service: alarm_control_panel.alarm_arm_away
entity_id: alarm_control_panel.ha_alarm
- id: alarm-triggered - id: alarm-triggered
alias: '[Alarm] Send notification when alarm triggered' alias: '[Alarm] Send notification when alarm triggered'
trigger: trigger: