Aqara P1 sensor not detecting motion

I installed an Aqara P1 sensor and got it paired to hubitat without any issues. I have the driver from kkossev installed, and as far as I can tell, its the newest and most recommended one for the P1

https://raw.githubusercontent.com/kkossev/Hubitat/development/Drivers/Aqara%20P1%20Motion%20Sensor/Aqara_P1_Motion_Sensor.groovy

The motion sensor does not seem to trigger from any motion at all. I can change its settings through the hubitat device page, but nothing i change seems to make it start working. I can force it to detect motion through the device page (and it triggers my light automations when doing this), but i'm not sure if that means its actually triggering or if its just hubitat thinking it triggered.

Its connected to a sengled repeater which are said to play nice with these Aqara P1s.

Do I need to assign the custom driver to the sensor somehow? Or is there something else I missed? Any advice would be appreciated

Added some pics


Factory reset the sensor, and pair it very close to the hub (hubitat). Sometimes initialization requires a lot of communication between the device and hub, and this is more likely to occur successfully if the sensor is very close to the hub during pairing.

When you re-pair the sensor, it will slot back with its original name and device-id.

From my perspective, the sensor has fallen off your network fairly frequently (like 10 times). That's not good.

2 Likes

Aqara P1 never pairs successfully from the first try.
Pair it again to HE, very close to the hub.

On successful pairing, the Current States should look like this:
image

Once it starts working when near the hub, you can move it to its final place. The sensor will pick a router if needed.

2 Likes

Thanks for the reply. I will try this and report back

2 Likes

Thank you! Will try

2 Likes

So i tried re-pairing but now i am having different issues. The motion detections seems to be working now, but i can't get battery info to populate, and i cant seem to get the LED to stop flashing on motion, even with Enable/Disable LED set to Disabled.

I'm a bit of a hubitat noob, so could you confirm i am doing this correctly?

  1. Brought aqara P1 directly next to the hubitat hub
  2. Held factory reset on P1 to get it back in pairing mode
  3. Hubitat Device -> Add Device -> Zigbee -> Line pops up showing previously paired Aqara P1, so i click on that.

I did this like 10x but still have the same behavior. Am i supposed to remove the device from hubitat first before re-pairing?

1 Like

Aqara P1 is a battery-powered device, that 'sleeps' most of the time and awakes only when there is motion. So you need to wake it up when sending a new configuration. This can be done by quickly pressing the same physical button on the sensor that is used for the initial pairing, at the same time when you click on the 'Save' button at the device web page.

Observe the log files, if the new settings are accepted by the device, these will be reported in Info logs.

The battery percentage remaining (also the device temperature) is reported periodically, so you may need to wait up to 60 minutes until these values are populated. A short press of the pair button can also produce a battery reading.

2 Likes

Voila !! That seemed to do the trick!
Thank you for the replies, i have learned a ton from this exchange with you, much appreciated! And thanks for the driver also!

2 Likes

Good job!

Aqara P1 is one of the most difficult Zigbee devices to pair to HE (not only HE, but also ST and HA, and all other Zigbee coordinators different than Aqara). You shouldn't have problems with the next Zigbee devices from this time on... Good luck with Hubutat Elevation!

2 Likes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.