Aqara Sensor P2

I’ve been trying to integrate my Aqara Door / Window Sensor P2 with ANYTHING - Apple, Google, Alexa and it just isn’t happening. It goes into pairing mode but won’t pair. Is it possible my sensor is bad, or am I missing something? I haven’t had trouble pairing any of the other 20+ various types of devices around my home.

@ems911 I’m sorry to hear about the trouble you’re having with pairing your Aqara Door / Window Sensor P2. Let’s see if we can troubleshoot this together!

First, ensure that the sensor is not too far from the border router, as distance can sometimes prevent successful pairing. Try moving it closer and attempt to pair again. Additionally, check if your Home App and border router are both updated to the latest versions, as outdated software can hinder connectivity.

If the sensor is still not pairing after these steps, you might want to reset it by pressing the button quickly and successively 10 times until the indicator flashes, which signals a reset to factory settings. Once reset, you can try the pairing process again.

In case these steps don’t resolve the issue, it might be helpful to verify that you have a Matter-compatible hub and app for the platforms you’re trying to connect to. If you continue to experience issues, engaging with the wider community here could also bring up some useful insights.

Feel free to keep us updated on your progress or if you have any more questions!

2 Likes

I’m having issues connecting to the P2 sensor via matter with anything as well. The only luck I’ve had so far was to reset my M3 hub then connecting it to the M3 hub. The tricky part is that the sensor isn’t connecting to any of the other hubs despite copying the matter code that’s generated from the M3 hub. I’ll reply if I find a solution.

2 Likes

Hello
The P2 sensor works via Thread, do you have a compatible smart home center (hub) to connect it to?
Tell me in more detail how you add it and where and what equipment do you have for this?

Make sure you have the latest iOS firmware, try adding the sensor to HK first and take the matter code there and add it to other systems.

1 Like

I bought my P2 sensor a while ago, I was never able to set the detection timeout, and sometimes it would randomly detect motion when there was none (or when there was no one home). I ended up going back to the updated P1 sensor. No issues with that

2 Likes

I have been trying for months going back and forth with Tech Support on getting something so simple accomplished.

I have a second home with Google Home monitoring dozens of other devices. Trying to add the P2 Window and Door sensor, as it claims is compatible with Google Home, DOES NOT WORK!!! I have a Google WiFi Pro router as the Thread router. After working with tech support for weeks, nothing would work.
I was then told to purchase the M3 Aqara Hub as that would be a for sure solution. I did purchase it and even the M3 Hub will NOT pair with these P2 sensors.

I don’t understand how these products just will not work!

Tech support first blamed this on Apple iOS. So i tried it with an Android device and the same exact issues occured. I hate to throw anything away but this might be the first hardware that deserves to be tossed in the trash.

beyond frustrating!!

1 Like

why wouldn’t these work using the M3 Hub?

Hello @robert_bracero
It connects to aqara hone using the m3 hub and other hubs that support thread border router.

I have the M3 Hub. The P2s I have (6 of them) are NOT connecting to the M3 Hub.

I’ll try to make a video for you today and show you the process of adding a sensor to Aqara home.

1 Like

What I have used:

  1. Aqara Home App on iPhone
  2. Aqara Hub M3 (firmware is up to date)
  3. Aqara P2 Window and Door Sensors (factory reset)
  4. When pressing the P2 button rapidly 10 times, the Aqara Home App recognizes the P2.
  5. I press the “found P2”
  6. Then it scans the QR
  7. I select “New device”
  8. I select the Hub M3 as the Matter Controller
  9. It states “AqaraHome” would like to add this sensor, i select the blue button
  10. The P2 flashes rapidly
  11. The app says Sensor is Setting Up and may take a few minutes
  12. Then the all too familiar notice! “Unable to Add Accessory” Pairing Failed.
  13. I have also restarted the Hub several times

I have the same problem. Using an M100 (connected to 2.4Ghz WiFi) and using a AppleTV 4K which has other thread devices connected. I’ve tried connecting to Apple Home first and connecting to Aqara app first. Both see the device, start set up but time out. I’ve reset the P2 multiple times.

Help!

Just to clarify: During the pairing process, the access credentials for your Thread network are sent to the P2 via Bluetooth. These credentials were stored in your cloud account or locally on your phone when the Thread network was originally created. According to your description, the smartphone and the P2 can see each other via Bluetooth, but an error occurs afterward.

It is possible that the credentials transferred were incorrect. This can happen if you have reset your hub but the smartphone still has the old credentials stored. It is also possible that your smartphone does not have the correct credentials because the Thread network was created with a different smartphone or a different iCloud/Google account. Therefore, please use the same device and account that were used to create the network. Alternatively, it may help if the Aqara Hub rejoins the existing Thread network of the Apple TV 4K. If no Thread network exists, a new one must be created; this will ensure your smartphone receives the new credentials.

Ideally, the correct credentials for the Thread network were transferred (vie Bluetooth), but subsequently, the smartphone (connected via Wi-Fi) and the sensor (connected via Thread) need to find each other for the first time. One of the Thread Border Routers (the Aqara Hub or the Apple TV 4K) acts as the link between your home network and the Thread network. For the sensor and the smartphone to “see” each other, communication must function between the smartphone, the LAN/Wi-Fi router, the Thread Border Router, and the sensor.

To achieve this, every device listed should ideally be in the same network segment (not isolated, on the same Wi-Fi / e.g., on the 2.4 GHz network with the same SSID, rather than one device on 2.4 GHz and another on 5 GHz). It is also crucial that IPv6 is enabled on your network and that the IPv6 address prefix is being distributed. The Thread Border Router passes this address prefix on to the sensor so that it can generate a valid IPv6 address.

If you have other Matter-over-Thread devices that are working, IPv6 should not be the issue. Unless you had the 5 GHz Wi-Fi disabled at the time of adding them and it is now re-enabled. One should also not confuse Matter-over-Thread with Matter-over-Wi-Fi devices. If you only have Matter-over-Wi-Fi devices, they likely function via IPv6 Link-Local addresses, whereas Matter-over-Thread devices urgently require ULA (Unique Local Address) or GUA (Global Unicast Address) addresses.

Please check the settings of your Aqara Hub to ensure all devices are in the same Thread network. Ideally, only one Thread network should exist and be displayed. If this is not the case, the non-functioning sensor might be integrating into one network while the other sensors are located in a different one.

Thank you! That’s is great detail to have. In the end I had to turn off my 5ghz network even though neither the phone or the m100 were connected to it. Once I did that it all connected up first time. Then I was able to turn th 5ghz on again. All working now.

Great that it’s working now! Perhaps the Apple TV 4K was acting as the primary Thread Border router and was connected to the 5 GHz Wi-Fi network. If possible, I recommend connecting via a LAN cable.