1
0

Add hallway automation

This commit is contained in:
Przemek Grondek 2021-01-11 00:07:44 +01:00
parent efd1d50873
commit 6a7ff7a22e

View File

@ -0,0 +1,23 @@
- id: hallway-motion-on
alias: '[Hallway] Motion On'
mode: restart
trigger:
- platform: state
entity_id: binary_sensor.hallway_motion_sensor
from: 'off'
to: 'on'
action:
- service: light.turn_on
entity_id: light.hallway_lightstrip
- id: hallway-motion-off
alias: '[Hallway] Motion Off'
mode: restart
trigger:
- platform: state
entity_id: binary_sensor.hallway_motion_sensor
for: '0:02:00'
from: 'on'
to: 'off'
action:
- service: light.turn_off
entity_id: light.hallway_lightstrip