Shopping Nexus

Door & window sensors · 6 products compared

Best Door & Window Contact Sensors for Local Control and Automation

Quick answer

This guide is for people who want door and window sensors they can actually build on — whether that means simple phone alerts or feeding open/closed state into Home Assistant, a local AI setup, or custom automation code. Picks are based on published specifications, current US retail listings, and documented integration support (Matter, Thread, Zigbee, Z-Wave, and vendor APIs), with special attention to which sensors work locally and which are locked to a vendor cloud. Prices were checked on September 26, 2026 and can change with sales.

Updated 2026-09-26 · Human-reviewed by Brian, 2026-10-10

1. Aqara Door and Window Sensor P2 by Aqara

$29.99 (price checked 2026-09-26)

A Matter-over-Thread contact sensor that joins your smart home directly through a Thread border router, with no Aqara hub or Aqara cloud account required. It uses a CR123A battery (included) and a Hall-effect sensor to report open/closed state to Apple Home, Alexa, Google Home, SmartThings, or Home Assistant.

Works with your own system? Fully local via Matter over Thread — state changes never need to touch Aqara's cloud. Home Assistant's Matter integration exposes the open/closed binary sensor locally, and from there any local AI or custom code can read it through Home Assistant's REST or WebSocket API. There is no direct vendor API on the sensor itself; you read state through whatever Matter controller you pair it with. No SDK lock-in and no subscription.

  • Native Matter over Thread: works locally within the Matter fabric, no vendor cloud
  • Ecosystem-agnostic: Apple Home, Alexa, Google Home, SmartThings, Home Assistant
  • No proprietary hub needed if you already own a Thread border router
  • CR123A battery is user-replaceable
  • Requires a Thread border router plus Matter controller (Apple TV 4K, HomePod mini, Echo 4th gen, Nest Hub, or a Home Assistant Thread radio)
  • Most expensive single sensor in this guide at list price
  • Battery life varies with the border router and connected Matter apps, per Aqara's own spec page
  • Larger housing than coin-cell Zigbee sensors

Buy this if you want one sensor that works locally in any major ecosystem today and will still work if the vendor disappears.

2. SwitchBot Contact Sensor by SwitchBot

$16.99 (price checked 2026-09-26)

A Bluetooth Low Energy contact sensor with a built-in motion detector and light sensor, sold at $16.99 on SwitchBot's official store (list $19.99; about the same at Walmart and Amazon). On its own it talks BLE to your phone; adding a SwitchBot Hub enables remote access, Alexa/Google, and cloud API access.

Works with your own system? Two honest paths. Local: Home Assistant's SwitchBot Bluetooth integration reads open/closed state directly over BLE with no hub and no cloud; a Hub 2 or Hub Mini Matter-enabled can also bridge it into Matter as a secondary device for local use in Apple Home or Home Assistant. Cloud: the official SwitchBot API v1.1 (api.switch-bot.com) exposes state and webhooks but requires a hub and an internet connection. Good choice for custom local code if you can talk BLE; the vendor API itself is cloud-only.

  • Works locally over Bluetooth with Home Assistant's SwitchBot integration — no hub needed for state readout
  • Built-in motion and ambient light sensors in addition to the contact reed
  • Official, documented cloud API (SwitchBot API v1.1) when paired with a hub
  • Matter bridging: exposed as a secondary device through SwitchBot Hub 2 or Hub Mini Matter-enabled
  • Bluetooth range is short; whole-house coverage needs a hub or BLE proxies
  • Remote access, voice assistants, and the official API all require a separate SwitchBot Hub purchase
  • SwitchBot's own API is cloud-hosted, not LAN-local
  • Bulkier than most competitors because of the extra sensors

Buy this if you run Home Assistant with Bluetooth (or already own SwitchBot gear) and want cheap sensors you can read locally without any hub.

3. YoLink Door & Window Sensor (LoRa) by YoLink (YoSmart)

$16.99 (reg. $19.99), hub required (price checked 2026-09-26)

A LoRa-based contact sensor with up to 1/4-mile open-air range and up to 5-year battery life, sold direct for $16.99 on sale ($19.99 regular). It requires a YoLink hub; a 4-sensor starter kit with hub runs $74.95 on sale. LoRa's range makes it the practical pick for detached garages, gates, barns, and outbuildings where Zigbee and Thread cannot reach.

