Flash Firmware via Home Assistant Add-on


Introduction #

SONOFF Dongle Flasher supports online firmware flashing for the iHost MG21 chip and the SONOFF Dongle series (ZBDongle-P and ZBDongle-E).

Prerequisite #

How to Install SONOFF Dongle Flasher Add-on? #

Add SONOFF Dongle Flasher Add-on to Repositories #

Skip this step and simply proceed to the Add-on Store to install the required add-on if you have already added the add-ons from this repository (e.g., iHost Hardware Control).

Option 1: Via URL

Option 2: Via Button Clicking

  • Click this button to add the add-on automatically

Install SONOFF Dongle Flasher Add-on #

1. Search for SONOFF Dongle Flasher in the Add-ons Store.

2. Click Install

3. Wait for the installation to complete

Start the SONOFF Dongle Flasher Add-on #

After installation, click Start to launch the add-on. Wait until the service has fully started before proceeding.

Use the SONOFF Dongle Flasher Add-on to flash Zigbee firmware #

Open the web interface and click "Connect". The tool will automatically scan for the iHost MG21 chip and connected Zigbee Dongles on the device running Home Assistant. (Currently, only SONOFF ZBDongle-P and SONOFF ZBDongle-E are supported.)

Note*: Before clicking Connect, please make sure that Zigbee2MQTT and ZHA are stopped.Flashing requires access to the serial port, and currently, the add-on will automatically check whether the iHost serial port is occupied by Zigbee2MQTT or ZHA when you click Connect.

If either service is running, the add-on will attempt to stop them automatically.

If Zigbee2MQTT or ZHA is not stopped beforehand, you may encounter device connection failures during the flashing process.*

Automatically Scan for SONOFF ZBDongle-P or ZBDongle-E and Flash Zigbee Firmware #

Before flashing, please insert the SONOFF ZBDongle-P or SONOFF ZBDongle-E into the USB port of the device running Home Assistant.。

1. Open the web interface and click "Connect". It will automatically scan for the Zigbee dongle connected to the device running Home Assistant.

2. Select the dongle you want to flash and click "Confirm".

3. Select the Zigbee firmware version you want to flash.

4. Click "Flash" to start the firmware flashing process.

5. Wait for the flashing process to complete.

Manually Locate SONOFF ZBDongle-P or ZBDongle-E and Flash Zigbee Firmware #

Before flashing, please insert the SONOFF ZBDongle-P or SONOFF ZBDongle-E into the USB port of the device running Home Assistant.

1. If the dongle is not found during automatic scanning, you can click the "Manually add device" option on the scan page to locate it manually.

2. Select "Device Model" and "Baud Rate", enter the "Serial Port Path", and click "Confirm".

You can follow the prompt: "Please go to Settings > System > Hardware > All Hardware", and find the serial port path of the hardware device you want to add.

3. Select the Zigbee firmware version you want to flash.

4. Click "Flash" to begin flashing the firmware.

5. Wait for the flashing to complete. (During the flashing process, please disable ZHA and Zigbee2MQTT. You can restart them after the flashing is complete.)

Possible causes:

  • Mismatched model: The selected device model is ZBDongle-E, but the device connected > to the specified serial port is ZBDongle-P.
  • As a result, the serial port is occupied and cannot be used for another attempt.

Please try:

  • Restart the Add-on to release the serial port.
  • Verify and select the correct de vice model matching your device (ZBDongle-P).
  • Flash the firmware again.

What are your feelings

Updated on October 27, 2025