Matter over Thread on Home Assistant with SONOFF Dongle

1. Foreword

This document explains how to use SONOFF Dongle series products as Thread adapters to create Thread networks in Home Assistant and add Matter over Thread smart devices.

This document supports the following SONOFF Dongle products:

Note: For detailed information on the Thread feature in Home Assistant, please refer to the official Home Assistant Thread Integration documentation.

2. Environment

3. Preparation

3.1. Access the Home Assistant Operating System front-end web interface using a browser

If you have not yet installed, run, and configured the Home Assistant Operating System (aka. HA), please refer to the official Home Assistant Installation Guide.

3.2. Flash the OpenThread RCP firmware onto the SONOFF Dongle and connect it to HA via USB

SONOFF officially provides three methods for flashing firmware onto Dongle series products:

Connect the Dongle, which has the OpenThread RCP firmware flashed, to HA, and confirm the Dongle’s file path on HA → Settings → System → Hardware → All Hardware page, as shown in the following screenshot:

Note: The file path for Dongle is usually /dev/ttyUSB0 or /dev/ttyACM0.
Note: Although the screenshots in this document use the Dongle Plus MG24 | Dongle-MG24 as examples, the content of this document applies to all SONOFF Dongle series products mentioned in 1. Foreword.

3.3. Optional: Enable Bluetooth integration on HA

If you plan to use the Matter Server App’s Web UI instead of the Home Assistant Companion App to add Matter over Thread smart devices, you must enable Bluetooth integration on HA.

You can check whether Bluetooth integration is discovered and enabled on HA -> Settings -> Devices & services -> Integrations page, as shown in the screenshot below.

Note: Raspberry Pi 4/5 comes with built-in Bluetooth hardware. Generic x86-64 hosts usually require an additional USB Bluetooth Adapter. Please refer to HA Bluetooth Integration official documentation for details.

4. Install, configure and run OpenThread Border Router App

4.1. Install OpenThread Border Router App

On HA -> Settings -> Apps -> Install app -> App store -> OpenThread Border Router page, click the Install button to download and install OpenThread Border Router App, as shown in the screenshots below.

4.2. Configure OpenThread Border Router App

On HA -> Settings -> Apps -> OpenThread Border Router -> Configuration page, set the correct Options:

  • Device: Select the Dongle running OpenThread RCP firmware.
  • Baudrate: Select 460800 for ZBDongle-E, ZBDongle-P, Dongle-LMG21, and Dongle-PMG24, and select 115200 for Dongle-M.
  • Hardware flow control: Disabled (false).

Note: Incorrect settings will cause OpenThread Border Router App to malfunction.

4.3. Start OpenThread Border Router App and configure Thread network

On HA -> Settings -> Apps -> OpenThread Border Router -> Info page, enable Start on boot, Watchdog, and click the Start button, as shown in the screenshot below.

Then switch to HA -> Settings -> Apps -> OpenThread Border Router -> Log page to view the logs. If you see:

s6-rc: info: service otbr-agent-configure successfully started 
s6-rc: info: service otbr-agent-configure successfully started 
s6-rc: info: service otbr-agent-rest-discovery successfully started 
s6-rc: info: service legacy-services successfully started

then OpenThread Border Router App has successfully started and is running correctly, as shown in the screenshot below.

Note: Messages such as DuaManager----: Failed to perform next registration: NotFound in the log can be ignored.

After OpenThread Border Router App starts successfully for the first time, HA will automatically enable Thread integration. You can view the thread network created by OpenThread Border Router App by clicking the Configure button on HA -> Settings -> Devices & services -> Integrations -> Thread page, or on HA -> Settings -> Thread page, as shown in the screenshots below.

Note: If no Thread network starting with ha-thread is found, please reboot the system (not Restart Home Assistant). If the Thread network starting with ha-thread is not the Preferred network, please set it as the Preferred network.

Please click the Info icon to the right of the Thread network starting with ha-thread to view and record the Active dataset TLVs, as shown in the screenshot below.

Note: This Active dataset TLVs is needed when adding Matter over Thread smart devices via Matter Server App’s Web UI for the first time.

5. Install, configure and run Matter Server App

5.1. Install Matter Server App

On HA -> Settings -> Apps -> Install app -> App store -> Matter Server page, click the Install button to download and install Matter Server App, as shown in the screenshot below.

