From 2f8606633ea8768ee85ccfcf94e7c00089ae3ffd Mon Sep 17 00:00:00 2001 From: ccostan Date: Sat, 19 May 2018 15:29:49 -0400 Subject: [PATCH] Check outdoor lights every 30 minutes after sunrise. #355 --- config/automation/System/watchdog_light.yaml | 31 ++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/config/automation/System/watchdog_light.yaml b/config/automation/System/watchdog_light.yaml index 082217d7..6a0c34d8 100755 --- a/config/automation/System/watchdog_light.yaml +++ b/config/automation/System/watchdog_light.yaml @@ -25,3 +25,34 @@ - service: homeassistant.turn_off data_template: entity_id: "{{ trigger.entity_id }}" + +- alias: Make it Right WatchDog! + trigger: + - platform: time + minutes: 10 + seconds: 20 + - platform: time + minutes: 40 + seconds: 00 + + condition: + - condition: state + entity_id: sun.sun + state: 'above_horizon' + +#Turn it off! + action: + - service: homeassistant.turn_off + data_template: + 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