Add hallway automation
This commit is contained in:
parent
efd1d50873
commit
6a7ff7a22e
23
automations/files/hallway-motion.yaml
Normal file
23
automations/files/hallway-motion.yaml
Normal 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
|
Loading…
Reference in New Issue
Block a user