I have seen exactly this behavior: my Aqara FP1 is looking from the top of a cupboard which has a lot of cables and led lights. It won’t go back to unoccupied. Thanks for confirming this.
I have been using this sensor for quite some time, but it behaves absolutely inappropriately in different rooms, with different settings and positions, this is a continuous quantum uncertainty. In addition to the fact that it almost never leaves the busy state, it is a 50/50 way to determine presence. At the same time, the presence event may also change the state, or it may not. I do not see any benefit from this device. On Aliexpress, I noticed such a sensor combined with PIR, the price is nice, but there are no reviews yet, maybe someone will tell you what kind of beast.
https://www.aliexpress.com/item/1005005834366702.html
How can I trigger “enter” and “leave” event under home assistant automation?
I can only see “occupied” and “not occupied” under the conditions tab.
Many thanks!!
Use a template:
platform: template
value_template: "{{not is_state(\"sensor.gabe_s_bathroom_radar_presence_event\", \"leave\")}}"
alias: motion active
id: Motion active
Many thanks Ryan!
I’m not sure how I can find the right sensor name. I can only see “binary_sensor.occupancy_sensor_2” in my home assistant.
I changed the code tothe below but it doesn’t work
{{not is_state(\"binary_sensor.occupancy_sensor_2_presence_event\", \"leave\")}}
Select the presence event sensor from the device page. Click the gear icon and it’ll show the entity name. Use that name in the template.
Also, it should be a “sensor” not a “binary_sensor”
Thanks! Not sure if I am looking at the right page but I can’t see a “sensor”. This “occupancy.sensor.station” is the name that I gave to the device.
Also I connect through HomeKit. Not sure if it would make a difference.
Oooohhhh…you’re bringing it in via Homekit. It looks like that doesn’t expose the presence event and just has presence.
The options for occupancy are correct for what you have available. The occupancy state is a delayed change based on a presence event.
The presence event sensor updates first (enter, approach, far, leave) and after a few seconds the presence state will update.
That’s all a long winded way of saying you can just use the occupied/not occupied options but there will be a delay.
I don’t know if there is an option to get the presence event data through Homekit. I, like many others here, have all my FP1s directly connected to HA so I have all that entities available.
Ahh got it this is helpful. Probably I shouldn’t connect through HomeKit then. How did you guys connect aqara devices to HA directly?
I’m using a Sonoff dongle with zigbee2mqtt.