Works with your own system? Middle of the pack, improving. The standard setup is cloud: an official, documented API (api.yosmart.com with UAC credentials) and an official Home Assistant integration that relies on YoLink's cloud MQTT. The newer YoLink Local Hub changes the picture — it exposes a documented local API over HTTP and MQTT on your LAN plus Matter bridging, and community Home Assistant integrations use it fully offline. If local control matters, buy the Local Hub specifically, not the basic hub or SpeakerHub.

  • Up to 1/4-mile open-air range — far beyond Zigbee, Thread, or Z-Wave
  • Up to 5-year battery life
  • Official documented cloud API plus an official Home Assistant integration
  • YoLink Local Hub (YS1606) adds a LAN-local API (HTTP and MQTT) and Matter bridging
  • Useless without a YoLink hub, which adds cost
  • The standard hub and the official Home Assistant integration are cloud-dependent
  • Local operation requires buying the newer Local Hub and using community integrations
  • Proprietary LoRa protocol; sensors only talk to YoLink hubs

Buy this if you need to monitor doors, gates, or mailboxes beyond normal wireless range and can accept a hub in the middle.

4. Ring Alarm Contact Sensor (2nd Gen) by Ring (Amazon)

$14.99 (reg. $19.99) (price checked 2026-09-26)

The standard entry sensor for the Ring Alarm system, currently $14.99 at ring.com (regular $19.99), with frequent multi-pack discounts. It communicates over Z-Wave (up to 250 ft open-air to the base station) and runs up to 3 years on two included CR2032 batteries. Ring markets it strictly as an accessory for Ring Alarm or Ring Alarm Pro.

Works with your own system? Officially cloud-locked: no public Ring API, and the Ring Alarm base station reports to Ring's cloud (Home Assistant's Ring options are unofficial cloud bridges such as ring-mqtt). The loophole: the sensor is a standard certified Z-Wave 700-series device, and Home Assistant users report pairing it directly with a Z-Wave USB stick via Z-Wave JS, which yields fully local open/closed state with no Ring account at all. Choose your path before install — it pairs to Ring or to your own Z-Wave controller, not both.

  • Inexpensive, slim, and widely discounted in 2- and 6-packs
  • Z-Wave radio with long in-home range via the Ring base station
  • Up to 3-year battery life on two CR2032s
  • Because it is a certified Z-Wave device, it can be paired directly to a Z-Wave stick with Z-Wave JS in Home Assistant, bypassing Ring entirely
  • As designed, it requires a Ring Alarm base station and the Ring app/cloud
  • No official public API from Ring; third-party access relies on unofficial projects like ring-mqtt
  • Full alarm features (professional monitoring, cellular backup) require a Ring subscription
  • Direct Z-Wave pairing to other hubs is community-documented, not supported by Ring

Buy this if you already run Ring Alarm, or if you are a Home Assistant user with a Z-Wave stick hunting for cheap certified Z-Wave contact sensors.

5. Wyze Sense Entry Sensor v2 by Wyze

$17.99 (1-pack; $49.98 3-pack), Sense Hub required (price checked 2026-09-26)

Wyze's entry sensor sells for $17.99 single or $49.98 for three on wyze.com, with up to 18-month battery life and adhesive or screw mounting. It pairs only with the Wyze Sense Hub v2 (sold separately or in Wyze Home Monitoring kits), which connects to Wyze's cloud over Wi-Fi or Ethernet.

Works with your own system? The weakest pick in this guide for integrators, and we say so plainly: there is no official API, no local protocol, and no official Home Assistant integration. Sensor state travels from the proprietary sub-GHz link to the Sense Hub and then to Wyze's cloud; if the internet or Wyze's servers are down, your own systems cannot read it. Community reverse-engineering projects exist but are unsupported. Buy for the app experience, not for automation.

  • Cheap to scale in multi-packs within the Wyze ecosystem
  • Simple app alerts and integration with Wyze cameras and Wyze Home Monitoring
  • Adhesive or screw mounting options
  • Up to 18-month battery life
  • Requires the Wyze Sense Hub; sensors do nothing standalone
  • Cloud-dependent: no local control path and no official Home Assistant support
  • No official public API; community workarounds are fragile and break with firmware updates
  • No Matter, Thread, or Zigbee compatibility

Buy this only if you are already invested in Wyze cameras and monitoring and just want app alerts — skip it if API or local access matters to you.

6. Sonoff SNZB-04P Zigbee Door/Window Sensor by Sonoff (ITEAD)

$10.90 (price checked 2026-09-26)

A Zigbee 3.0 contact sensor at $10.90 direct from ITEAD (Amazon 2-packs run slightly more per unit), with a CR2477 battery rated for over 5 years and a tamper alert. It needs a Zigbee coordinator, which can be a Sonoff hub or any standard Zigbee dongle running Zigbee2MQTT or ZHA.