5.2. Optional: Configure Matter Server App

If you plan to use Matter Server App’s Web UI instead of Home Assistant Companion App to add Matter over Thread smart devices, you must set the correct Bluetooth Adapter ID for Matter Server App.

On HA -> Settings -> Apps -> Matter Server -> Configuration page, set the correct Options:

  • Enable Show unused optional configuration options
  • Bluetooth Adapter ID: The default is 0 (i.e., hci0). If there are multiple Bluetooth adapters in Bluetooth integration, please select the hci number corresponding to the Bluetooth adapter used to add Matter device.

5.3. Start Matter Server App

On HA -> Settings -> Apps -> Matter Server -> Info page, enable Start on boot, Watchdog, Add to sidebar, and then click the Start button, as shown in the screenshot below.

Then switch to HA -> Settings -> Apps -> Matter Server -> Log page to view the logs. If you see:

INFO [matter_server.server.server] Matter Server successfully initialized.

then Matter Server App has successfully started and is running correctly, as shown in the screenshot below.

6. Add Matter over Thread new device

6.1. Adding a new Matter over Thread device using Matter Server App Web UI

Please refer to the product manual of your Matter over Thread smart device to put the device into Pairing mode and write down the device’s Pairing code (11 or 21 digits of numbers near the Matter pairing QR code).

On HA -> Settings -> Apps -> Matter Server -> Info page, click the Open Web UI button, or click Matter Server menu in HA sidebar to open Matter Server App Web UI page. Then click the Commission node button on the page, select Commission new Thread device, set the Thread dataset (the Active dataset TLVs mentioned above), enter the device’s Pairing code, and click the Commission button to start the process of searching for and adding the device, as shown in the screenshots below.

6.2. Add a new Matter over Thread device using Home Assistant Companion App

On HA -> Settings -> Thread page, click the Overflow menu icon to the right of the Thread network starting with ha-thread, and select Used for Android + iOS credentials, as shown in the screenshot below.

Please refer to the product manual of your Matter over Thread smart device to put the device into Pairing mode and write down the device’s Pairing code (11 or 21 digits of numbers near the Matter pairing QR code).

On Home Assistant Companion App -> Settings -> Devices & services -> Integrations -> Matter page, or on Home Assistant Companion App -> Settings -> Matter page, click the Add device button, select No. It's new, and then follow the prompts to scan the device’s Matter pairing QR code, or manually enter the device’s Pairing code to start the process of searching for and adding the device, as shown in the screenshots below.

If you are using an Android phone, before adding a Matter over Thread device, you must manually synchronize Thread network credentials by clicking the Sync Thread credentials entry in Home Assistant Companion App -> Settings -> Companion app -> Troubleshooting page, as shown in the screenshots below.

It would be reasonable to publish a list of current firmware versions on the Sonoff Dongle Flasher website.

Currently, the type and version of firmwares are displayed after the Dongle is plugged in, it is a good idea to show those information in advance. We’ll get it done ASAP.

Great! Thanks, this will make version checking much easier.

Good thing you mention granting permissions to the Companion App — it took me a while to figure that out. It seemed obvious that this would happen by default, but nope. The Home Assistant documentation very elegantly glosses over this detail.

Any news and/or changes?

Hi, thanks for asking. We’ve updated the SONOFF Dongle Flasher for Web tool to provide a link to all the firmwares we provide.

We are working on the next update of SONOFF Dongle Flasher for Web, which will make it easier to view all available firmwares.

Thanks for the updates.

@MichaelLearnsToCode Thanks to your detailed instructions I was able to set up my LMG21 Dongle for matter a few month ago with the Dongle flasher in my HA. The firmware there available 2.4.4 Was working well. I saw that in the webflasher app only the new version 3.1.1 for Matter is available for my LMG21-Dongle. I flashed the firmware and changed the baudrate, but my matter network was not coming back even after a reboot. Can you tell me which firmware is suggested for HA and maybe update the instructions here? Thanks a lot

We’ve encountered some issues with OpenThread on the MG21 at high baud rates. We’re currently working with Silicon Labs’ technical team to address them. We have a usable beta version available at the moment. Would you be willing to try it?

