Plan A: Dongle's Web Console #
If the device is working normally and the web console is accessible, firmware can be flashed on the Firmware page.
Alternatively, you can enable Automatic Updates; the device will automatically update to the new version at midnight when detected.

Plan B: SONOFF Dongle Flasher Web Tool #
If the web console is not accessible, you can flash the firmware using the online Dongle Flasher tool by following the instructions on the website:
https://dongle.sonoff.tech/sonoff-dongle-flasher/

Plan C: SONOFF Dongle Flasher Add-on #
If the device is already connected to Home Assistant, you can install the Dongle Flasher Add-on to flash the firmware.
- Go to the Add-on Store → Click the More button (⋮) in the upper-right corner → Select Repositories
- Paste the following:
https://github.com/iHost-Open-Source-Project/hassio-ihost-addon - Or, simply click the URL below to add it automatically: