Skip to main content

The Aqara Door and Window Sensor P2 is an upgraded Zigbee contact sensor with a longer detection range, faster response time, and support for undecoded Zigbee mode for advanced integrations. Like the original sensor, it detects when a door or window is opened or closed by measuring the distance between its two components — the sensor body and the magnet.

What You Will Need

  • Aqara Door and Window Sensor P2 (sensor body and magnet)
  • Aqara Hub (M2, M3, or Camera Hub G3) already set up on your network
  • Aqara Home app installed on your smartphone (iOS or Android)
  • CR2 battery (included)
  • Included adhesive pads

Preparing the Sensor

  1. Remove the sensor body and magnet from the packaging.
  2. Pull the plastic battery isolation tab from the sensor body to activate the CR2 battery.
  3. The LED indicator should flash once to confirm the sensor is powered on.

Pairing with Your Aqara Hub

  1. Open the Aqara Home app on your smartphone.
  2. Tap the + icon in the upper-right corner.
  3. Select Door and Window Sensor P2 from the device list, or scan the QR code on the packaging.
  4. Choose the Aqara Hub to pair with.
  5. Press and hold the reset button on the sensor for 5 seconds until the LED flashes rapidly, indicating pairing mode.
  6. Wait for the app to connect to the sensor.
  7. Assign it to a room and give it a name like "Back Door Sensor" or "Bedroom Window."

Installing the Sensor

  1. The sensor body goes on the fixed frame (door frame or window frame) and the magnet goes on the moving part (the door or window).
  2. Clean both mounting surfaces thoroughly to ensure good adhesive contact.
  3. Peel the adhesive backing from the sensor body and press it firmly onto the frame.
  4. Peel the adhesive backing from the magnet and attach it to the door or window, aligned with the sensor body.
  5. When the door or window is closed, the sensor and magnet should be within 20 mm of each other. The P2 has a slightly longer detection range than the original sensor, but closer placement is always more reliable.
  6. Check the alignment marks on both pieces to ensure proper orientation.

Key Improvements Over the Original Sensor

  • Faster response time — The P2 reports open and close events more quickly, which is important for time-critical automations like triggering lights.
  • Longer magnet detection distance — Up to 20 mm gap tolerance, making installation easier on doors and windows with thicker weatherstripping or uneven surfaces.
  • Larger battery — The CR2 battery provides a longer lifespan than the CR1632 used in the original sensor.

Setting Up Automations

  1. Navigate to the Automations tab in the Aqara Home app.
  2. Tap + to create a new automation.
  3. Select the Door and Window Sensor P2 as the trigger.
  4. Choose "Open" or "Closed" as the trigger condition.
  5. Add your desired actions and save the automation.

Practical automation examples:

  • Entry lighting — Turn on the entryway light when the front door opens, and turn it off 5 minutes after the door closes.
  • Security alerts — Send a push notification when any door or window opens while you are away from home.
  • Climate control — Pause the air conditioner when a window is opened to save energy, and resume when it closes.
  • Left-open warning — Trigger a hub alarm or notification if a door remains open for more than a set period, such as 10 minutes.

Testing

  1. Open and close the door or window several times while monitoring the status in the Aqara Home app.
  2. Verify that the status updates correctly and quickly each time.
  3. Test any configured automations to ensure they trigger as expected.

Tips

  • The CR2 battery typically lasts two to three years. The app will alert you when it is time to replace it.
  • For areas where adhesive may not hold (textured paint, outdoor surfaces), consider using small screws or a mounting bracket.
  • Deploy multiple P2 sensors on all entry points for comprehensive home security monitoring.
  • The P2 is also available in a Matter-compatible version, which allows direct connection to Apple Home, Google Home, or SmartThings without an Aqara Hub.

Ready to get started?

Check out the Aqara Door and Window Sensor P2 and see where to buy.

View Product Details

Was this guide helpful?