2018-01-02 00:00:45 +00:00
|
|
|
##############################################################################
|
|
|
|
### Detect when things are on and forgotten about. Like any Good Watchdog.
|
|
|
|
##############################################################################
|
|
|
|
|
|
|
|
- alias: Automated Light WatchDog!
|
2020-07-20 18:33:03 +00:00
|
|
|
id: 57a921ca-6009-46e7-9ba6-699eee6cf733
|
2018-01-02 00:00:45 +00:00
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id:
|
2020-06-07 20:06:43 +00:00
|
|
|
- light.hallway_lights
|
|
|
|
- light.foyer_lights
|
2018-01-02 00:00:45 +00:00
|
|
|
to: 'on'
|
|
|
|
for: '00:20:00'
|
|
|
|
|
|
|
|
#Turn it off!
|
|
|
|
action:
|
|
|
|
- service: homeassistant.turn_off
|
2020-09-26 14:52:45 +00:00
|
|
|
data:
|
2018-01-02 00:00:45 +00:00
|
|
|
entity_id: "{{ trigger.entity_id }}"
|
2018-05-19 19:29:49 +00:00
|
|
|
|
|
|
|
- alias: Make it Right WatchDog!
|
2020-07-20 18:33:03 +00:00
|
|
|
id: ddd4397e-951f-46f2-9362-3bff2caa9cf3
|
2018-05-19 19:29:49 +00:00
|
|
|
trigger:
|
2021-04-22 21:00:29 +00:00
|
|
|
- platform: homeassistant
|
|
|
|
event: start
|
|
|
|
- platform: sun
|
|
|
|
event: sunrise
|
2018-05-19 19:29:49 +00:00
|
|
|
|
|
|
|
condition:
|
|
|
|
- condition: state
|
|
|
|
entity_id: sun.sun
|
|
|
|
state: 'above_horizon'
|
|
|
|
|
|
|
|
#Turn it off!
|
|
|
|
action:
|
2020-12-27 20:52:38 +00:00
|
|
|
- service: script.garage_lights_off # C by GE Lights (https://amzn.to/30w3UWy)
|
2021-04-22 21:00:29 +00:00
|
|
|
|
2018-05-19 19:29:49 +00:00
|
|
|
- service: homeassistant.turn_off
|
2020-09-26 14:52:45 +00:00
|
|
|
data:
|
2018-05-19 19:29:49 +00:00
|
|
|
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
|
2021-11-04 15:36:30 +00:00
|
|
|
- light.flood_2
|
2020-08-20 19:30:18 +00:00
|
|
|
- light.hallway
|
|
|
|
- light.hallway_lights
|
|
|
|
- light.foyer_lights
|