From d6c21dd26fde86705ab33c230463026e3342f5bf Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Sat, 13 Aug 2022 19:22:24 +0200 Subject: [PATCH] Fix kitchen lights motion automation --- configuration/automations/kitchen-motion.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/configuration/automations/kitchen-motion.yaml b/configuration/automations/kitchen-motion.yaml index 6318b75..ffa2045 100644 --- a/configuration/automations/kitchen-motion.yaml +++ b/configuration/automations/kitchen-motion.yaml @@ -10,7 +10,13 @@ entity_id: binary_sensor.kitchen_tabletop_motion_detection to: 'on' action: - - service: script.kitchen_lights_on + - choose: + - conditions: + - condition: numeric_state + entity_id: sensor.office_illuminance + below: '150' + sequence: + - service: script.kitchen_lights_on - id: kitchen-lights-off alias: '[Kitchen] Lights Off'