
Introdution
Whether you're preparing to migrate an existing network or setting up a new one, getting the firmware selection and device configuration right is essential.
For users new to Home Assistant, setting up a Dongle isn't as simple as just plugging it into a USB port. You also need to choose the right firmware and connect the device to ZHA, Zigbee2MQTT, or an OpenThread Border Router (OTBR).
This guide walks you through installation preparation, firmware configuration, platform integration, network migration, and troubleshooting common issues.
Whether you're a smart home beginner or an advanced user, this guide will help you get started.
1. Quick Start: Up and Running in 10 Minutes
1.1 Power-On and Placement
⚠️ Note: It is strongly recommended to use a USB extension cable; do not plug the Dongle directly into the host. USB 3.0 ports and internal host components can generate electromagnetic interference at the USB port.
*Except for ZBDongle-E / P, all other Dongles come with a USB extension cable.
Regarding drivers: Driver-free on Linux (including Raspberry Pi OS). On Windows / macOS, for ZBDongle-P (CP2102N), install the CP210x driver Silicon Labs CP2102 Driver; on Windows 10 and above, it is usually installed automatically.
PoE models (Dongle-M / Dongle-MP10 / Dongle-MZG23) support three connection methods, chosen by scenario:
|
Connection |
Power Supply |
Cable |
Suitable Scenario |
|
USB |
USB-C power(5V⎓1A) |
Included USB cable (1m) |
Temporary debugging, desktop deployment close to the host; in this case it's just a "regular USB Dongle," plug and play |
|
Ethernet (PoE) |
48V⎓0.25A PoE |
A single network cable (RJ45) |
Preferred for fixed installation: power and networking in one cable, suitable for low-current boxes, ceilings, storage rooms, and other locations without outlets; requires a PoE switch or PoE injector |
|
Wi-Fi |
Independent power (USB or PoE) |
Power cable only |
When you want to place the gateway far from the host but can't run a network cable; only power is needed, connecting via 2.4GHz Wi-Fi |
All three methods connect to the same Web Console; switching connection methods doesn't require reflashing firmware, and already-paired Zigbee sub-devices are unaffected. The placement principle remains the same: try to keep the Dongle at the center of the whole home, away from metal obstructions and 2.4GHz interference sources (wireless routers, microwaves, etc.).

