You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
735 B
28 lines
735 B
##############################################################################
|
|
### Detect when things are on and forgotten about. Like any Good Watchdog.
|
|
##############################################################################
|
|
|
|
- alias: Automated Light WatchDog!
|
|
trigger:
|
|
- platform: state
|
|
entity_id:
|
|
- light.hallway
|
|
- group.hallway_lights
|
|
- group.foyer_lights
|
|
- switch.printer_outlet
|
|
to: 'on'
|
|
for: '00:20:00'
|
|
|
|
- platform: state
|
|
entity_id:
|
|
- group.upstairs
|
|
- switch.garage_outlet
|
|
to: 'on'
|
|
for: '02:00:00'
|
|
|
|
#Turn it off!
|
|
action:
|
|
- service: homeassistant.turn_off
|
|
data_template:
|
|
entity_id: "{{ trigger.entity_id }}"
|