Illustrative image, not evidence of a product test.
Zigbee2MQTT Setup Guide: Cloud-Free Smart Home (2026)
Zigbee2MQTT runs your Zigbee devices locally, with no cloud dependency and no subscription. Hereâs how to set it up from scratch.
This guide is a configuration walkthrough based on the Zigbee2MQTT documentation, checked on 23 Oct 2026; no measurements or test results are published here.
For Home Assistant foundations and related real-world integrations, use the Home Assistant topic guide.
Why Zigbee2MQTT?
Troubleshooting note (checked 23 Oct 2026): Home Assistant Core 2026.10.2 (released 16 Oct 2026) lists a fix for discovered MQTT device triggers and tag scanners firing twice after an integration reload. If that exact symptom follows a reload, update Core before rebuilding automations. This is a Home Assistant MQTT discovery/reload fix, not evidence that every Zigbee2MQTT device or MQTT automation was affected.
Zigbee2MQTT (Z2M) bridges your Zigbee devices to MQTT, which Home Assistant (or any MQTT-capable platform) picks up instantly. Itâs open-source and community-driven, with a large and growing supported devices list. No manufacturer app or account is required for the Zigbee devices themselves.
Reasons people choose Z2M over ZHA (Home Assistantâs built-in Zigbee integration):
- Device support: Z2M has a large community-maintained device list; check your devices on the supported devices page before choosing either.
- Frontend: The Z2M web interface shows your mesh map, lets you rename devices, manage groups, and push OTA updates.
- Device definitions: New device definitions are added by the community; check whether your specific device is supported in each project.
- Decoupled from HA: Z2M runs as its own service and talks to Home Assistant over MQTT, so the Zigbee network does not depend on the Home Assistant process.
That said, ZHA is simpler to set up if you just want plug-and-play. If you want more control and visibility into your mesh, Z2M is the stronger fit. Check out our Home Assistant beginner guide if youâre just getting started with HA.
Step 1: Choose Your Coordinator
The coordinator is the USB stick (or network adapter) that talks to your Zigbee devices. This is the single most important hardware decision youâll make. A bad coordinator means dropped messages, limited range, and pairing failures.
Zigbee2MQTTâs supported adapters page lists zStack (Texas Instruments), EmberZNet (Silicon Labs) and deCONZ (Dresden Elektronik) adapters as recommended, and notes that an adapter must be flashed with coordinator firmware before use (some come preflashed). Examples:
| Coordinator | Price | Z2M adapter family (per docs) | Firmware | Note |
|---|---|---|---|---|
| ConBee III | Check price | deCONZ | Flashed with Dresden Elektronikâs tools (see docs) | Docs: set baudrate: 115200; touchlink and lowering transmit power not supported |
| Sonoff ZBDongle-E (V2) | Check price | EmberZNet (EFR32MG21) | Manual flash with a web flasher | Docs: use NCP firmware 7.4.4 or newer |
| SLZB-06 / SLZB-06p7 (PoE/Ethernet) | Check price | zStack (the SLZB-06M and later M variants are listed under EmberZNet) | See vendor instructions | Ethernet/PoE suits placing the adapter away from the server; confirm the exact variant |
| Sonoff ZBDongle-P | Check price | zStack (CC2652P) | Listed as pre-programmed in the docs | Listed as supported in the docs |
| ConBee II | Check price | deCONZ | Legacy | Docs warn it may exhibit network connectivity issues (MacNoAck) |
Prices are omitted because the Zigbee2MQTT documentation lists none and they vary by region and seller; check the current price where you buy.
The ConBee III is a USB deCONZ adapter. Z2Mâs docs list its baud rate (115200) and note that Inter-PAN (needed for touchlink) and lowering the transmit power are not supported with deCONZ adapters.
The Sonoff ZBDongle-E (V2) is an EmberZNet adapter. The docs say it needs coordinator firmware flashed once (they note the vendor PDF links to old firmware and to pick NCP 7.4.4 or newer) and that it supports only software flow control, so do not set rtscts: true.
If you want to place your coordinator centrally in your house (away from your server), a network adapter such as the SLZB-06 connects via Ethernet. The docs recommend wired Ethernet over WiFi for network adapters, because the serial protocol does not tolerate packet loss or latency well.
Step 2: Install Zigbee2MQTT
You have two main paths: the Home Assistant app (formerly called an add-on) or a Docker container.
Option A: Home Assistant App (Easiest)
This is the simplest path if youâre on Home Assistant OS or Supervised. Per the Zigbee2MQTT Home Assistant add-on documentation, only 64-bit architectures (aarch64 and amd64) are supported, so 32-bit hardware cannot be used, and on a Raspberry Pi you should have at least a Pi 4 because a Pi 3 may be unstable. The add-on itself is published in the Zigbee2MQTT add-on repository.
- If you have no MQTT broker yet, go to Settings â Apps â App store, install the Mosquitto broker app and start it
- In the App store, click âź â Repositories and add
https://github.com/zigbee2mqtt/hassio-zigbee2mqtt - Install the Zigbee2MQTT app (the stable release; âZigbee2MQTT Edgeâ tracks the dev branch)
- On the Info tab, click Start, wait a few seconds and press Open Web UI
- In the onboarding page, select your adapter under Found Devices (this fills in the port and adapter type) and choose the closest WiFi channel
- Press Submit; Zigbee2MQTT starts, and after a few seconds the frontend appears
Option B: Docker (More Control)
If you run Home Assistant Container or want Z2M separate, this follows the official Docker Compose example. Find your adapterâs /dev/serial/by-id/ path and use it on the host side, as the docs advise:
services:
zigbee2mqtt:
container_name: zigbee2mqtt
image: ghcr.io/koenkk/zigbee2mqtt
restart: unless-stopped
volumes:
- ./data:/app/data
- /run/udev:/run/udev:ro
ports:
# Frontend port
- 8080:8080
environment:
- TZ=Europe/Brussels
devices:
# Replace with your adapter's /dev/serial/by-id/ path
- /dev/serial/by-id/<your-adapter>:/dev/ttyACM0
On first start, Zigbee2MQTT runs the same onboarding page on port 8080, where you set the adapter and the MQTT server (for an MQTT broker on the same host, the docs mention using the IP of the docker0 bridge). The Home Assistant integrations guide covers MQTT setup in more detail.
Step 3: Pair Your First Device
With Z2M running, open the web dashboard (port 8080 or via the HA sidebar). Click âPermit joinâ in the top right corner. Now put your Zigbee device in pairing mode:
Pairing steps are device-specific, so open your modelâs page in the supported devices list first. Examples from those pages:
- Aqara door/window sensor (MCCGQ11LM): hold the reset button for 5 seconds
- IKEA Tradfri bulb (LED1836G9): start with the bulb on, switch it off, then switch it on six times with very short on-periods and stay in the sixth on state; a seventh on-cycle can make the reset fail
- Sonoff ZBMINIL2: hold the device button for 5 seconds, or toggle a connected external switch 10 times in a row
- Sonoff SNZB-02D: long-press the pairing button for 5 seconds
The device should appear in the Z2M dashboard shortly after. Per the Zigbee2MQTT docs, enabling joining in the frontend opens the network for 254 seconds. If a device doesnât appear, move it closer to the coordinator and try again. Once paired, you can move it to its final location.
A consistent naming scheme such as room_type_number (kitchen_motion_1, bedroom_temp_1, hallway_door_1) keeps automations readable later.
Step 4: Understanding Your Mesh
Click the âMapâ tab in the Z2M dashboard to see your mesh topology and the connections between devices.
Per the Zigbee2MQTT network documentation, mains-powered routers (bulbs, plugs, in-wall switches, if they act as routers) relay traffic and extend the mesh. Battery devices are usually âend devicesâ: they do not route traffic, may sleep, and have one parent (the coordinator or a router) through which all their communication passes.
Tips for a healthy mesh:
- Place routers where you need coverage, for example at least one per room or hallway
- Mains-powered bulbs and plugs can serve as routers, but the docs note that some devices advertising router functionality perform poorly and can lower network stability
- Donât put your coordinator next to your WiFi router or USB 3.0 ports (interference on 2.4GHz)
- Use a USB extension cable to get the coordinator away from your server; the docs say 50 cm is already enough to reduce interference, and suggest a USB 2 port over USB 3 if it helps
For more on how Zigbee compares to other protocols, read our Zigbee vs Z-Wave vs WiFi vs Thread comparison.
Step 5: Groups and Scenes
Z2M supports Zigbee groups natively. This means you can control multiple bulbs as one entity with a single command. Per the groups documentation, each device stores which groups it belongs to, and a group command is sent as a broadcast on the network. Each device then decides for itself whether the command applies to it. The docs state that groups put much less stress on the network than controlling the same devices one by one.
Create a group in the Z2M dashboard:
- Go to the âGroupsâ tab
- Click âAdd groupâ
- Add your devices
Now you can turn on all living room lights with a single command.
Step 6: OTA Updates
Z2M handles firmware updates for supported devices. Go to the âOTAâ tab, check for updates, and apply them. Per the OTA documentation, review the release notes first, update one device at a time while the network is quiet, and expect an update to take 10-100 minutes depending on device, settings and network stability.
Example Topology: 40+ Devices
For scale, a 40+ device mesh could be composed like this:
- Coordinator: ConBee III on a USB extension cable, mounted centrally
- Routers (10): 8x IKEA Tradfri bulbs, 2x mains-powered smart plugs
- End devices (32): 20x Aqara door/window sensors, 4x Aqara temp sensors, 2x Aqara motion, 2x Sonoff SNZB-02D, 4x Sonoff ZBMINIL2 (the Zigbee2MQTT device page lists the ZBMINIL2 as an end device that cannot act as a router)
Mesh recovery is not automatic for every device. If a router goes offline, its end devices lose their path until they time out and look for a new parent, and per the docs some end-device models (notably Xiaomi) do not look for a new parent and stay isolated until re-paired.
Z2M vs ZHA: Comparison
Both work. Differences that matter when choosing Z2M:
- A standalone dashboard that doesnât depend on HA
- Visual mesh map
- Device definitions maintained in the Zigbee2MQTT project, with a supported devices list
- Groups and OTA updates managed in its own frontend
These are differences in design, not measured advantages; Zigbee2MQTTâs documentation does not compare itself with ZHA. ZHA runs inside Home Assistant with no extra service to install, which suits a simple setup. Check the device pages of both projects for the exact devices you own.
Secure the Installation
The frontend gives full control of your Zigbee network, so anyone who can reach it can control your devices. The securing guide and frontend settings cover the details. In short:
- Do not expose the frontend (port 8080) or your MQTT broker to the internet.
- Enable
frontend.auth_token, treat it like a password and keep it insecret.yaml. Authentication is off by default. - By default the frontend listens on all interfaces. If you do not need remote access, bind it to localhost with
frontend.host: 127.0.0.1, but check the docs first because this setting can break access under Docker and the Home Assistant add-on. - For encryption, the docs describe two options: enable HTTPS directly in Zigbee2MQTT with
frontend.ssl_certandfrontend.ssl_key, or terminate TLS at a reverse proxy such as Nginx or Apache in front of the frontend. The frontend page has proxy examples. - Zigbee traffic is encrypted with a 128-bit network key. The securing guide strongly suggests replacing the old default key if your network still uses it. Setting
advanced: network_key: GENERATEmakes Zigbee2MQTT replace the placeholder with a random key on startup and write it back to the configuration file; you can also set a key manually or keep it insecret.yaml. Changing the key on an existing network means re-pairing every device, so settle it before you pair anything. See the network key section and the Zigbee network settings. configuration.yamlholds MQTT credentials and the network key. The securing guide says only the user running Zigbee2MQTT should be able to read and write it, and giveschmod 600 configuration.yaml(and the same forsecret.yamlif you use one) as the example. It also recommends running Zigbee2MQTT under a dedicated unprivileged user rather thanroot.- Joining is open only temporarily (254 seconds by default) when you enable it; close it manually after pairing.
Frontend tab names can differ slightly between frontend versions.
Common Issues and Fixes
Device wonât pair: Move it within 2 meters of the coordinator. Reset the device fully (check manufacturer instructions). Make sure âPermit joinâ is enabled.
Device drops offline: Check the mesh map. If a router between the coordinator and the device went offline, the end device may not reroute immediately. Power cycle the end device.
Interference: USB 3.0 ports emit noise on 2.4GHz. Always use an extension cable. Keep the coordinator away from your WiFi router.
MQTT disconnects: Check your Mosquitto broker logs. Usually itâs a password issue or the broker running out of memory.
For those building out a smart sensor network, Z2M makes it trivial to add dozens of sensors without any cloud accounts.
FAQ
Is Zigbee2MQTT free?
Yes. Zigbee2MQTT is free, open-source software and does not require a subscription or a vendor cloud account. You need a Zigbee coordinator (see Step 1) and a computer to run it on; a Home Assistant server can host it. Optional features such as OTA firmware updates download files from online sources.
Can I run Zigbee2MQTT without Home Assistant?
Absolutely. Z2M outputs to MQTT, so any MQTT-capable system works. Node-RED, OpenHAB, or even custom scripts. Home Assistant is just the most popular pairing.
How many devices can Zigbee2MQTT handle?
The practical limit depends on the coordinator, its firmware and your mesh of mains-powered routers. Check the Zigbee2MQTT documentation and your adapterâs listing for the limits that apply to your hardware, and place router devices (mains-powered bulbs and plugs) to strengthen the mesh.
Does Zigbee2MQTT work with Zigbee 3.0 and older devices?
Yes. Z2M supports Zigbee 3.0, Zigbee Home Automation 1.2, and even some Zigbee Light Link devices. Older IKEA bulbs, newer Aqara sensors, they all work together on the same mesh.
Should I choose ConBee III or Sonoff ZBDongle-E?
The ConBee III is a ready-made adapter; the Sonoff ZBDongle-E is usually cheaper but may need firmware flashing before first use, so follow the Zigbee2MQTT adapter documentation for your exact model. Check current prices and the supported-adapters list before buying; no comparative reliability results are published here.
Final Thoughts
Zigbee2MQTT lets compatible Zigbee devices run locally under your control rather than through separate cloud apps. Setup time depends on your hardware and Home Assistant setup. Once running, paired devices are controlled locally without a manufacturer cloud account, though you take on updates, backups and troubleshooting yourself.
If youâre picking your first Zigbee hub, a coordinator plus Z2M is the most flexible option available. Youâre not locked into any ecosystem, and you own every bit of data your devices generate.