Hi to the HA community.
I tested recently the new Aqara FP2 occupancy sensor and I liked the way the native app in IOS or android is showing live the movement of the people in the respective room where FP2 is installed.
Unfortunately so far I haven’t seen any such example how to import to HA.
Below is my dashboard for multiple people detection in the master bedroom:
Has very good accuracy and so far is working in 95-98% of tested cases.
This is how it looks live, when a person is sleeping on the bed and another one (myself) is walking around the room
How it works:
- Aqara FP2 sensor installed in room and in HA
- Remove all Zones from HA
- Use the Aqara app in any device to setup your room
- How to Setup the Zones in Aqara app
- app is supporting up to 30 zones (if I recall correctly)
- split your room in boxes that represent 1-1 the aqara room boxes or that are higher (for instance in this example I am using 4 boxes of Aqara room as my 1 square matrix)
- be careful on the number you will define - smaller boxes means better movement and more detailed in the room, but also more sensors to setup and work with in HA.
- trial and error until you find the right number - I choose a 4x4 matrix for the room in my example
- then in aqara app you can go and define this 4x4 zones = 16 zones
- then in HA you will have 16 zones + 1 which is for the room
this is how it looks in Aqara app the setup
and that’s it. Now in HA we can go and make some naming of the zones. I used the matrix approach, so Sensor 1 = matrix_1x1, Sensor 2 = matrix_2x1 etc
Then you can group some of the sensors to create custom Zones for occupancy in HA
Multiple People detection - number of people in the room:
using a group of all the sensors and counting how many are “on”, will do the trick and show the number of people in the room with good approximation (considering you split the room in as many boxes as possible from your setup). You can utilize all up to the 30 zones aqara app supports, but this means you need to also setup 30 zones in HA card you will create.