From ca87dc2d8ce5dca9c34c410db91a484fc2cfadf8 Mon Sep 17 00:00:00 2001 From: ccostan Date: Sun, 27 Dec 2020 16:21:37 -0500 Subject: [PATCH] Great Idea to turn on the lights if the front door is opened. https://github.com/adonno/Home-AssistantConfig/issues/36 --- config/automation/late_night_outside_helper.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config/automation/late_night_outside_helper.yaml b/config/automation/late_night_outside_helper.yaml index c959c2f9..31280113 100755 --- a/config/automation/late_night_outside_helper.yaml +++ b/config/automation/late_night_outside_helper.yaml @@ -8,6 +8,8 @@ trigger: - platform: state entity_id: group.garage_doors + - platform: state + entity_id: binary_sensor.mcu1_gpio5 #front door - platform: state entity_id: sun.sun to: 'below_horizon' @@ -45,8 +47,8 @@ - switch.back_landscaping - switch.front_door_outlet - switch.foyer_outlet - - wait_template: >- - {{ states.group.garage_doors.state == 'closed' }} + - wait_template: "{{ is_state('states.group.entry_points.state', 'off') }}" + - wait_template: "{{ is_state( 'group.garage_doors', 'closed') }}" - service: script.monthly_color_scene - choose: - conditions: >