Hi all, I have an aqara p1 motion sensor, which for the most part works really well, but I have noticed something strange in one of my automations, which I think might be related to when the sensor actually sends events back to HA.
My question is this…
Does the Aqara p1 (or I’m guessing other motion sensors), only send an event to HA when a state changes ?
My motion sensor has a refresh interval of 30 seconds before it attempts detection again.
When I first go in range of the sensor, the detection is triggered and the state changes from ‘clear’ to ‘detected’.
If I stay in the area of the sensor and keep moving around, will I get another ‘detected’ in 30 seconds, or do I have to wait for it to go back to ‘clear’ (thus changing state), before it can then send another ‘detected’.
I’m assuming I don’t get another ‘detected’ in 30 seconds, because its already sent that message.
This has a side effect in my automation.
I have smart plug with a night light connected to it. When the sensor detects presence, AND the illuminance is below a certain level, it turns on.
If I have a main hall light on, the illuminance is too high and the night light doesnt come on. However, if I stand in the hall and switch off the main light, so the illuminance drops, the night light never comes on until I leave the area for a while then return. I think this is because of the above.
If so, how might you get around this ?