Front lights are too far from hub and are sometimes left on. This should take care of that.

This commit is contained in:
CCOSTAN
2016-12-06 16:05:28 +00:00
parent 061d78c3a3
commit 80e9a85e95

View File

@@ -86,3 +86,22 @@
value2: "Small: {{ states('cover.garadget_small')}}"
value3: "Large: {{ states('cover.garadget_large')}}"
##############################################################################
- alias: If Outdoor lights are on and it's daytime, TURN THEM OFF!!
trigger:
- platform: time
minutes: '/47'
condition:
- condition: state
entity_id: sun.sun
state: 'above_horizon'
- condition: state
entity_id: group.outdoor_lights
state: 'on'
action:
- service: light.turn_off
entity_id: group.outdoor_lights