I am playing around with the HASS with ZHA (with Sonoff dongle E) and Philips Hue. And other devices, but the Hue motion sensor is the topic right now.
I connected the Philips Hue motion sensor directly to ZHA (not via Philips Hue bridge). I see multiple possible sensors - as expected. Illuminance, Occupancy, Opening and Temperature.
My observations is, that once the “Occupancy” (motion) is detected (set to “Detected”), the “Opening” sensor is set to “Open”.
Me sitting on the chair writing this with the sensor behind me does not trigger the “Occupancy” (motion) sensor so it is soon (very soon) switched to “Clear”. After couple of minutes, the “Opening” sensor is switched to “Closed”. Only after I wave my hands, the motion is detected and both sensors are triggered. “Occupancy” is set to “Detected” and “Opening” is set to “Open”. And the whole cycle repeats.
I assume the “opening” is for alarm functions, so you have different channels for you motion detection and alarm function and you can enable/disable separately
Like you guys, I found this thread because I was curious.
You should be using Occupancy for regular motion detection. . I believe the “Opening” thing is if the sensor is active. The reason you were seeing it every 5 minutes is because it’s something else.
I originally thought this was if the motion sensor is actively seeking motion or not, but based on your data, that’s not the case. So it must be another motion detection that has a much higher “off” delay.
In some detectors, you can configure the “off” delay:
I actually thought about using it as kind of presence sensor.
Since you move a bit at least within of 5 minutes, it will re-trigger the open state over and over again. First, if there was no motion triggered for 5 minutes, it switches back to closed.
Now with an automation in place that will first trigger (for example to turn off TV and light in a room) when the sensor is on closed for 5 or let’s say 8 minutes. That would give you a window of 10–13 minutes to prevent the automation to be triggered.
Well I know it is probably not ideal for everything or everyone, but for my office / gaming room, this works well. Over the day I have a delay of 15 minutes and in the night it is set to 5 minutes which will turn all my devices and the light off when I go to bed after gaming.
I tested this now for a few days and if the bit bigger delay does not bother you, it is indeed a nice way to have presence sensor in small and battery instead connected to the mains.