I have a Philips motion detector and a Zigbee controlled light. And I have an Automation (shown below) to turn on that light when motion is detected AND it’s dark.
Dark is defined by me as below 50 lux.
Frequently, the script will turn on the light even when it’s not dark. Just now, it was 71 lux (according to the history) and the light turned on anyway.
Reading the trace for the most recent event it says
Triggered by the state of binary_sensor.philips_basement_door_motion_detector at February 28, 2026 at 5:43:25 PM
Test Current Philips Basement Door motion detector Illuminance illuminance
Stopped because a condition failed at February 28, 2026 at 5:43:25 PM (runtime: 0.00 seconds)
or for more detail
Current Philips Basement Door motion detector Illuminance illuminance
Iteration 1
Executed: February 28, 2026 at 5:43:25 PM
Result:
result: false
Current Philips Basement Door motion detector Illuminance illuminance
Iteration 2
Executed: February 28, 2026 at 5:43:25 PM
Result:
result: false
entity_id/0
Executed: February 28, 2026 at 5:43:25 PM
Result:
result: false
state: 71
wanted_state_below: 50
entity: fd1fc2b32d2f4bff665f50306c0635b0
It sure looks like it read the value, said “Nope, not dark enough” and then did it anyway.
Am I missing something ?
alias: Motion - Philips basement door
description: ""
triggers:
- type: occupied
device_id: ae5dd4a2bebbda56f4efa9de5fa0d1df
entity_id: 16474642d8fad8cf5567a13c80f906ce
domain: binary_sensor
trigger: device
conditions:
- type: is_illuminance
condition: device
device_id: ae5dd4a2bebbda56f4efa9de5fa0d1df
entity_id: fd1fc2b32d2f4bff665f50306c0635b0
domain: sensor
below: 50
actions:
- type: turn_on
device_id: d054336bbe15d287b325be09de9f0b89
entity_id: 5987e34133d11493648ad989900d80c2
domain: light
- delay:
hours: 0
minutes: 10
seconds: 0
milliseconds: 0
- type: turn_off
device_id: d054336bbe15d287b325be09de9f0b89
entity_id: 5987e34133d11493648ad989900d80c2
domain: light
mode: single

