This guide is based on the GitHub project: https://github.com/zigbee2mqtt/hassio-2Mzigbee2mqtt#installation
Preparation #
Before getting started, ensure that Zigbee2MQTT or the Zigbee2MQTT Add-on is installed. For detailed installation steps, please refer to the Zigbee2MQTT Installation Guide and the Mosquitto Installation Guide.
The following tutorial takes the Zigbee2MQTT Add-on as an example.
USB Connection #
Communicate with the Host via USB Serial Port. Suitable for use when Dongle Max is connected to the host via USB Connection.
Option 1: Auto-Discovery #
After connecting to the host via a USB extension cable, simply start Zigbee2MQTT to automatically identify the product model and complete the configuration.
Option 2: Manual Setup #
If Dongle Max is not discovered automatically, follow these steps:
1、Open the Zigbee2MQTT add-on → Configuration page.
You need to configure the device's adapter type and serial port path under serial.

2、Example Configuration for Dongle-M:
port: <Device path, e.g. /dev/ttyUSBx> or <ID, e.g. /dev/serial/by-id...>
baudRate: 115200
adapter: emberYAMLTCP Connection #
Communicate with the Host via Ethernet/Wi-Fi. Suitable for use when Dongle Max is connected to the host via Ethernet or Wi-Fi Connection.
⚠Note: Although the UART over TCP solution has been widely adopted, Z2M still includes a WARNING. Please read Z2M's WARNING carefully before deciding whether to use a TCP connection. If high network stability is required, it is recommended to use a wired Ethernet connection.
Connect to a remote adapter | Zigbee2MQTT
Manual Setup #
follow these steps:
1、Open the Zigbee2MQTT add-on → Configuration page.
You need to configure the device's adapter type and serial port path under serial.

2、Example Configuration for Dongle-M:
port: tcp://Dongle-M.local:6638
baudrate: 115200
adapter: ember
rtscts: falseYAML