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
- Remove the sensor body and magnet from the packaging.
- Pull the plastic battery isolation tab from the sensor body to activate the CR2 battery.
- The LED indicator should flash once to confirm the sensor is powered on.
Pairing with Your Aqara Hub
- Open the Aqara Home app on your smartphone.
- Tap the + icon in the upper-right corner.
- Select Door and Window Sensor P2 from the device list, or scan the QR code on the packaging.
- Choose the Aqara Hub to pair with.
- Press and hold the reset button on the sensor for 5 seconds until the LED flashes rapidly, indicating pairing mode.
- Wait for the app to connect to the sensor.
- Assign it to a room and give it a name like "Back Door Sensor" or "Bedroom Window."
Installing the Sensor
- 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).
- Clean both mounting surfaces thoroughly to ensure good adhesive contact.
- Peel the adhesive backing from the sensor body and press it firmly onto the frame.
- Peel the adhesive backing from the magnet and attach it to the door or window, aligned with the sensor body.
- 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.
- 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
- Navigate to the Automations tab in the Aqara Home app.
- Tap + to create a new automation.
- Select the Door and Window Sensor P2 as the trigger.
- Choose "Open" or "Closed" as the trigger condition.
- 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
- Open and close the door or window several times while monitoring the status in the Aqara Home app.
- Verify that the status updates correctly and quickly each time.
- 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.
Was this guide helpful?