This guide is based on Home Assistant. For more details, please visit: Home Assistant - ZHA
Preparation #
Before getting started, make sure Home Assistant is running on the host. If not yet installed, please follow the Home Assistant Installation Guide.
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 #
Use a USB extension cable to connect the Dongle-M to the host device. ZHA will automatically detect and configure the device.
In most cases, once the device is connected to the operating system, it will be automatically discovered by Home Assistant. Go to Settings > Devices & Services, and click 'ADD' to start the configuration.


Option 2: Manual Setup #
If Dongle Max is not discovered automatically, follow these steps:
- Navigate to Settings > Integrations, and add the ZHA integration.
- Select the serial device with "SONOFF Dongle Max MG24" in its name.
- Network Settings Method: restore from backup or create a new one.
- Restore an automatic backup: Used when replacing the Zigbee coordinator. Restores based on the last available network backup.
- Keep radio network settings: Used when the Zigbee coordinator remains the same and ZHA integration is re-added. Generally not recommended.
- Upload a manual backup: Used when manually migrating network data during HA migration.
- Erase network settings and create a new network: Used to create a new Zigbee network by erasing existing network data.
- Complete the setup.


TCP 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, ZHA still includes a WARNING. Please read ZHA'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.
Other supported but not recommended Zigbee radio adapters or modules | ZHA
Option 1: Auto-Discovery #
Connect the Dongle-M to the same local network as the host. ZHA will automatically detect and configure the device over a TCP connection.
Go to Settings > Devices & Services, and click 'ADD' to start the configuration.


Option 2: Manual Setup #
If Dongle Max is not discovered automatically, follow these steps:
- Navigate to Settings > Integrations, and add the ZHA integration.
- Serial device path: Enter Manually.
- Select a radio type: EZSP.
- Enter the Serial device path: socket://Dongle-M.local:6638
- Enter Port speed: 115200
- Data flow control: software.
- Network Settings Method: restore from backup or create a new one.
- Restore an automatic backup: Used when replacing the Zigbee coordinator. Restores based on the last available network backup.
- Keep radio network settings: Used when the Zigbee coordinator remains the same and ZHA integration is re-added. Generally not recommended.
- Upload a manual backup: Used when manually migrating network data during HA migration.
- Erase network settings and create a new network: Used to create a new Zigbee network by erasing existing network data.
- Complete the setup.

