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'