1
0

Update alarm

This commit is contained in:
Przemek Grondek 2022-04-30 00:41:28 +02:00
parent 2f21a64bd7
commit 881475af3d
2 changed files with 9 additions and 16 deletions

View File

@ -14,6 +14,12 @@
- platform: state
entity_id: binary_sensor.kitchen_motion_sensor
to: 'on'
- platform: state
entity_id: binary_sensor.kitchen_tabletop_motion_detection
to: 'on'
- platform: state
entity_id: binary_sensor.sink_motion_sensor
to: 'on'
- platform: state
entity_id: binary_sensor.shower_motion
to: 'on'
@ -91,19 +97,6 @@
- service: alarm_control_panel.alarm_arm_away
entity_id: alarm_control_panel.ha_alarm
- id: alarm-disarm
alias: '[Alarm] Disarm'
trigger:
- platform: zone
entity_id: device_tracker.przemyslaws_iphone
zone: zone.home
event: enter
action:
- service: alarm_control_panel.alarm_arm_away
entity_id: alarm_control_panel.ha_alarm
- service: switch.turn_off
entity_id: switch.siren_switch
- id: alarm-pending
alias: '[Alarm] Send notification when alarm triggered'
trigger:

View File

@ -64,7 +64,7 @@
from: 'on'
to: 'off'
- platform: state
entity_id: binary_sensor.sink_motion_sensor_5473a923_ias_zone
entity_id: binary_sensor.sink_motion_sensor
to: 'off'
for: '0:02:00'
- platform: state
@ -77,7 +77,7 @@
state: 'off'
for: '0:02:00'
- condition: state
entity_id: binary_sensor.sink_motion_sensor_5473a923_ias_zone
entity_id: binary_sensor.sink_motion_sensor
state: 'off'
for: '0:02:00'
- condition: state
@ -93,7 +93,7 @@
mode: single
trigger:
- platform: state
entity_id: binary_sensor.sink_motion_sensor_5473a923_ias_zone
entity_id: binary_sensor.sink_motion_sensor
to: 'off'
for: '0:05:00'
condition: [ ]