Aqara FP300 with Zigbee2MQTT: Can Home Assistant detect if you are approaching or moving away?

Hi everyone,

I’m currently using the Aqara FP300 sensor connected to Home Assistant via Zigbee2MQTT. It works flawlessly for general presence detection, but I’m trying to set up a more advanced automation.

Does anyone know if it’s possible to detect the exact direction of movement with this setup? Specifically, I want Home Assistant to trigger different actions depending on whether someone is approaching the sensor or moving away from it.

If anyone has successfully built an automation like this, I’d love to hear how you pulled it off or what attributes you used!

Thanks in advance for the help!

4 Likes

No, those options are not available for the FP300 sensor. (at least I don’t see them).

They are available for the G5 Pro camera, for example when a vehicle pulls into the driveway or when a vehicle pulls out of the driveway or a person approaches or a person leaves.

Hope that helps?

2 Likes

Hey!

Doing this reliably with just one sensor is pretty tough. But combining multiple sensors should work.

For example, my setup: I have a G410 doorbell outside, a contact sensor on the front door, a P1 motion sensor just behind the door, and an FP2 in the hallway.

The logic is simple: If the G410 detects a person → door opens → P1 triggers → FP2 triggers, I know for sure someone actually walked in (and didn’t just turn around at the threshold). Of course, it should work in reverse for leaving, too.

You can set this up in HA using the wait_for_trigger action in your automations. Just make sure you definitely add timeouts to those waits!

In general, I’d always recommend using multiple triggers for presence detection anyway. For example, I use the HACS integration iCloud3 v3 iDevice Tracker, along with other things like an iOS shortcut that sets a person to away as soon as they connect to CarPlay.

Hope this gives you some ideas!

3 Likes

Thanks everyone for the great advice! I really appreciate the help and I’m going to give these suggestions a try.

1 Like

How can i block this camera from accessing internet if it uses home wifi? I mean i want to block camera from spying on me and/or report any data to aqara/chinese/anygov servers.

And at the same way get access to the camera from internet, preferably by opensourced android app.