1.2 ZHA Integration
Insert the Dongle and open Home Assistant → Settings → Devices & Services.
In most cases, "Sonoff Zigbee 3.0 USB Dongle Plus" will be automatically discovered and a pop-up will appear; click Configure — the USB descriptor of shipped products has already been added to the HA whitelist.
If no pop-up appears, manually add the ZHA integration; for the serial port path, it's recommended to choose /dev/serial/by-id/... (rather than the drifting ttyUSB0), and keep flow control at default.
🔎 Reference Dongle-PMG24 integration tutorial.
1.3 Z2M Integration
The key configuration point is to match the adapter with the chip:
For ZBDongle-E, Dongle-PMG24, Dongle-LMG21, and Dongle-M:
port: /dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_xxxx
adapter: ember
For ZBDongle-P, Dongle-PP10, and Dongle-MP10:
port: /dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_xxxx
adapter: zstack
🔎 Refer to the Dongle-M integration tutorial.
1.4 Z-Wave JS Integration
For Z-Wave Dongles (Dongle-MZG23, Dongle-PZC23), integrate them into Home Assistant via Z-Wave JS. Do not use ZHA, and do not use Z2M.
1. Plug in the Dongle (using a USB extension cable is also recommended), and add the Z-Wave JS integration in Home Assistant.
2. For the serial port, select the /dev/serial/by-id/... path.
3. Record and back up the security keys (S0/S2) automatically generated by the integration. If the keys are lost, all paired security devices will need to be re-paired.
4. Enter the Z-Wave JS panel and use "Add Node" to pair devices. For devices like door locks, you usually need to enter the first five digits of the DSK on the device.
Two limitations from the official FAQ: Z-Wave models only support firmware provided by SONOFF; one Z-Wave integration can only manage one adapter. To run two Z-Wave networks simultaneously, you need to install another Z-Wave JS UI instance.
Integration tutorial reference: https://dongle.sonoff.tech/guide/dongle-mzg23/connecting-to-home-assistant-mzg23/
1.5 Channel Planning
ZHA defaults to channel 15, and Z2M defaults to 11, both intentionally avoiding common Wi-Fi channels. Planning recommendations:
● When plugging two Zigbee Dongles into the same host, make sure the two networks use different channels (e.g., 15 / 25).
● When using a ZBDongle-E to connect to Hue Green Power devices, the channel must be set to one of 11/15/20/25.
● Try to fix the channel after building the network: changing channels requires re-pairing the entire network, which is very costly.
🔎 Please see the Channel switching tutorial.
2. Firmware Management and Advanced Usage
2.1 Firmware Upgrade
Firmware can be flashed using the following three methods:
Method 1: SONOFF Dongle Flasher
👉 For more details, see the SONOFF Dongle Flasher Guide.
✅ Applicable to ZBDongle-P/E, Dongle-LMG21, Dongle-PP10, Dongle-PMG24.
Open it with Chrome/Edge and access it via the domain name. It can automatically identify the model and recommend firmware, supporting Coordinators, Routers, OpenThread, MultiPAN, and custom firmware. The whole process takes about 1 minute.
Method 2: Web Console
✅ Applicable to Dongle-MP10, Dongle-M, and Dongle-MZG23.
Open it via a browser by visiting the model.local domain name (if mDNS resolution fails, use the LAN IP (192.168.42.1)). You can view status, switch modes, flash firmware, and use extended features like MQTT, WireGuard, and Webhooks. If you forget the password, long-press the device button for 10s to reset.
Method 3: SONOFF Dongle Flasher for Home Assistant.
👉 For more details, see the SONOFF Dongle Flasher for Home Assistant.
SONOFF Dongle supports flashing firmware via a Home Assistant add-on.
⚠️ Note: Third-party firmware (community-compiled coordinator firmware) is not covered by official support. Flashing it will result in loss of official warranty. Power interruption during operation carries the risk of bricking the device; Z-Wave models only support firmware provided by SONOFF, do not attempt to flash Z-Wave firmware from other vendors.
2.2 ZHA & Z2M Migration
Migrating your ZHA and Z2M setup from an old Zigbee Adapter to a new Dongle does not require re-pairing dozens of sensors one by one. The core principle: during migration, the new Dongle inherits the old coordinator's IEEE address, and all sub-devices automatically rejoin the network.
ZHA migration (cross-chip supported):
1. Settings → Connections → Zigbee → Migrate.
2. Plug in the new Dongle and select "Migrate to a new radio".
3. Select the serial port (or TCP address) of the new Dongle, and choose "Migrate automatically" as the migration method.
During migration, all Zigbee devices will briefly become unresponsive — this is normal. If a device stays offline for an extended period, power-cycle it.
Z2M migration:
● ember → ember (zstack → zstack): stop the Zigbee2MQTT Add-on → edit the port in configuration.yaml → restart. Devices need no reconfiguration.
● ember → zstack (zstack → ember): migrating a Dongle based on a Silicon Labs SoC to one based on a Texas Instruments (TI) SoC — because the two use different Zigbee stacks, the backup formats differ; you need to rebuild the network and then restore the device list.
⚠️ Note:
● If a migration fails, you can roll back at any time — unplug the new Dongle, plug the old one back in, and restart Home Assistant; ZHA will automatically recognize the old adapter and restore the previous state. So always back up before you begin.
● After migration, the new coordinator copies the old coordinator's IEEE address, so the old Dongle and the new Dongle cannot join the same network at the same time (address conflict). To reuse the old Dongle, you must first change its IEEE address — PoE models can be changed directly in the Web Console, USB models can be changed using XZG Multi Tool, and the team is also developing a feature in Dongle Flasher to modify the IEEE address when flashing router firmware.
🔎 For more detailed instructions and important considerations, see the official SONOFF Zigbee Dongle Migration Guide.
2.3 Flashing Router Firmware to Extend Mesh
After flashing a spare Dongle with router firmware, it will join the existing Zigbee network as a "bulb" identity, acting as a relay node—suitable for scenarios with weak corner signals.
⚠️ Note: Another page on the official website states that the P model firmware defaults to 21 direct connections, configurable up to 100. The two numbers are inconsistent. Sub-device capacity varies with firmware versions. When planning a large network, refer to the User Manual of your actual firmware.
2.4 Dual Dongle and Hybrid Protocols
● Zigbee + Thread: Flashing the Multiprotocol RCP firmware allows the same Dongle to serve simultaneously as a Zigbee Coordinator and an OpenThread RCP. Currently, Dongles using Silicon Labs SoCs support flashing this firmware, such as Dongle-M, Dongle-PMG24, Dongle-LMG21, ZBDongle-P, and ZBDongle-E.
🔎 For more details on multi-protocol setups, see How to Connect Multiple Dongles to One Smart Home Hub.
● ZHA + Z2M coexistence: One Dongle establishes a Zigbee network via ZHA, and another establishes a Zigbee network via Z2M; you need to distinguish the serial ports and use different channels.
● Zigbee + Z-Wave coexistence: A Zigbee Dongle and any Z-Wave Dongle can be plugged into the same host. If you need long-distance access to the Z-Wave Dongle, you can do so via the USB Passthrough of the Dongle-MP10. On the Z-Wave side, only one adapter is allowed within the same integration; a second one requires a separate Z-Wave JS UI instance.
🔎For more details, see the SONOFF Dongle-MP10 USB Passthrough Guide.
3. Quick Troubleshooting
|
Fault |
Cause |
Solution |
|
ZHA/Z2M cannot recognize the serial port |
Serial port driver not installed, or running on Windows 10 or lower |
Install the Silicon Labs CP2102 Driver, or re-plug the Dongle |
|
Frequent network disconnections |
May be caused by serial port electromagnetic interference, or an unstable Wi-Fi connection for Dongle Max series |
Connect to the host via a USB extension cable, or check the network conditions |
|
New device pairing failed |
Coordinator not in pairing mode / Battery insulation tab on the sub-device not removed |
Click "Add Device" in ZHA/Z2M, then trigger the sub-device pairing button |
|
Z2M configuration failed |
"adapter" information filled in incorrectly, or hardware flow control not disabled |
For EZSP series (using Silicon Labs SoC), fill in |
|
Replacing Dongle in ZHA/Z2M failed |
Dongle network not migrated / IEEE address changed |
Restore using Z2M backup; or follow the official migration tutorial |
|
Dongle Max's Web Console won't open |
|
If already networked, find the device IP address in the router backend and open it; if not networked, use the default IP (192.168.42.1) to open it. |
👉 Want to know what everyone is discussing? Or if you have something to discuss, you can learn more at our ewelink forum: https://forum.ewelink.cc/c/sonoff-dongle-x/49
*For detailed configuration tutorials, see the Dongle dedicated page: https://dongle.sonoff.tech/#


















































Hagyjon megjegyzést
Minden hozzászólást moderálnak a közzététel előtt.
Ezt a webhelyet a hCaptcha rendszer védi, és a hCaptcha adatvédelmi szabályzata, valamint szolgáltatási feltételei vonatkoznak rá.