diff --git a/configuration/automations/hallway.yaml b/configuration/automations/hallway.yaml index 44c947b..28dd220 100644 --- a/configuration/automations/hallway.yaml +++ b/configuration/automations/hallway.yaml @@ -53,6 +53,10 @@ entity_id: binary_sensor.hallway_motion_sensor from: 'off' to: 'on' + condition: + - condition: numeric_state + entity_id: sensor.xiaomi_lumi_sen_ill_mgl01_cc990100_illuminance + below: '100' action: - service: script.hallway_lights_on