From 44cb2ffe7d05643b74583aef5144834a03c3ef02 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Sun, 23 Apr 2023 01:55:11 +0200 Subject: [PATCH] Add hallway presence to turn on hallway lights --- configuration/automations/hallway.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configuration/automations/hallway.yaml b/configuration/automations/hallway.yaml index 421d817..db8ad67 100644 --- a/configuration/automations/hallway.yaml +++ b/configuration/automations/hallway.yaml @@ -30,6 +30,7 @@ entity_id: - binary_sensor.hallway_motion_sensor - binary_sensor.hallway_person_occupancy + - binary_sensor.presence_sensor_fp2_a73c_hallaway to: "on" condition: - condition: numeric_state @@ -46,6 +47,7 @@ entity_id: - binary_sensor.hallway_motion_sensor - binary_sensor.hallway_person_occupancy + - binary_sensor.presence_sensor_fp2_a73c_hallaway from: 'on' to: 'off' for: 00:00:01 @@ -56,6 +58,9 @@ - condition: state entity_id: binary_sensor.hallway_person_occupancy state: "off" + - condition: state + entity_id: binary_sensor.presence_sensor_fp2_a73c_hallaway + state: "off" action: - service: script.hallway_lights_off