From f38feb25727d8d37316d71283e9a96bec99951ec Mon Sep 17 00:00:00 2001 From: KenwoodFox Date: Mon, 9 Aug 2021 19:36:35 -0400 Subject: [PATCH] Integrate downstairs foyer sensor --- automations.yaml | 20 +++++++++++++++++--- groups.yaml | 1 + 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/automations.yaml b/automations.yaml index 592325a..f37e886 100755 --- a/automations.yaml +++ b/automations.yaml @@ -80,7 +80,7 @@ mode: single - id: '1628291074276' alias: Turn Off Lights When House is Empty - description: When everybody leaves, turn off the lights + description: When everybody leaves, turn off the lights (switches only) trigger: - platform: state entity_id: binary_sensor.people_home @@ -100,9 +100,9 @@ at: 03:00 condition: [] action: - - service: switch.turn_off + - service: homeassistant.turn_off target: - entity_id: switch.shop_lights + entity_id: group.basement mode: single - id: '1628534795820' alias: Activate Basement Lights on Shop Door Entry @@ -117,3 +117,17 @@ target: entity_id: group.basement mode: single +- id: '1628551010045' + alias: Cascade Turn Off Basement Lights + description: If somebody turns off the lights at the stairwell, they prolly dont + mind if all the lights beyond that are turned off too. + trigger: + - platform: state + entity_id: switch.shop_lights + to: 'off' + condition: [] + action: + - service: homeassistant.turn_off + target: + entity_id: group.basement + mode: single diff --git a/groups.yaml b/groups.yaml index 5f3a436..a99d884 100755 --- a/groups.yaml +++ b/groups.yaml @@ -3,3 +3,4 @@ basement: name: Basement Lights entities: - switch.shop_lights + - switch.shop_foyer_lights