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 - platform: state
entity_id: binary_sensor.kitchen_motion_sensor entity_id: binary_sensor.kitchen_motion_sensor
to: 'on' 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 - platform: state
entity_id: binary_sensor.shower_motion entity_id: binary_sensor.shower_motion
to: 'on' to: 'on'
@ -91,19 +97,6 @@
- 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.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 - id: alarm-pending
alias: '[Alarm] Send notification when alarm triggered' alias: '[Alarm] Send notification when alarm triggered'
trigger: trigger:

View File

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