Files
Home-AssistantConfig/config/automation/zwave_hallway_door_sensor.yaml

24 lines
608 B
YAML
Raw Permalink Normal View History

2018-01-01 19:00:45 -05:00
###################################
## ZWave Section -
## Home Assistant runs on my [Raspberry Pi 3](https://amzn.to/2e3DOBY) with [Aeon Labs Z Wave Stick (GEN 5)](https://amzn.to/2eAiAP0).
2018-01-01 19:00:45 -05:00
###################################
##############################################################
- alias: Shutdown Helper light
2020-07-20 19:33:03 +01:00
id: e3f4beff-4fa8-42e3-be5a-32b45106ac8a
2018-01-01 19:00:45 -05:00
trigger:
- platform: state
entity_id: light.k4
to: 'on'
for: '00:20:00'
condition:
condition: state
entity_id: light.k1
state: 'off'
action:
- service: light.turn_off
entity_id: light.k4