I am happy to try the beta; however, please make sure the old 2.4.4 firmware is still available with your Sonoff webflasher. Currently, only 3.1.1 is available as stable, and this version was not working at all for me. Luckily, I was able to get back to 2.4.4 with the Sonoff Flasher in my HA. It might be useful to adjust the manual, too.

best

clem

ot-rcp_donglelmg21_v3-1-1_b460800.gbl (105.0 KB)

try it.If you encounter any issues, feel free to contact me directly.

The firmware running at 460800 baud seems to be working fine. At least so far, I haven’t noticed anything unusual.

2026-11-11 14:57:51.612+01:00 Opening a serial connection to '/dev/serial/by-id/usb-SONOFF_SONOFF_Dongle_Lite_MG21_185a073ddf9bef11b5ccb69061ce3355-if00-port0' (baudrate=460800)

2026-11-11 14:57:51.627+01:00 Sending frame SpinelFrame(command_id=RESET)

2026-11-11 14:57:51.630+01:00 Received b'...'
2026-11-11 14:57:51.631+01:00 Parsed frame SpinelFrame(command_id=PROP_VALUE_IS)

2026-11-11 14:57:51.634+01:00 Parsed frame SpinelFrame(command_id=PROP_VALUE_IS)

2026-11-11 14:57:51.664+01:00 INFO: Starting otbr-agent...

2026-11-11 14:57:51.666+01:00 [NOTE]-AGENT---: Thread version: 1.4.0
2026-11-11 14:57:51.666+01:00 [NOTE]-AGENT---: Radio URL: spinel+hdlc+uart:///dev/serial/by-id/usb-SONOFF_SONOFF_Dongle_Lite_MG21_185a073ddf9bef11b5ccb69061ce3355-if00-port0?uart-baudrate=460800&uart-init-deassert

2026-11-11 14:57:52.129+01:00 [N] Mle-----------: Role detached -> router

2026-11-11 14:57:52.623+01:00 [W] Mle-----------: Failed to process Link Accept - Security

2026-11-11 14:57:52.787+01:00 [W] Mle-----------: Failed to process Link Accept - Security

2026-11-11 14:57:52.897+01:00 [NOTE]-BBA-----: BackboneAgent: Backbone Router becomes Primary!

yes also for me… I’ve just flashed and i will keep you posted… @hiconkong: What has been changed? Is there a changelog?

thanks

clem

No, there’s none. It’s a mystery :wink:

@jam3: I am sorry; indeed, my post was not clear; I edited it ad added @hiconkong, which could surely help us in this regard…

best

clem

We’ll update you once we receive confirmation from Silicon Labs.

I almost burst out laughing when I read that last response . Luckily, I managed not to spit out the tea I was drinking all over my screen! But jokes aside, I’m actually more concerned about the last response than the lack of a changelog itself. How is it possible that SONOFF releases firmware for its own device, users install it, and the company’s representative says they are still waiting for confirmation from Silicon Labs about what has changed?

I can understand that some changes or fixes may originate from Silicon Labs and require confirmation. However, SONOFF should know exactly what is included in the firmware it publishes, which components have been updated, and what has been tested.

@MichaelLearnsToCode A changelog is not just a courtesy to users. It is part of responsible firmware release management. Users need to know what they are installing and what changes to expect. If even the manufacturer cannot provide that information at the time of release, I think there is a much bigger communication and transparency issue here.

Since these changes involve modifications to components within the Silicon Labs SDK, we have not yet conducted large-scale device testing or fully validated their stability. Therefore, we would like to reach a consensus with Silicon Labs’ technical team on these modifications before proceeding further.

That’s why I refer to the firmware shared on the forum as a beta version. It has not been officially released through any of our distribution channels.

Thanks for the clarification. However, I think there is an important point here. The original post sharing the firmware simply says “try it” and invites users to report any issues. There is no mention of beta status, experimental changes, incomplete validation or the fact that large-scale testing has not been performed. Users cannot be expected to know these things unless they are explicitly communicated.

Also, firmware version 3.1.1 is already an official release, while the file shared here appears to be a different build using a 460800 baud UART connection. It would therefore be useful to explain exactly what has been changed compared to the official build.

I don’t have a problem with manufacturers sharing experimental builds with the community. Quite the opposite! I do appreciate that approach. But transparency about what is being shared and its validation status should come before users are asked to install it, not only after they start asking questions.