Closes #70 - Split out Watchdog configs

This commit is contained in:
CCOSTAN
2017-02-20 15:42:00 +00:00
parent 68287e0bbd
commit 791630cc3c
6 changed files with 111 additions and 99 deletions

View File

@@ -0,0 +1,27 @@
##############################################################################
### Detect when things are on and forgotten about. Like any Good Watchdog.
##############################################################################
- alias: Automated Light WatchDog!
trigger:
- platform: state
entity_id:
- light.hallway
- group.foyer_lights
- light.master_toilet
state: 'on'
for: '00:20:00'
- platform: state
entity_id:
- light.paige_go
- light.justin_go
- group.upstairs
state: 'on'
for: '02:00:00'
#Turn it off!
action:
- service: light.turn_off
data_template:
entity_id: "{{ trigger.entity_id }}"