Connecting to Zigbee2MQTT

Preparation #


Before getting started, ensure that Zigbee2MQTT is installed and that the Dongle is connected to the host's USB port.

Step 1: Start Zigbee2MQTT #


It is recommended that Zigbee2MQTT be updated to version 2.2.0, which supports automatic discovery and configuration of Dongle-PMG24.
Run the following commands to start Zigbee2MQTT:

cd /opt/zigbee2mqtt
sudo pnpm start
Zsh


If starts successfully, you will see output similar to the following, indicating that Zigbee2MQTT has been launched correctly:

[2025-04-02 09:44:12] info:     z2m: Logging to console, file (filename: log.log)
[2025-04-02 09:44:12] info:     z2m: Starting Zigbee2MQTT version 2.2.0 (commit #c5c07e7d)
[2025-04-02 09:44:12] info:     z2m: Starting zigbee-herdsman (3.4.11)
[2025-04-02 09:44:12] info:     zh:adapter:discovery: Matched adapter: {"path":"/dev/ttyUSB0","manufacturer":"Itead","serialNumber":"86a07112f01185440514773d9da9","pnpId":"usb-SONOFF_SONOFF_Dongle_Plus_CC2674P10_bab786a07112f01185440514773d9da9-if00-port0","vendorId":"10c4","productId":"ea60"} => ember: path=/dev/ttyUSB0, score=4
...
[2025-04-02 09:44:15] info:     z2m: zigbee-herdsman started (restored)
[2025-04-02 09:44:15] info:     z2m: Coordinator firmware version: '{"meta":{"build":0,"ezsp":13,"major":7,"minor":4,"patch":4,"revision":"7.4.4 [GA]","special":0,"type":170},"type":"EmberZNet"}'
[2025-04-02 09:44:15] info:     z2m: 0x00124b00258a5e02 (0x00124b00258a5e02): S26R2ZB - SONOFF Zigbee smart plug (Router)
[2025-04-02 09:44:15] info:     z2m: Currently 1 devices are joined.
[2025-04-02 09:44:15] info:     z2m: Connecting to MQTT server at mqtt://localhost
[2025-04-02 09:44:15] info:     z2m: Connected to MQTT server
[2025-04-02 09:44:15] info:     z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/state', payload '{"state":"online"}'
[2025-04-02 09:44:15] info:     z2m: Started frontend on port 8081
[2025-04-02 09:44:15] info:     z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/0x00124b00258a5e02', payload '{"state":"OFF"}'
[2025-04-02 09:44:15] info:     z2m: Zigbee2MQTT started!
Zsh

(Optional) Manually Configure Zigbee2MQTT #


⚠️This section is only required if:

  • Your Zigbee2MQTT version is below 2.2.0, or
  • You encounter errors when starting Zigbee2MQTT.

Normally, running Zigbee2MQTT will automatically detect and configure the dongle without manual intervention.

To manually configure, modify the configuration.yaml file. Example steps on Linux:

cp /opt/zigbee2mqtt/data/configuration.example.yaml /opt/zigbee2mqtt/data/configuration.yaml
nano /opt/zigbee2mqtt/data/configuration.yaml
Zsh


The first command backs up the original configuration file. The second command opens configuration.yaml for editing. Modify the following sections:

# MQTT settings
mqtt:
    base_topic: zigbee2mqtt
    server: 'mqtt://localhost'
    
frontend:   
    enabled: true           //Enable frontend

# adapter settings
serial:
    port: /dev/ttyUSB0    //Replace with the serial port path obtained in Step 1
    adapter: ember
YAML

After editing, press CTRL + O to save and CTRL + X to exit.

Then, restart Zigbee2MQTT:

cd /opt/zigbee2mqtt
sudo pnpm start
Zsh

Step 2: Access the Frontend Console #


You can access the Zigbee2MQTT frontend via:

Step 3: Add a Zigbee Sub-device #


Put your Zigbee device into pairing mode, then click Permit join (All) in the Zigbee2MQTT frontend.
The device will be scanned and added automatically.

Note: The Zigbee2MQTT Supported Devices List: Zigbee2MQTT Support device

What are your feelings

Updated on November 2, 2026