Aqara FP2 How many people?

Hello - I have an Aqara FP2 integrated into HA via HomeKit. I would like to create some automations when 3 (or more) people are detected in a room… With the HomeKit integration, it seems like all I can do is create automations for Presence or Not… is there a way to get additional functionality with my FP2?


There is not. That information is not exposed to HomeKit, and there is currently no other way to integrate this with HA.

Bummer… that’s what I was afraid of hearing…

there is a workaround to this, but requires redesign of your zones in Aqara application and reinstalling the aqara sensor in HA.
In Aqara app you can define up to 30 zones, so you should split the room in up to 30 zones, (representing 1 zone for example with 1-4 squares). Name the zones, z1,z2 etc.
then when you install again the sensor in HA, you will get all these zones.
Then you just have to create a group of all these zones.
If more than 1 person in the room, and the persons are tracked in the detailed zones you have setup, the group sensor will be giving you the Total number of the people with good approximation.

check my work in progress case for live tracking of people in HA with FP2:

1 Like

That’s fantastically creative! Thanks for sharing your method!!

Hi how do you setup the counting part?

I have put all my bedroom grids in to a sensor group but how do I code the counting on the total areas as occupied?

good hint. Thanks. In my case I do not have to reinstall the sensor in HA after redefining zones in the Aqara app. The changed/new zone just pop up in HA HomeKit Device.

Can confirm that.

I’m not sure this is possible using standard HA automations. But it is quite easy with the Node Red add-on. You should be aware though that Node Red is a totally different approach to automation and has a learning curve.