Connecting to Home Assistant via ZHA


Preparation #



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.

Option 2: Manual Setup #


If Dongle Max is not discovered automatically, follow these steps:

  1. Navigate to Settings > Integrations, and add the ZHA integration.
  2. Select the serial device with "SONOFF Dongle Max MG24" in its name.
  3. 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.
  4. 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.

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.


Option 2: Manual Setup #


If Dongle Max is not discovered automatically, follow these steps:

  1. Navigate to Settings > Integrations, and add the ZHA integration.
  2. Serial device path: Enter Manually.
  3. Select a radio type: EZSP.
  4. Enter the Serial device path: socket://Dongle-M.local:6638
  5. Enter Port speed: 115200
  6. Data flow control: software.
  7. 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.
  8. Complete the setup.

What are your feelings

Updated on September 17, 2025