
Aqara P2 is a Matter over Thread door and window sensor with battery state reporting, tilt detection, and tamper alerts.
Entities in Home Assistant
9 entities via Matter
Primary entities 1 What automations and dashboards use.
| Entity | Type | Device class | Unit |
|---|---|---|---|
| Door | binary_sensor | door | — |
Configuration 1 Settings exposed as entities, tunable from Home Assistant.
| Entity | Type | Device class | Unit |
|---|---|---|---|
| Sensitivity | number | — | — |
Diagnostics 7 Health and troubleshooting values, hidden from dashboards by default.
| Entity | Type | Device class | Unit |
|---|---|---|---|
| Identify | button | identify | — |
| Battery | sensor | battery | % |
| Battery type | sensor | — | — |
| Battery voltage | sensor | voltage | V |
| Boot reason | sensor | enum | — |
| Reboot count | sensor | — | — |
| Uptime | sensor | uptime | — |
Verified against Home Assistant 2026.8.3: this is the entity list Home Assistant creates for this device, taken from core's own test snapshots rather than written by hand. Entity IDs depend on the name you give the device during commissioning, so only the entity names and types are shown here.
Where to buy
Some links above are affiliate links. Selora Homes may earn a commission from purchases made through these links at no extra cost to you.
Setup and troubleshooting
Guides written for this device: connecting it to Home Assistant and fixing it when it stops responding.
Recipes using this device
Door or Window Left Open Alert
Installs a Home Assistant automation that watches your door and window sensors and pushes a notification to your phone when one is left open past a grace period while nobody is home. Add lights and it flashes the room, add a speaker and it announces the warning out loud.
Window Open HVAC Pause
Installs a Home Assistant automation that turns the thermostat off when a window is left open, so you are not heating or cooling the street, and turns it back to the mode it was in once every window is shut. Add door sensors and a temperature sensor for the full picture.
Recipes that can use it
These recipes are built around other hardware, and pick this device up as an optional extra.