54 lines
1.4 KiB
YAML
Raw Normal View History

2018-01-01 19:00:45 -05:00
##############################################################################
### Detect when things are on and forgotten about. Like any Good Watchdog.
##############################################################################
- alias: Automated Light WatchDog!
2020-07-20 19:33:03 +01:00
id: 57a921ca-6009-46e7-9ba6-699eee6cf733
2018-01-01 19:00:45 -05:00
trigger:
- platform: state
entity_id:
- light.hallway
- light.hallway_lights
- light.foyer_lights
2018-01-01 19:00:45 -05:00
to: 'on'
for: '00:20:00'
#Turn it off!
action:
- service: homeassistant.turn_off
data:
2018-01-01 19:00:45 -05:00
entity_id: "{{ trigger.entity_id }}"
- alias: Make it Right WatchDog!
2020-07-20 19:33:03 +01:00
id: ddd4397e-951f-46f2-9362-3bff2caa9cf3
trigger:
- platform: time_pattern
minutes: '/15'
condition:
- condition: state
entity_id: sun.sun
state: 'above_horizon'
#Turn it off!
action:
- service: homeassistant.turn_off
data:
entity_id:
- switch.front_landscaping
- switch.back_landscaping
- light.outdoor_foyer
- light.outdoor_sconce_1
- light.outdoor_sconce_2
- light.outdoor_sconce_3
- light.led_garage_large
- light.led_garage_snip
- light.led_garage_small
- light.led_outdoor_den
- light.outdoor_bathroom
2020-06-21 13:29:59 -04:00
- light.flood2
- light.hallway
- light.hallway_lights
- light.foyer_lights