← Back to Videos
Reviews

Can this tiny sensor make your home smarter?

Installation and review of one of the best Smart Sensors - the Aqara P2 Door and Window Sensor.

Reviews 9:59 302 views

About this video

The Aqara P2 door and window sensor is a $20–$30 Matter-over-Thread contact sensor that can do a surprising amount. In this review and deep dive I walk through everything from pairing and installation to the full range of automations you can build around open/closed state: entry lighting, climate control, security triggers, garage door management, pet gate monitoring, and mailbox alerts. The real insight is that simplicity is the point — the sensor just detects open and closed, but what you do with that information is entirely up to you.

Key takeaways

  • A contact sensor just knows open or closed — but that simple binary state, combined with context from other sensors, time of day, and presence logic, unlocks a huge range of automations.
  • Matter over Thread means easy pairing through your existing Matter controller and Thread border router. No proprietary hub required.
  • Battery life is typically 1–2 years. Name sensors clearly by location and set up a Home Assistant automation to notify you when battery percentage drops low.
  • The gap between sensor and magnet when closed matters. Too much overlap risks misalignment; too much distance and it won't register as closed.
  • Combining contact sensor state with presence detection is where the real power is — automations that behave differently depending on who's home.

Video walkthrough

  1. Unbox and pair via Matter — Remove the battery pull tab. The Aqara P2 is Matter-over-Thread, so pair it through your Matter controller and Thread border router. In Home Assistant: Settings → Devices & Services → Add Integration → Add Matter Device → scan the QR code. Use the pairing code if the QR code on the unit is too small to scan reliably.
  2. Install the sensor correctly — Two components: the sensor body (on the non-moving part — door frame or wall) and the contact magnet (on the moving part — the door or window). Align the indicator lines on each component. Clean both surfaces thoroughly with an alcohol wipe before applying adhesive. Get the gap right: barely touching when closed, clearly separated when open.
  3. Verify open/closed events in Home Assistant — Watch the entity state update in real time as you open and close the door. Open, closed, open, closed. That's the foundation — everything else builds from it.
  4. Build basic automations first — Entry light on when the front door opens. Closet light on when the closet opens, off 30 seconds after it closes. Pantry task lighting tied to pantry door state. These are immediate quality-of-life improvements that need only the contact sensor.
  5. Layer context with other sensors — Combine contact state with time of day, presence detection, and other sensor data for smarter behavior. Example: garage door open for more than 5 minutes AND you've left home → automatically close the door. This avoids triggering when you're actually working in the garage.
  6. More advanced use cases — Windows open → pause HVAC. Front door opens when nobody is home → send notification and start indoor cameras recording. Mailbox first open/close of the day → add a dashboard card noting mail has arrived. Smart lock: rearm after 20 seconds when occupants are home, 2 seconds when away.