To use Zigbee sensors, plugs and bulbs in Home Assistant you need two things: a coordinator, the radio that creates the Zigbee network, and software that talks to it. In Home Assistant there are two main choices: ZHA (Zigbee Home Automation), built in, and Zigbee2MQTT, a separate project that talks to Home Assistant over MQTT. Both work well; the choice depends on how many devices you have, which brands, and how much control you want.
The differences that matter
| ZHA | Zigbee2MQTT | |
|---|---|---|
| Installation | Built in: add it from Settings > Devices & services | A separate add-on or container, plus an MQTT broker (Mosquitto) |
| Supported devices | Many, with “quirks” for non-standard ones | A very large public list, with a page for every model |
| Interface | Inside Home Assistant | Its own web interface with a network map, OTA firmware updates and advanced per-device settings |
| Works without Home Assistant | No | Yes: it publishes everything over MQTT, usable by other systems too |
| Maintenance | Updated with Home Assistant | Two extra components to update (Zigbee2MQTT and the broker) |
| For whom | Beginners with well-known brands | People with many devices, budget brands or a need for fine control |
Before buying a device, look it up in Zigbee2MQTT’s supported devices list or in ZHA discussions: some cheap plugs and sensors use non-standard extensions that one handles better than the other.
The coordinator: USB or network
| Type | Example chips | Advantages | Watch out |
|---|---|---|---|
| USB stick | Silicon Labs EFR32MG21/MG24, Texas Instruments CC2652 | Cheap, simple | Must be moved away from the computer with an extension cable |
| Network coordinator (Ethernet/PoE) | The same chips, with a network connection | Can sit in the middle of the house, away from the server | Needs a fixed IP address; depends on the network |
| Official Home Assistant adapter | Silicon Labs chip | Direct support in Home Assistant, Thread too | One protocol at a time, depending on firmware |
Choose a coordinator with a recent chip and up-to-date firmware: old CC2531 chips are no longer suitable for networks with more than a few devices. In Zigbee2MQTT set the correct adapter type in the configuration (for example ember for Silicon Labs chips and zstack for Texas Instruments ones).
The Zigbee channel
Zigbee uses the same 2.4 GHz band as Wi-Fi. The Zigbee channels that overlap least with Wi-Fi channels 1, 6 and 11 are usually 15, 20 and 25. Choose the channel before pairing devices: changing it later may mean re-pairing them. We explain the interference problem through the example of dropping sensors in Zigbee and the Wi-Fi channel.
Building a stable mesh
- Routers first: mains-powered devices (smart plugs, switches, many bulbs) act as repeaters. Install them first, spread around the house.
- Then battery sensors: they connect to the nearest router. Pair them where they will stay, not next to the coordinator.
- A USB extension of at least 50 cm for the stick, away from USB 3 ports, drives and power supplies.
- Careful with bulbs: if you switch them off at the wall, they disappear from the network as repeaters and nearby sensors lose their link.
- Back up the coordinator: Zigbee2MQTT saves a network backup in its folder; ZHA creates one from the integration options. Keep it with your Home Assistant backups.
A starting Zigbee2MQTT configuration
mqtt:
server: mqtt://192.168.1.10:1883
user: zigbee2mqtt
password: '!secret mqtt_password'
serial:
port: /dev/serial/by-id/usb-...-if00-port0
adapter: ember
advanced:
channel: 20
network_key: GENERATE
pan_id: GENERATE
frontend:
enabled: true
homeassistant:
enabled: true
permit_join: false
Use the /dev/serial/by-id/... path instead of /dev/ttyUSB0: it doesn’t change when you plug in other sticks. Keep permit_join off and enable pairing from the interface only when adding a device. The syntax can change between versions: check the official documentation for the version you install.
Switching from ZHA to Zigbee2MQTT (or back)
- A coordinator can be used by only one program at a time: disable the first before starting the other.
- In most cases devices must be re-paired one by one. With some coordinators and recent versions the network backup can be restored, but don’t count on it without testing.
- Entity names in Home Assistant change: list the automations that use Zigbee devices and update them after the switch.
- Migrate on a day when you have time, starting with routers and ending with sensors.
Which to choose, in short
- Fewer than 20–30 devices from well-known brands: ZHA, fewer components to manage.
- Many devices, budget brands, a need for OTA updates and diagnostics: Zigbee2MQTT.
- You want home automation separate from Home Assistant, or to use the data in other programs: Zigbee2MQTT.
For the hardware to run it all, see Home Assistant on a mini PC or Raspberry Pi 5.
Sources
- Home Assistant, ZHA integration.
- Zigbee2MQTT, getting started, supported adapters and network stability.
