Quick Answer
The Aqara Door and Window Sensor is the best Zigbee contact sensor overall — tiny, proven, and rated by Aqara for 2+ years on a coin cell. For the lowest price per sensor with tamper protection, the Sonoff SNZB-04P (~$10) delivers reliable detection and a long-life CR2477 battery.
Table of Contents
Why Are Zigbee Contact Sensors Better Than Wi-Fi or Z-Wave Alternatives?
Zigbee contact sensors hit a sweet spot that neither Wi-Fi nor Z-Wave alternatives can match at this price bracket. Here's why they dominate the contact sensor market:
- Price: Zigbee contact sensors range from $8–20 each. Z-Wave equivalents typically cost $25–45. You can sensor every door and window in a 3-bedroom house for under $120 with Zigbee.
- Battery life: Zigbee contact sensors can last 2–5 years on a CR2032 coin cell. Wi-Fi sensors typically need replacement every 3–6 months, making them impractical for large-scale deployment across 10–20 openings.
- Latency: Zigbee contact sensors report open/close events in under 100ms in most implementations — fast enough for real-time automations (lights on when door opens, alarm triggers on breach).
- Local control: Via Zigbee2MQTT or ZHA in Home Assistant, all events are processed locally with zero cloud dependency and no subscription.
The use cases are broad: security alerts, door/window open reminders, HVAC optimization (don't heat a room with an open window), and presence detection via entry patterns. A contact sensor is the simplest, cheapest, and most reliable way to add meaningful automation to any door or window.
Aqara Door and Window Sensor — Best Overall Zigbee Contact Sensor
Aqara Door and Window Sensor (MCCGQ11LM)
Zigbee | CR1632 battery (Aqara claims 2+ years) | Detects up to 22mm magnet gap | 41×22×11mm | Works with Zigbee2MQTT + ZHA, or an Aqara hub
View on AmazonThe plain Aqara Door and Window Sensor has been the default Zigbee contact sensor for Home Assistant users for years, and it is still the one to beat. It is tiny (41×22×11mm, per Aqara's spec sheet), it reports open/close reliably, and Aqara rates one CR1632 coin cell for more than two years in normal use. Reviewers and Home Assistant roundups routinely call it the benchmark for small contact sensors.
Aqara lists a maximum detection distance of 22mm between sensor and magnet, which gives you some leeway on doors that don't close perfectly flush. Paired directly to Zigbee2MQTT or ZHA it exposes contact state and battery level; with an Aqara hub (E1 or M3) it also shows up in Aqara's app and Apple Home.
Two caveats. It has no tamper switch, and like most Aqara Zigbee devices it can be picky about which Zigbee routers it stays connected through, so give it a stable mesh. If you have moved to Thread instead of Zigbee, Aqara's Door and Window Sensor P2 is the Matter-over-Thread version (CR123A battery, no Zigbee radio); we previously listed the P2 here, but it is not a Zigbee device.
The verdict: The Aqara Door and Window Sensor is the best Zigbee contact sensor for most homes because it is small, proven and long-lasting, with first-class support in Zigbee2MQTT and ZHA.
Sonoff SNZB-04P (~$10) — Best Budget Zigbee Contact Sensor
Sonoff SNZB-04P
Zigbee 3.0 | Tamper protection | CR2477 battery (rated ~5 years) | Low battery alert | 47×27×14mm | Works with Zigbee2MQTT + ZHA
View on AmazonAt $10, the Sonoff SNZB-04P is the best value Zigbee contact sensor on the market. It lacks the Aqara's slim profile, but delivers the core requirement — reliable, fast open/close detection — at half the price, making it ideal for large-scale deployments where you need 10–20 sensors across every door and window in a home.
The "P" suffix over the original SNZB-04 adds tamper protection: opening the sensor's housing triggers a tamper alert in Home Assistant, notifying you if someone tries to disable the sensor. This is a genuinely useful security feature that many $15–20 sensors omit. It also moves to a larger CR2477 coin cell rated for around five years, and a low battery alert gives you advance warning before it dies.
Detection gap tolerance is ±5mm — slightly looser than Aqara's ±3mm but acceptable for most standard interior doors. The sensor dimensions (47×27×14mm) are slightly larger than Aqara models but still unobtrusive on standard door and window frames. Zigbee2MQTT and ZHA support is excellent, with all entities (contact state, battery, tamper) appearing automatically on pairing.
The verdict: The Sonoff SNZB-04P is the best budget Zigbee contact sensor — tamper protection and reliable Zigbee 3.0 detection for $10 makes it the go-to for large multi-sensor deployments.
IKEA MYGGBETT (~$7.99) — Best Contact Sensor for Beginners
IKEA MYGGBETT Door/Window Sensor
Matter over Thread (not Zigbee) | AAA battery | Works with IKEA DIRIGERA or any Thread border router | Available in-store | ~$7.99 in the US
View on AmazonIKEA has moved its sensors to Matter over Thread, and MYGGBETT is the door/window sensor in that 2026 range, taking over from the Zigbee PARASOLL. At about $7.99 it is the cheapest contact sensor in this roundup, and you can still buy it in person at an IKEA store rather than waiting for shipping.
The catch for this page: MYGGBETT is not a Zigbee device. It needs a Thread border router, such as IKEA's DIRIGERA hub, a HomePod mini, an Echo Dot Max, or Home Assistant with a Connect ZBT-2 in Thread mode. Owner reviews on IKEA's site report easy pairing with Home Assistant, though some buyers and MatterAlpha's review mention dropouts on weaker Thread meshes and a very strong adhesive that makes repositioning hard. It runs on a AAA battery rather than a coin cell.
If you want to stay all-Zigbee, the older PARASOLL still works with ZHA, Zigbee2MQTT and DIRIGERA while stock lasts, but it lacks tamper detection and some Home Assistant users report battery drain, so we no longer make it our pick.
The verdict: MYGGBETT is the cheapest way to try contact sensing if you already have (or plan) a Thread network; Zigbee-only homes should choose the Sonoff or Aqara instead.
Third Reality Zigbee Contact Sensor (~$12) — Best for Wide Gaps
Third Reality Zigbee Contact Sensor
Zigbee 3.0 | CR2032 battery | Wide gap tolerance | US-based support | Works with SmartThings + ZHA + Zigbee2MQTT
View on AmazonThe Third Reality Zigbee contact sensor fills a specific niche: doors and windows with larger-than-standard gaps between the frame and the sensor magnet. Older homes, sliding doors, wooden doors that swell seasonally, and many windows have gaps that can exceed the 3–5mm tolerance of smaller sensors, causing constant false "open" events. Third Reality's sensor handles wider installation gaps gracefully through a stronger magnet design.
At $12, it's priced just above the Sonoff ($10). Feature set is comparable to Sonoff — tamper detection, battery monitoring, Zigbee 3.0. US-based customer support and Amazon Prime availability are practical advantages for domestic buyers. Zigbee2MQTT and ZHA support works out of the box with all standard entities exposed.
Third Reality also offers a version with a long magnetic probe arm for sliding windows and doors where the sensor and magnet can't be mounted on the same flat plane — a configuration problem that stumps many standard two-piece sensors.
The verdict: Third Reality is the best choice for older homes or sliding doors where standard sensors false-trigger — the wider gap tolerance solves a specific but common installation problem.
How Do These Zigbee Contact Sensors Compare?
| Sensor | Price | Tamper Alert | Buzzer | Gap Tolerance | Battery Life |
|---|---|---|---|---|---|
| Aqara Door and Window Sensor | Multi-packs | No | No | Up to 22mm | 2+ years (Aqara claim) |
| Sonoff SNZB-04P | ~$10 | Yes | No | ±5mm | ~5 years (rated) |
| IKEA MYGGBETT (Thread) | ~$7.99 | No | No | Standard | AAA battery |
| Third Reality | ~$12 | Yes | No | Wide gap | ~2 years |
What Automations Can You Build with Zigbee Contact Sensors in Home Assistant?
Contact sensors are the most versatile trigger in HA automation. Here are the most useful implementations:
- Entry alert: Any exterior door opens → send mobile notification with timestamp. Add a condition for "when away" using the Person entity and zones.
- Lights on entry: Mudroom door opens after sunset → turn on mudroom lights at 50% brightness for 5 minutes.
- HVAC pause: Any window opens → pause heating/cooling. Window closes → resume after 5-minute delay. Saves significant energy in shoulder seasons.
- Garage door left open: Garage door sensor remains open for more than 15 minutes → critical mobile notification + optional siren trigger.
- Bedtime security check: Every night at 23:00, check all door/window sensors. If any are open, send a notification listing which ones.
- Cabinet monitoring: Medicine cabinet, gun safe, liquor cabinet — sensor opens during school hours → parental notification.
- Alarm system: In armed mode, any door/window opening triggers an immediate alarm siren. Add a cheap Zigbee siren for a local audio alert.
Our Verdict
Best Overall: Aqara Door and Window Sensor — tiny, proven, 2+ year battery (Aqara claim), up to 22mm detection gap.
Best Budget: Sonoff SNZB-04P (~$10) — tamper protection and solid Zigbee 3.0 at the lowest sensible price.
Best for Beginners: IKEA MYGGBETT (~$7.99) — buy in-store, cheapest entry point; Matter over Thread, so it needs a Thread border router.
Best for Tricky Installs: Third Reality (~$12) — wide gap tolerance for older homes and sliding doors.
Frequently Asked Questions
How do Zigbee contact sensors work?
A contact sensor consists of two pieces: a main unit containing the Zigbee radio and a reed switch, and a small magnet. When the magnet is close (door closed), the reed switch is held shut — the sensor reports "closed." When the door opens and the magnet moves away, the reed switch opens and the sensor instantly reports "open." No power is consumed when closed; only state changes generate Zigbee transmissions, which is why battery life is so long.
Can Zigbee contact sensors work on metal doors?
Yes, but with caveats. Metal doors and frames can interfere with Zigbee radio signals, causing range reduction. The sensor itself works fine — the reed switch and magnet are mechanical and unaffected by metal. Mount the sensor on the non-metal portion of the frame where possible, and ensure your Zigbee mesh has a router device nearby to compensate for any signal attenuation.
What is the maximum gap between a contact sensor and its magnet?
Typically 10–25mm (0.4–1 inch) depending on the sensor. Aqara rates its Zigbee Door and Window Sensor for a maximum detection distance of 22mm. Third Reality sensors handle slightly wider gaps for non-standard door frames.
Do I need a separate Zigbee hub for these sensors?
Yes — a Zigbee coordinator (USB stick like the SONOFF Zigbee 3.0 Dongle Plus) is required, running either Zigbee2MQTT or the ZHA integration in Home Assistant. The cost is a one-time ~$20 purchase that supports up to 50+ devices simultaneously. There are no monthly fees.
How long do the batteries last in Zigbee contact sensors?
Typically 1.5–3 years on a coin cell (CR1632 in the Aqara, CR2477 in the Sonoff SNZB-04P, which Sonoff rates for longer), depending on how frequently the door opens. A front door opened 20 times per day will exhaust the battery faster than a rarely used basement door. Most sensors report low battery at 10–20% and still function for several additional weeks.
Can I use Zigbee contact sensors outdoors?
Most residential Zigbee contact sensors are rated for indoor use only (no IP water resistance rating). Outdoor gates, sheds, and mailboxes need IP65-rated sensors or a weather-protected enclosure. The Sonoff SNZB-04P is not rated for outdoor exposure; the Aqara sensor is also designed for indoor use.
SmartWired participates in the Amazon Associates Programme. We may earn a commission from qualifying purchases at no extra cost to you.