Check outdoor lights every 30 minutes after sunrise. #355

This commit is contained in:
ccostan 2018-05-19 15:29:49 -04:00
parent 2e90a43ba2
commit 2f8606633e
1 changed files with 31 additions and 0 deletions

View File

@ -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