Hi! I have an aqara motion sensor P1 which can send ‘No_Occupancy_Since’ messages after a defined amount of time. I’ve found where to define this under the device settings. What I can’t figure out is how to use this in an automation. I would like to turn of lights when there has been no occupancy detected for e.g. 90 seconds.
No idea anyone?
So maybe to add some more context:
The ‘no_occupancy_since’ attribute shows up in the device status when it is being sent. However it disappears shortly afterwards. Since it doesn’t continuously exist, I can’t select it when setting up an automation. So the question would be how do I use this message that the device sends in HA at all?