Works with your own system? Excellent, with one caveat. Paired to your own Zigbee coordinator (a $20-30 USB dongle) under Zigbee2MQTT or ZHA, everything is local: open/closed state lands on your own MQTT broker or in Home Assistant with no vendor account, which is ideal for local AI and custom code — subscribe to the MQTT topic and you have the state. The caveat: if you instead pair it to a Sonoff bridge with the eWeLink app, you are back on a vendor cloud (eWeLink's API is subscription-gated). Buy the sensor, skip the vendor hub.

  • Cheapest sensor in this guide, especially in multi-packs
  • Zigbee 3.0: fully local with Zigbee2MQTT or Home Assistant ZHA, no vendor cloud
  • Over 5-year rated battery life on a common CR2477 cell
  • Tamper detection built in
  • Requires a Zigbee coordinator (hub or USB dongle) if you don't already have one
  • No Matter or Thread support; Zigbee only
  • Using Sonoff's own eWeLink app path routes through Sonoff's cloud unless you use an iHost or your own coordinator
  • Direct-from-ITEAD shipping can be slow; US retail stock varies

Buy this if you run (or are willing to run) a Zigbee coordinator with Home Assistant and want the most sensor coverage per dollar, fully local.

Questions

Do all of these sensors need a hub?

Most need something. YoLink, Ring, and Wyze require their own hubs (YoLink hub, Ring Alarm base station, Wyze Sense Hub). The Sonoff SNZB-04P needs any Zigbee coordinator, which can be a $20-30 USB dongle on a Home Assistant box rather than a vendor hub. The Aqara P2 needs a Thread border router and Matter controller, but many homes already have one (Apple TV 4K, HomePod mini, Echo 4th gen, Nest Hub). The SwitchBot sensor is the only one that works with no hub at all — over Bluetooth to your phone or a Home Assistant Bluetooth adapter — though remote access and the official API need a SwitchBot Hub.

What is the real-world wireless range?

YoLink's LoRa is in a different class: up to a quarter mile open air, and reliably reaches detached garages, gates, and outbuildings. Ring's Z-Wave is rated 250 ft open air to the base station. Zigbee (Sonoff) and Thread (Aqara) are shorter per hop — roughly 30-60 ft indoors — but both are mesh protocols, so powered devices like plugs extend coverage. Bluetooth (SwitchBot) is the shortest, typically one or two rooms from the phone, hub, or Bluetooth proxy. Wyze uses a proprietary sub-GHz link to its hub with unpublished range figures; plan on same-house coverage.

How long do the batteries last, and what kind do they take?

Rated figures from the manufacturers: Sonoff SNZB-04P over 5 years (CR2477), YoLink up to 5 years, Ring up to 3 years (two CR2032s, included), Wyze up to 18 months, and Aqara P2 varies with your Thread border router and connected Matter apps (CR123A, included). SwitchBot runs on two AAA cells. All are user-replaceable coin or AAA/CR123A cells; real-world life depends on how often the door opens and on radio conditions.

Can my own system (Home Assistant, a local AI, or custom code) read the open/closed state?

Yes for most of this list, with different amounts of friction. Easiest fully local paths: Sonoff via Zigbee2MQTT or ZHA (state appears on your own MQTT broker or in Home Assistant), and Aqara P2 via the Matter integration — then any local code reads it through Home Assistant's REST or WebSocket API. SwitchBot is readable locally over Bluetooth, or via its official cloud API with a hub. YoLink has an official documented cloud API, and its newer Local Hub adds a LAN HTTP/MQTT API. Ring has no official API — but the 2nd-gen sensor is a certified Z-Wave device and can be paired directly to your own Z-Wave stick instead of Ring's base station. Wyze is the exception: no API, no local path.

Which sensors keep working when the internet is down?

Aqara P2 (Matter over Thread) and Sonoff on your own Zigbee coordinator keep reporting state and running local automations with no internet. SwitchBot over Bluetooth to Home Assistant also stays up. Ring sensors paired directly to a Z-Wave stick are fully local; paired to a Ring base station, local sounding continues but app alerts and integrations need the cloud. YoLink on the standard hub and Wyze both depend on their vendor clouds — an outage means your other systems go blind, even if the sensor's own siren or app cache behaves gracefully.

Matter/Thread, Zigbee, LoRa, or Z-Wave — which should I pick?

Pick by what you already own and how far the sensor sits from your hub. Matter over Thread (Aqara P2) is the safest long-term bet if you have a border router and want ecosystem freedom. Zigbee (Sonoff) is the cheapest path to lots of fully local sensors if you run Home Assistant. LoRa (YoLink) is the only sane choice past roughly 100 ft or through outbuilding walls. Z-Wave (Ring) makes sense inside a Ring Alarm system or as budget certified sensors for an existing Z-Wave network. Avoid proprietary cloud-only systems (Wyze) if you ever want another system to read your doors.

Sources & research notes

Prices move; each product shows the date its price was last checked.