Skip to content
Open seenzus

ZHA Configuration Guide

ZHA (Zigbee Home Automation) is the official Zigbee integration from Home Assistant. Paired with a Zigbee coordinator (USB gateway), it lets you build a Zigbee network directly in Home Assistant and connect all kinds of Zigbee devices. This guide walks through the full process of configuring ZHA and adding Zigbee devices on Donggua HAOS.

NameOSCore
Version17.02026.2.1

Before you start, make sure:

  • Your Home Assistant is up and running and the admin UI is accessible.
  • You have a Zigbee coordinator (USB gateway) ready, and can plug it into a USB port on the HA box.

Note: ZHA and Zigbee2mqtt (Z2M for short) cannot be used at the same time — unless you have 2 coordinators!!!

Choosing between them:

  • Z2M (recommended): a large global community of developers and Zigbee manufacturers keeps its device library updated, so it supports more devices than ZHA. When onboarding devices with Z2M, look up the device model and details (photos, features, vendor, etc.) on the Z2M official site.
  • ZHA: the official Home Assistant integration, maintained by only a small number of developers, with library files updated along with Core; its supported device library is smaller.

The same device may expose different features in ZHA vs. Z2M — choose based on your needs.


Step 1: Find the coordinator’s serial port

Section titled “Step 1: Find the coordinator’s serial port”

Plug the coordinator into the box, then go to Settings > System > Hardware > All Hardware > search for tty. A device named ttyUSBx will appear (assuming no other USB devices are plugged in) — that device is the coordinator.

Step 1 illustration


Go to Settings > Devices & Services > Integrations > Add Integration > search for zha.

Step 2 illustration


Select the ttyUSBx you just found, then click Submit.

Step 3 illustration


For the setup method, choose Automatic setup.

Step 4 illustration


The integration starts forming a new network (this takes about 3-5 minutes — do not close the page). Just wait patiently.

Step 5 illustration


Once the network is formed, click Skip and finish.

Step 6 illustration


Open Zigbee Home Automation and click Add device.

Step 7 illustration


Once pairing mode is active, put your Zigbee device into pairing mode.

Step 8 illustration


Step 9: Wait for initialization to complete

Section titled “Step 9: Wait for initialization to complete”

When the page shows Initialization complete, the device has been added successfully.

Step 9 illustration


ProblemSolution
Can ZHA and Z2M be used at the same time?No, they cannot be used at the same time — unless you have 2 coordinators.
How to choose between ZHA and Z2M?Z2M is recommended — it supports more devices and gets more timely updates; ZHA is the official integration and simple to configure, but its supported device library is smaller.
Can’t find the coordinator in the hardware listConfirm the coordinator is plugged in properly; with no other USB devices plugged in, the ttyUSBx entry in the list is the coordinator.
Network formation keeps spinningForming a new network takes about 3-5 minutes — do not close the page; just wait patiently.

The core flow for configuring ZHA is: find the coordinator’s serial port → add the ZHA integration → select the port and choose automatic setup → wait for the network to form → finish → add and pair Zigbee devices. Remember that ZHA and Z2M cannot run on the same coordinator at the same time.