From 24957da360572d03867b35752d23fa63063f4fb3 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Wed, 24 Jan 2024 23:08:18 +0100 Subject: [PATCH] Hallway allow to turn off lights when camera is unavailable --- configuration/automations/hallway.yaml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/configuration/automations/hallway.yaml b/configuration/automations/hallway.yaml index 7a02ce6..d1b936f 100644 --- a/configuration/automations/hallway.yaml +++ b/configuration/automations/hallway.yaml @@ -56,12 +56,16 @@ - condition: state entity_id: binary_sensor.hallway_motion_sensor state: "off" - - condition: state - entity_id: binary_sensor.hallway_person_occupancy - state: "off" + - condition: or + conditions: + - condition: state + entity_id: binary_sensor.hallway_person_occupancy + state: "off" + - condition: state + entity_id: binary_sensor.hallway_person_occupancy + state: "Unavailable" - condition: state entity_id: binary_sensor.presence_sensor_fp2_hallaway state: "off" action: - service: script.hallway_lights_off -