Home Assistant · Buying Guide
Best Contact Sensors for Home Assistant
A contact sensor is the simplest device in the smart home: a magnet, a reed switch, and a radio that tells Home Assistant whether something is open or closed. It is also the sensor people buy most — for doors, windows, the garage, the mailbox, the freezer that must never be left ajar — and the category this site had somehow never rounded up on its own. This guide covers the five worth buying in late 2026, split by the radio your house already runs: Matter over Thread, Zigbee, or Z-Wave. Every pick pairs directly with Home Assistant, with no vendor account and no cloud in the path.
Published Nov 23, 2026
What a contact sensor actually reports
Strip away the marketing and a contact sensor reports one bit of information: the magnet is near the sensor (closed) or it is not (open). Home Assistant turns that bit into automations — a notification when the side door opens after midnight, lights that follow the pantry door, a warning when the freezer has been open for ten minutes. Some models add a tamper signal that fires when the case is opened or the sensor is pulled off its mount, which is worth having on an external door. Battery level is reported too, and it matters more than it sounds: a contact sensor with a dead battery does not fail loudly, it just goes quiet, so pick sensors whose batteries you can actually buy and replace.
One boundary worth stating plainly: these are awareness sensors for automations. They are excellent at telling your house what is open and closed, and this guide makes no claim that any of them turns Home Assistant into a monitored security system — the site’s alarm guide covers panels, sirens and keypads built for that job.
The radio decides the shortlist
Contact sensors are battery devices that sleep almost all the time, so the radio is a low-power mesh protocol: Thread, Zigbee or Z-Wave. There is no wrong answer, only the network you already have. If your house runs a Thread border router and you are buying into Matter, the Thread pick below is the cleanest long-term bet. If you run Zigbee — most Home Assistant houses do — you have the widest choice and the lowest prices. If you run Z-Wave, one pick below is a small gift: a mainstream sensor that skips its maker’s ecosystem entirely. Wi-Fi contact sensors exist, but Wi-Fi radios and coin cells are a poor mix; everything recommended here sips power instead.
| Sensor | Radio | Battery | Best for |
|---|---|---|---|
| Aqara Door & Window Sensor P2 | Matter over Thread | CR2032-class coin cell | Matter-first homes with a border router |
| Aqara Door & Window Sensor T1 | Zigbee 3.0 | CR2450 | The default Zigbee pick |
| Sonoff SNZB-04P | Zigbee | CR2477 | Tamper alerts and a bigger cell |
| ThirdReality Door Sensor | Zigbee | Standard AAA cells | Outfitting a whole house |
| Ring Alarm Contact Sensor (2nd Gen) | Z-Wave 700 | CR2032 coin cells | Z-Wave houses — no Ring account needed |
The picks
Aqara Door & Window Sensor P2 — the Thread pick
The P2 speaks Matter over Thread, which makes it the forward-looking choice: it pairs with Home Assistant through a Thread border router and needs no Aqara hub and no Aqara account at any point. Thread sensors also benefit from the mesh you are already building for Matter lights and plugs — every mains-powered Thread device nearby makes the sensor’s path to the border router stronger. If you are starting from zero and choosing a direction, this is the direction. If you do not yet own a border router, read the border router comparison linked below before buying a box of these.
Aqara Door & Window Sensor T1 — the default Zigbee pick
The T1 (model MCCGQ12LM) is the sensor a generation of Home Assistant users standardized on, and it is still the easy recommendation on Zigbee. It runs Zigbee 3.0, pairs in both ZHA and Zigbee2MQTT with no account, and uses a CR2450 coin cell that Aqara rates for about two years — treat that as a maker rating rather than a promise, since real life depends on how often the door moves and how cold the frame gets. It is small, it is cheap in multi-packs, and its one quirk is shared by every sensor here: mount the magnet within the maker’s stated gap, or a closed door will read open.
Sonoff SNZB-04P — tamper alerts and a bigger battery
Sonoff’s SNZB-04P is the Zigbee pick for doors where you want to know about interference, not just opening: it adds a tamper alert when the case is opened, and it runs on a CR2477, a physically larger cell than most rivals use. Sonoff is already shipping a successor, the SNZB-04PR2, which switches to standard AAA cells — if replaceable-with-what-is-in-the-drawer batteries matter to you, that detail alone may settle the choice between the two generations.
ThirdReality — the bulk-install pick
ThirdReality’s door sensor is the one to buy when the plan is twelve doors, not two. It is Zigbee, it pairs cleanly with Home Assistant, and it runs on standard AAA cells — the battery you can buy anywhere, in quantity, forever. That sounds like a small thing until you are maintaining a house full of sensors on three different coin-cell sizes. For a whole-house rollout, boring batteries beat clever batteries.
Ring Alarm Contact Sensor (2nd Gen) — the Z-Wave pick that skips Ring
The surprise of the category: Ring’s second-generation contact sensor is a standard Z-Wave 700 device, and it pairs directly to Z-Wave JS in Home Assistant with no Ring hub and no Ring account — the pairing is community-documented and the sensor behaves like any other Z-Wave contact sensor once it is on your network. At a $19.99 list price it is also priced like the commodity it is. If your house runs Z-Wave for locks and switches, this is the contact sensor to match it, whatever you think of the brand on the box.
The one to think twice about: YoLink
YoLink sensors show up in every roundup because their LoRa radios reach absurd distances — outbuildings, long driveways, the far end of a property. The trade is structural: YoLink requires its hub, and the system is cloud-adjacent rather than local-first. On a site whose whole position is that your house should work without someone else’s server, that is a flag rather than a headline. If you have a genuinely distant outbuilding and no mesh can reach it, YoLink is a pragmatic exception — just make it a knowing one.
Battery life, stated carefully
Every maker in this category prints a battery figure, and every one of those figures was measured on the maker’s bench, on the maker’s duty cycle. This guide repeats none of them as tested life, because they are not. What you can compare is the cell itself: a CR2477 holds more than a CR2450, which holds more than a CR2032, and AAA cells are the easiest of all to replace. In Home Assistant, put a low-battery notification on every contact sensor the day you install it; the sensor that goes quiet should announce itself before it matters.
Placement notes that save returns
Mount the sensor body on the frame and the magnet on the moving part, with the alignment marks facing each other. On steel doors and frames, expect shorter range and consider a thin spacer. For sliding doors and windows, the narrow edge of the frame is usually the only flat surface — the slimmer sensors above earn their size there. And test the automation, not just the pairing: open the door, watch the state change in Home Assistant, then close it and watch it change back, before you peel the second adhesive pad.
The picks, as cards
Prices are editorial estimates, checked against retailer listings on the date stated on the page, and change often — the links open current listings where you can verify price and availability. Some links may earn a commission at no cost to you — see the disclosure page.
Official documentation and references
- Home Assistant documentation — the Matter integration — how Matter-over-Thread devices join Home Assistant
- Home Assistant — ZHA — the built-in Zigbee stack the Zigbee picks pair with
- Zigbee2MQTT — Adapters — coordinator background for Zigbee sensor networks
- Z-Wave JS documentation — the driver behind the Ring sensor pairing
Frequently asked questions
Do contact sensors need a hub?
Not a vendor hub. Each sensor needs its radio’s network: a Thread border router for the Aqara P2, a Zigbee coordinator running ZHA or Zigbee2MQTT for the Zigbee picks, or a Z-Wave controller running Z-Wave JS for the Ring sensor. Home Assistant is the only hub involved, and none of the picks needs a vendor account.
Which is better for contact sensors: Zigbee, Thread or Z-Wave?
Whichever mesh your house already runs well. Thread is the direction Matter is taking and the P2 is the cleanest long-term buy; Zigbee has the widest choice and the lowest prices today; Z-Wave matches houses built around Z-Wave locks and switches. Battery sensors sleep through almost everything, so all three are reliable when the mesh underneath them is.
How long do the batteries really last?
Makers rate these sensors at anywhere from about two years upward, but those are bench ratings, not measurements from a lived-in house. Real life depends on traffic through the door, temperature, and how far the sensor is from the mesh. Compare the cell size instead — bigger cells last longer — and set a low-battery alert in Home Assistant for every sensor.
Can I use a contact sensor on a garage door or mailbox?
Yes — those are two of the most popular uses. A garage door usually needs the sensor mounted so the magnet separates as the door tilts or slides, and a mailbox is a range test first: pair the sensor, put it in the box, and confirm it reports before trusting it. Outdoor and metal enclosures are hard on small radios, so test at the real distance.
Is the Ring contact sensor really usable without Ring?
Yes. The second-generation Ring Alarm Contact Sensor is a standard Z-Wave 700 device; it pairs directly to Z-Wave JS in Home Assistant and reports open and closed like any other Z-Wave sensor. No Ring hub, Ring account or Ring subscription is involved in that pairing.

