-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flashing the Sonoff ZBDongle-E to enable Matter, Thread and Zigbee on Home Assistant | Dialedin #3
Comments
This seemed to have worked perfectly. Thanks! I specifically bought the Sonoff ZB-Dongle-E because it was similar to the Home Assistant Yellow radio, and this is the first I've seen anyone have success with flashing the firmware from the itead Zigbee firmware to a multiprotocol firmware. Great job. |
@OriginalResponsibleUser Thanks for the feedback! We have now updated firmware links to the most recent v4.2.3 firmware release. You can even upgrade to the new firmware directly from this blog post using the newly added web flasher support, note that the baudrate has been updated to 460800 for these ZBDongle-E builds. |
Suggest you credit darkxst as well and not just Nabu Casa since use https://github.com/darkxst/sl-test |
@Hedda Thanks! I wrote this blog post... I didn't even think to credit my other self! |
haha, I missed that, sorry |
Hi, thanks for you post ! |
If you can find a suitable GBL firmware file, you can upload it to the webflasher and flash it to your device. However I dont recall seeing any RCP builds for this device. Would need further info such pinouts to add it to the firmware builder. Edit: This is a rebrand of Elelabs ELU013, for which you may find firmware.
No its not possible for these two functions to co-exist. |
@golgoth73 I suspect that you really meant to ask if it supports flashing a Zigbee Router firmware image or a Thread firmware image, (and not asking if there is a single firmware image that supports Zigbee Router and Thread in the same firmware image). I understand that the terminology can be confusing with a "Zigbee Coordinator" being a controller similar to "Thread Border Router" functionality, while a Zigbee Router" is just a Zigbee device (like a mains-powered smart lightbulb) that act as a repeater in a Zigbee network mesh but have no controller functionality at all. Suggest that you read through this introduction to Zigbee: https://www.home-assistant.io/integrations/zha#introduction To clarify, there are firmware images that support concurrent multiprotocol (meaning they support several protocols to run simultaneously at the same time) with the combination of Zigbee Coordinator (NCP or RCP) and Thread (RCP for Thread Border Router), but there are currently no firmware images that support concurrent multiprotocol the combination of Zigbee Router and Thread, at least not with both protocols running simultaneously at the same time, and likely there never will as it does not really make commercial sense, (we can only speculate it might be products in the future that support Zigbee Router and Thread in the base firmware image but not enable both to run at the same time, meaning it will lock to only using the specific protocol that it is initially paired with). So, there are currently no existing firmware images that feature both Zigbee Router and Thread. Your choices today is to use:
https://openthread.io/platforms/co-processor The fact is there today exist these types of community firmware images for Silicon Labs EFR32MG21 based devices listed below:
@golgoth73 again, there is currently no single firmware image from anyone in the that supports acting as a Zigbee Router and Thread device at the same time and I do not believe that is something that Silicon Labs EmberZNet SDK currently supports, however, if I had to guess then that might be something that could perhaps be added to Silicon Labs EmberZNet SDK in the future, or at least it is not technically impossible, even though it is not possible in practice if there is no support for in Silabs EmberZNet SDK. |
You can find firmware images for Elelabs ELU013 and POPP ZB-STICK (701554) in GBL file format on Elelabs GitHub repository: POPP ZB-STICK (701554) is a white-label (rebranded) version of Elelabs ELU013 that is made by Elelabs based on EFR32MG13P Older variants of Elelabs adapters did however ship with EBL (Ember Bootloader) and if that is the case then you can not flash those yet with the webflashing as it does so far not suppose EBL parting. More info here -> NabuCasa/universal-silabs-flasher#11 |
Hi, migrate from sonoff P to E in homeassistant will drop devices on zigbee2mqtt? I have many changed entity names etc. When zigbee2mqtt drop devices they will disappear on HA GUI or change to unavailable? I dont't want reconfigure all names in HA. Thanks for advice. |
@shirou93, Migration to the -E is not officially supported in Zigbee2MQTT yet. There are probably workarounds to make it work, but not likely well tested or documented anywhere. It is possible to keep your existing network in Zigbee2MQTT using the -P, and then create a new network with the Multiprotocol addon and ZHA on the -E. These can then co-exist and you can use the new network for testing. We would recommend this route over migrating your production network at this stage. However back to the migration, keeping in mind we have not tested any of this. So make to sure to backup your Normally switching to a new (different type) coordinator in Zigbee2MQTT requires repairing all devices. Migration from Zigbee2MQTT to ZHA is possible but you will almost certainly loose your entity names in this case It is probably possible to use |
Wrong place to ask, suggest instead ask in this Zigbee2MQTT discussion -> Koenkk/zigbee2mqtt#16478 |
So if I want to support both Thread and Zigbee devices, I still need two adapters - one to flash as a router for Zigbee and one to flash as a router for Thread? |
You can have both Thread and Zigbee Coordinator on the one adapter, at the same time. A |
@asmiller That question was already asked and answered above so I updated my reply to make it more clear -> #3 (comment) Again I believe you guys are confusing "Zigbee Router" with "Zigbee Coordinator" because name of "Thread Border Router". Read: https://www.home-assistant.io/integrations/zha#introduction ZHA integration is a Zigbee gateway implementation that follows the standard Zigbee 3.0 specification (and earlier revisions). In Zigbee, there are three different device types: Zigbee Coordinator (ZC), Zigbee Router (ZR), and Zigbee End Device (ZED). A Zigbee network always has one (and no more) Zigbee Coordinator, however, a Zigbee network can have multiple Zigbee Routers and multiple Zigbee End Devices. A Zigbee Coordinator is the central device in a Zigbee network that manages and controls the network. It acts as a physical interface for the Zigbee wireless protocol, as well as being responsible for maintaining the Zigbee network topology and ensuring secure and efficient communication between Zigbee devices. Zigbee Router devices are mains-powered and will act as Zigbee signal repeaters within the Zigbee network mesh to extend its range and improve coverage, while Zigbee End Device devices are usually battery-operated sensors that will not act as Zigbee signal repeaters. In the case of ZHA, the Zigbee Coordinator is a radio adapter or hardware module, that contains a microcontroller that runs the Zigbee protocol stack which the ZHA integration uses to manage and communicate with a Zigbee network and its devices. Before installing the ZHA integration, you will need to buy and connect a Zigbee Coordinator radio adapter or hardware module, those usually come in the form of a USB dongle that plugs directly into the computer that is running the Home Assistant installation. The ZHA integration can work with many different “Zigbee Coordinator” adapters, however, be sure to read the respective sections below about compatible Zigbee radio adapters and hardware modules. Once ZHA has been set up and the Zigbee Coordinator radio adapter or module is configured, you will be able to directly join/pair any Zigbee device to the Zigbee network; regardless of the manufacturer and brand of that Zigbee-based product. Note, that while it is generally recommended to buy Zigbee 3.0 compliant devices as those should, in theory, offer greater interoperability, be sure of the sections about which devices are supported and exception handling. |
Do you have to do something special to get the Sonoff-E to show up in the SilLabs Multiprotocol add-on Configuration page? |
@clowg Nothing special required, it should show up in the config page even it has the incorrect firmware on it. What type of HA install are you running? If running in a VM (or Docker) you will need to pass the serial device through to the VM. |
I flashed the multi protocol firmware on to it using my Windows PC first. That all went fine.
Geoff
…________________________________
From: Tim L ***@***.***>
Sent: Monday, July 17, 2023 1:41:06 PM
To: DialedIn-Aus/blogComments ***@***.***>
Cc: Geoff Clow ***@***.***>; Mention ***@***.***>
Subject: Re: [DialedIn-Aus/blogComments] Flashing the Sonoff ZBDongle-E to enable Matter, Thread and Zigbee on Home Assistant | Dialedin (Issue #3)
@clowg<https://github.com/clowg> Nothing special required, it should show up in the config page even it has the incorrect firmware on it.
—
Reply to this email directly, view it on GitHub<#3 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AEZ6NGKKSPW54GKTVHG7M7TXQSJ3FANCNFSM6AAAAAAXWULIKI>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
The config page doesnt know anything about firmware. It should show any serial devices connected to your server. If you are running in a VM, check that serial device is passed through. If you have the HA terminal addon you can run |
Thanks
Will check that command.
My HA install is HAOS on x64 bare-metal.
Geoff ________________________________
From: Tim L ***@***.***>
Sent: Monday, July 17, 2023 2:24:19 PM
To: DialedIn-Aus/blogComments ***@***.***>
Cc: Geoff Clow ***@***.***>; Mention ***@***.***>
Subject: Re: [DialedIn-Aus/blogComments] Flashing the Sonoff ZBDongle-E to enable Matter, Thread and Zigbee on Home Assistant | Dialedin (Issue #3)
The config page doesnt know anything about firmware. It should show any serial devices connected to your server. If you are running in a VM, check that serial device is passed through.
If you have the terminal addon you can run lsusb and check for the following ID
ID 1a86:55d4
—
Reply to this email directly, view it on GitHub<#3 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AEZ6NGOMENV4JXDUFKSVV53XQSO5HANCNFSM6AAAAAAXWULIKI>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
It is recommended to use a USB2 port and USB extension cable to help avoid interference, but that wont have any impact on the device showing up or not. Are you running HAOS in a VM or on bare metal? |
It’s on bare metal |
Very strange, the USB Device should just show up as soon as its plugged in. All I can think of is a connection issue (not plugged in fully?) or a dead USB port. Maybe try some other USB device and see if that gets detected? |
Fixed it. Removed dongle and put into USB2 socket. Appeared straight away! |
FYI, the ITead's Sonoff dongles are known to have extremely a short USB plug design so may therefore not work in all USB-ports because it does not get a physical connection due to its very short USB plug, as in it does not plug all the way into the port to make proper connection. Workaround is to try to use USB extension cable as most of those have a longer USB port that will make a proper connection, An alternative is to try to connect the ITead's Sonoff dongle without its enclosure as that give you a another millimetre or so. Another alternative to that some peaple done is to modify the computer chassi of the comouter by cutting away a piece around the USB port so that the Sonoff dongle can be plugged further in. |
Thank you very much! everything worked perfectly, very simple and straightforward, just plug it in and update, I was surprised that the firmware and all the information already appeared, thank you very much for your work |
Do you have to re-pair your zigbee devices after updating the firmware to the latest version? |
@clowg if your just updating to the latest version of the multipan firmware there is no need to re-pair any devices. Only on first install when migrating from EZSP zigbee firmware to multipan you might need to re-pair (ZHA can handle this migration though, Z2M is complicated...) |
Hum. Just gave a try and still no joy for me: I'm doing it under chrome, is that an error? Mozilla seems not able to do it :( |
Just changed of USB port. it seemed to work, I just clicked on the upgrade FW option and now I'm stuck at : Progress: 0.0% |
Just afraid to try anything and get my sonoff bricked :( |
It's seems broken. |
Ok just done it again. Changed FW to mutli PAN and go it done !! youhou !!! |
you need to reconfigure Z2M to connect directly to multiprotocol addon, as shown at the end of blog post. |
Hello, With the webflasher I installed the Multi-PAN(RCP) firmware. I have this error message in the Silicon Labs Flasher log. Below is the full list. s6-rc: info: service s6rc-oneshot-runner: starting Add-on: Silicon Labs Flasher
|
This is because Silabs flasher does not include a firmware for Sonoff Dongle. It can only be used with the "custom url" option to provide a link to firmware to install. |
Thanks darkxst. |
You already installed firmware with the webflasher ? so you shouldnt need Silabs flasher addon? However if your running multipan firmware with multiprotocol addon I recommend installing my multipan flasher addon: Anyway all firmware builds are on my github repo |
Hey, the web flasher suggests installing the CP2102 driver if detection fails. However, doesn't the E version use the CH9102F chip? |
I dont use Windows myself, however I believe the universal CP2102 Silabs driver also supports CH9102. If there are issues with that however then you can use the CH343 driver from Qinheng. |
Thanks darkxst, everything works fine. The problem was simply the Silicon Labs Multiprotocol module, which I hadn't set up properly in HA. |
Just got mine and having the problem with the webflasher:
|
@ishimarumakoto What OS are you using? If Linux, you must add your user to "dialout" group before it can work. |
Windows 11, mate |
On Windows you probably just need to make sure you have the correct drivers installed for CH9102 serial USB chip. Its not installed by default. https://www.wch-ic.com/downloads/CH343SER_EXE.html Or apparently the CP2102 universal drivers also work. |
This driver worked like a charm in win11, mate! |
Mentioned in Zigbee2MQTT's guide -> https://www.zigbee2mqtt.io/guide/adapters/#is-your-os-unable-to-find-your-device Is your OS unable to find your device?If you're asking yourself "Why won't my dongle or adapter show up?" when you are using (for example) Flash Programmer 2, chances are that your OS can't communicate with your device over VCP (Virtual COM Port) serial port, causing your dongle not showing up as a flashable device. To fix this problem, be sure to install a USB-to-UART bridge/converter VCP driver for your operating system like the one at Silicon Labs, FTDI Chip, or WCH (CH34x/CH91xx). |
Z2M failed to connect to the MQTT broker. You need to fix that first or Z2M wont run. |
I've removed user and password and now it connect and work, thanks. but there is this error Assertion failed: Command (setValue(EzspValueId.VALUE_CCA_THRESHOLD, 0)) returned unexpected state: {"cls":"setValue","id":171,"isRequest":false,"status":55} See this discussion : Koenkk/zigbee2mqtt#19168 |
It looks it started up ok? if its running fine, you can ignore that error. |
Hi to all, I'm using the "web flasher" to flash the "router" firmware for the device. From2 different windows devices , When I select the .gbl file on the tool i get this error The router firmware comes form this github Anyone has suggestions to solve this problem? |
@ciottaciotta make sure you download the raw firmware file (not the html page) |
Thanks, my bad, this suggestion solved the issue! |
@darkxst Hi darkxst,The web tool you provided is very easy to use https://darkxst.github.io/silabs-firmware-builder/, but one thing makes me confused. In your firmware library, darkxst/silabs-firmware-builder provides ten There are three kinds of hardware firmware, but why does the web tool only support five kinds of dongle flashing? I would be grateful if you could answer my doubts. |
The list of devices I build firmware for has grown over time, but the web flasher hasn't been updated for all of these yet. I should add them eventually or happy to accept PR's adding new devices to web flasher ;) |
Can I use it as a standalone TBR to connect matter devices to after flashing? Or does it always need to be connected to a PC running HA? |
Thread firmware is RCP (Remote co-processor) type, thus it always requires an agent running in docker on a PC. It doesnt need to be HA though, you can use the upstream OTBR docker container, which can work for eg on an ARM SBC or similar. If you want a truly standalone OTBR, checkout the Espressif Thread gateway board. There are no ready made binaries for this afaik. so you do need to compile the apps using ESP-ISF, which isnt that easy if your new to these things. https://github.com/espressif/esp-thread-br |
Flashing the Sonoff ZBDongle-E to enable Matter, Thread and Zigbee on Home Assistant | Dialedin
Discover the latest in home automation for 2023, Matter and Thread are about to revolutionise smart home tech. In this blog post, learn how to flash your Sonoff ZBDongle-E or EasyIot ZB-GW04 with a RCP MultiPAN firmware to set up a Zigbee network, while providing simultaneous support for Thread. Stay ahead of the game and explore the possibilities of these innovative protocols.
https://dialedin.com.au/blog/sonoff-zbdongle-e-rcp-firmware
The text was updated successfully, but these errors were encountered: