From 9d36d7320eb8b543f51a3a77df25de038437ce38 Mon Sep 17 00:00:00 2001 From: CCOSTAN Date: Sun, 9 Apr 2017 22:16:30 +0000 Subject: [PATCH] Checks for open garages at sundown and then turns on front lights bright white when they are open (kids outside) --- automation/late_night_outside_helper.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/automation/late_night_outside_helper.yaml b/automation/late_night_outside_helper.yaml index ffe3b89e..7efe1484 100755 --- a/automation/late_night_outside_helper.yaml +++ b/automation/late_night_outside_helper.yaml @@ -6,6 +6,10 @@ - platform: state entity_id: group.garage_doors state: 'open' + - platform: state + entity_id: sun.sun + state: 'below_horizon' + from: 'above_horizon' condition: condition: and @@ -13,6 +17,9 @@ - condition: state entity_id: sun.sun state: 'below_horizon' + - condition: state + entity_id: group.garage_doors + state: 'open' action: - service: scene.turn_on