Excellent guide - All I had to do was change the date of the .hex file to the latest version --> CC1352P2_CC2652P_launchpad_coordinator_20220219.hex Thank you!!!
thank you very much , this is the third time you save me, I wasn't able to get my sonoff to work , finally I had to install the drivers. you are the best !!
This was BY FAR the best video I have found. I can not belive the other videos comparing to this one. It work the first time on the windows method and was not only easier, it was faster. Thank you very much for this video, it solved my issue with getting the dongle into bootloader mode within a minute, rather then the hours of me trying and re-trying.
@@BeardedTinker haha damn! Wish I had waited now. But it was easy enough 😉! If you want suggestions I would like to know how to update zigbee devices without connecting them to native hubs. Such as ikea. Thanks again man! Subscribed now 👀
Do you use ZHA or Zigbee2MQTT? If ZB2MQTT - it's very easy as one of the options is OTA - and when you click check OTA it would go through all devices and search for firmware update and if available it would offer you update option. BUT it's limited to just few manufacturers at this time. IKEA works great, for Tuya and Aqara I haven't seen a single update in years.
Hi BT! I'm rather late to join the Home Assistant / Sonoff 3.0 USB ZBDongle-P party. Your video's absolutely sliced many cakes for me. Update: DS1821+ 32GB / Version: 7.1.1-42962 Update 1 / Home Assistant VMM 2CPUs + 4GB / Home Assistant 2022.9.6 Supervisor 2022.09.1 Operating System 9.0 Frontend 20220907.2 - latest. The Sonoff 3.0 USB ZBDongle-P is updated to fw v20220219. When restarting my NAS, the VMM reboots (auto-start) with the ZBDongle-P auto reconnects to the VMM and the Zigbee is in sync / up-and-running in my HA setup. Very happy with the resolution. I hope future updates will only make the use of Zigbee even better. Cheers to you and all the contributors!
Thank you!! Whilst I obviously (didn't catch on for the first 2hrs HAHAHA) needed to change some details for my own USB, this is the only video I managed to follow and get this done!
Great guide, you did well to cover all of the options. When migrating to the Sonoff I assume that all Zigbee devices need to be repaired but hopefully HA remembers all the entity names.
My Zigbee registrations in HA are a complete mess. I need to learn how to clear out all Zigbee entities (From many different iterations and dongles) and start again with Z2MQTT
Thanks B.T. done the whole Linux thing and it worked a champ first time through without much of an issue. Just needed pip install pyserial and intelhex and done. No need to remove that hard candy shell to get to the boot meat.
This is great video. Really like that you cover the different operating systems. Have trouble shooting steps. I have subscribed to your channel and am looking forward to more videos
Great video -- subbed. The only thing people should know, and will figure out quickly when the linux commands dont work, is that they'll need to update the serial ID and the firmware filename assuming the version doesn't match your own. Thanks for a great tutorial
Another alternative way to get Home Assistant in Linux is from snap. Some configuration might be needed to get it to connect to USB devices (ie Sonoff Zigbee 3.0 USB dongle)
Hello B.T. As a regular follower, I know how you appreciate feedback about future projects. An idea that occurred to me that is not covered by others is what to do when passwords are lost, particularly when you are the owner. I note HA recommends deleting files from the storage folder in the configuration file but it does not tell you how it's done and what to do next. Getting it wrong can have awful consequences. If you demonstrate how it can be done it would be the definitive video on the subject. It's not a sexy topic but is something that every HA user will face and they'll get a shock when it happens.
Hello, thank you very much for this detailed instructions. The tutorial really helped me a lot setting up my Sonoff USB Dongle on my Synology DS220+. I am sadly facing an issue while setup the Sonoff Dongle with Home Assistant + Zigbee2Mqtt. I run everything with Docker: Mqtt Broker + Zigbee2Mqtt + Home Assistant Zigbee2Mqtt alone is working fine, i can find and setup my Zigbee devices in the frontend. Home Assistant alone is working fine as well, i can see the Sonoff Dongle and pair all my Zigbee devices. Now the issue: When Home Assistant is running and i start the Zigbee2Mqtt Docker container then it seems like the Sonoff Dongle disconnects from Home Assistant. And when Zigbee2Mqtt is running and i start the Home Assistant Docker container then Zigbee2Mqtt gets an error and stops, and Home Assistant is running all fine. Maybe you guys have an idea what i am doing wrong or what is happening there?
You should check Synology CPU type list - this is V1000 model, so you can use drivers for that: www.jadahl.com/iperf-arp-scan/DSM_7.0/v1000-7.0_drivers/
I'm actually quite unfamiliar with a command-line other than windows. I'm typing these commands from the "Home Assistant Add-on: SSH server" add on, on HA web portal. I'm stuck at 6:44 from the video. After typing "python --version" I got "bash: python: command not found" so I thought, I don't have python installed. Went further and typed "sudo apt update && sudo apt-get install python3-pip" but I get "bash: sudo: command not found" At this point, I halted and I'm lost. What am I doing wrong?
Did you try Windows upgrade steps from video 20:54? But in order to use Linux, you will need SSH access to machine. SSH server (Terminal & SSH) provides limited access to HA own environment, not direct access to HA.
@@BeardedTinker Thank you for the fast reply! Ultimately, I will do that, but in the meanwhile, I'm trying to learn why is this happening and also trying to do it in "the hard way".
I've edited my answer, so you probably missed it. SSH AddOn is just protected environment that is not full Linux experience. It just allows you to run some limited commands. You would need different Linux machine to do it unfortunately. There are some steps if you want to try, but not that simple: developers.home-assistant.io/docs/operating-system/debugging/#ssh-access-to-the-host
@@BeardedTinker Thank you very much for confirming this. I even already installed SSH & Web Terminal because is less limited, but I was coming to the conclusion that maybe I couldn't do this locally but on a different machine. Lesson of today learned. moving to 20:54 :D Again, thank you for the confirmation! Subscribed!
Hi BT! I am trying to do this on Windows but it doesn't work. My PC does not put it on any COM port at all. Basically, I see it in my device manager as an uninstalled (no drivers) device but I don't even have any "Ports" showing in my computer's device manager. What am I missing? :-(
You probably are missing drivers. www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers In device manager check if there is a device that is not recognised - this should be it.
Great video, thanks for the instructions! Does anyone how you add the router to an existing Deconz instance after flashing? Can't seem to be able for Deconz to pick up the router when searching for new lights.
That's normal AFAIK. In Zigbee2mqtt you see it as unknow device or device with no attributes if I remember correctly. But it should still work even if it is "invisible".
Great video, I was able to flash the Sonoff and add it to HA on my Synology. Unfortunately the installation overwrote my entire HA setup and have to start from scratch again as don't have backup. Not sure what happened since I've remove the container numerous times before and the data has never been deleted.
That's strange. If you have it in Docker, all files are saved locally on disk and deleting or re-creating shouldn't influence it. Maybe you had typo in folder name.
@@BeardedTinker At first I got an error "Bind mount failed: '/volume1/docker/homeassistant' does not exists." My old HA config used "home-assistant" so I changed it to that. Then it said: "The container name "/homeassistant" is already in use by container "2affa...". You have to remove (or rename) that container to be able to reuse that name. So I removed the container, the run was successful, but the data got overwritten. I guess I did something wrong there. Not a huge deal, should not be too much work setting it up like before, just have to remember how to install HACS on synology docker, had issues with that last time.
I don't think that HA can overwrite local data if it already exists... You could check if you have duplicate folder maybe or stacked folder where new one is inside old one.
Thank you for the video. I updated my sonoff coordinator in Windows without issues. However, after updating the dongle HA is no longer able to control any of my 90 zigbee devices. I had flashed a beta firmware, so I re-flashed the released firmware but I am still int he same situation. I tried to re-add a spare sensor and it worked but the devices that were added prior to the upgrade/downgrade are not working. Looks like I will have to rebuild my zigbee network :(
Sorry to hear this and this is not normal. Flashing firmware (if you used that procedure) shouldn't require re-pairing. If you used other tools than you may have possibly unchecked one box (I think it's called keep IEEE address) - that would definitely require re-pairing of devices. So far I've done it dozen of times and never needed to repair.
@@BeardedTinker I followed your flawless process. Someone said that they ran into the same issue and resolved it by power cycling all the routers but I had already reset a majority of mine by the time I saw the comment so I can't confirm. My network is now apparently working fine. Thanks again for the helpful videos you make!
Hi again @BeardedTinker. I need to ask for some advice here: I have around 70 devices in my home from different manufacturers: - IKEA (GU10 Lights, window blind, switch, 3x Range Extender) - OSRAM/LEDVANCE (Motion Sensors, GU10 lights, garden poles) - AQARA (Lots of battery-powered Aqara remote switches, motion sensors, temp sensors, etc.) - MULLER LIGHT (E27 bulbs) - PHILIPS HUE (for outdoors: E27 bulbs + outdoor motion sensor) My house is pretty small (80 sq. m) over 2 floors, made of brick & wood (zero concrete). Some end devices, especially Aqara sensors & switches keep dropping out of the Zigbee network and I need to re-pair them every time. I had this problem with my previous coordinator (Conbee II stick), and I was hoping that the Sonoff dongle will solve this problem but it has not. Do you think it makes sense to get another Sonoff dongle to use as additional router or is it more reliable to add an Aqara hub, and add it to home assistant via HomeKit controller? Would the Aqara end devices connect to the Sonoff as router, or will they still try to get directly to the coordinator anyway?
I've tested Sonoff with router firmware on it with Aqara devices - and new devices that were near it did pair to Sonoff. But I didn't test to see if devices that are already connected to coordinator would transition to it. Roaming/transition from coordinator to other routers is a bit strange in Zigbee network, and it can take a long time for them to try and find optimal/alternative route to coordinator. Or they may never do that. You could possibly end up re-pairing those devices - you don't need to remove them, just start pairing process on them (for Zigbee2MQTT, not sure for ZHA)
@@BeardedTinker After you flash the new dongle with the router firmware, how do you pair the new router with the original coordinator? The Dongle doesn't seem to have any pairing button. Does the coordinator discover it automatically?
is there a way to use, together, the zbdongle-e and the zbbdridge-pro? i've both, the latter came free gift buying 6 trvzb valves, and i already set them up inside ewelink and paired with the bridge... but i can connect the dongle to my minipc which is an other room... is there a way to use one to extend the network of the other one, and in case, which to use to pair and which as mesh member? i'd like to keep the ewelink app because i bought the valves so i can remotely close them when someone is not at home in their rooms... thanks in advance!
There is a way - you could flash router firmware on one of them. That way, as you've mentioned, that one would be used to extend the network - so devices can connect to it if they have better signal. I haven't tested how that works with ewelink app, but Zigbee standard does support that.
@@BeardedTinkernice, found the router firmware for the dongle-e, thanks! As far as i understand, using it this way i don't even need to connect it to the pc, i can plug in any usb psu and that's it, right? same as using whatever mains powered device, which is already a router itself... thanks!
Hi B.T. again a nice video. Do you also have a description of how to backup a zigbee stick (on windows) and restore it to another. This is to have a backup stick for when one get broken.
No, unfortunately, I haven't got it. To be honest, haven't even tried to do backup so far. Will try to see what can be easiest method to do it as there are few ways.
Good video. One question, though: What is the benefit of flashing it? I bought 2 of these, and they just straight up works out of the box (with Z2MQTT)
Sure, you probably missed it in video. Original firmware from Sonoff works, but is limited to around 20 devices maximum. Not just to say that firmware is very old and is missing some improvements. But, if you have less deviecs than the limit, you can use it.
This video was recorded on older Sonoff stick (Plus-P version). Newer one (Plus-E version) has same chip as SykConnect. The only difference is firmware. For E version, it really was not good but you can always flash newer one. BUT you can't use steps from this video to do it. It's completely different procedure. Mine is still running stock firmware (Plus-E stick).
Great video..... i flashed the router firmware that is listed in sonoff manual..... but i cant get aquara sensors conecting to the router.... which firmware did you refer to?
Same as the one where coordinator firmware is. Check video description. github.com/Koenkk/Z-Stack-firmware/tree/master/router%2FZ-Stack_3.x.0%2Fbin Those are also recommended by Sonof. Just go to router folder instead of coordinator.
Hi, my try failed during installation ERROR: Timeout waiting for ACK/NACK after 'Synch (0x55 0x55)'. Not shure what is wrong, I found my stick in "/dev/serial/by-id" and replaced it with stick id in "Command to install firmware - Linux". The only thing I could see before i run the command was that there was no port mentioned in stick id.
Not 100% sure but this could be due to the few reasons. One can be that first trial of the flash failed and now board is missing bootloader. Second thing can be that there is a problem with cable if it's connected via cable. But if the device was missing (no port listed) that can signify also few reasons - worst one that chip is dead. Did you try flashing without opening it? And if yes, did you try to flash it by opening and pressing boot button?
@@BeardedTinker Yes I have tried both methods but does not work, the stick looks different. The reset and bootloader button is in a different location, and someone suggested that there is a new chip on it. Also Smart Home Junkie commented that the method he presents does not work on the new stick. th-cam.com/video/KBAGWBWBATg/w-d-xo.html
Ohh, that's different story :) V2 (E version) requires different tool to upload firmware. You can't use this procedure or tools. I still haven't flashed mine - got it about month ago and it works out of box with Zigbee2MQTT. ZHA can recognise it with stock firmware, but for me it doesn't work. Some say that it also works with ZHA on USB 2.0 port. In version 2022.9 (if not merged sooner) there will be internal support for it. There is a thread on Home Assistant Community on this V2 version of the stick (or E version because of the first letter of the chip) that also covers flashing new firmware.
Excellent video! I'm starting my smart home and I found this video, perfect because I have the NAS synology! Now I need to buy the sonoff dongle, I entered the site to buy it and came across two versions, models P and E, which one is recommended? Thanks!
If you can get P, it would be great. E version also works in Virtual Machine (haven't tried Docker), but it's a bit different, less documented and upgrade procedures for it are not compatible.
Dear BeardedHero I have bought this to replace my CC2531 after I though it was failing on me due to the many updates regarding Zigbee2MQTT. Out of the box I plugged in the device, and I think is now coordinating it as ZHA. Do you always need to flash it to use it in commotion with Zigbee2MQTT?
Hi Ray!!! :) Without flashing it should work with both ZHA and Zigbee2MQTT. BUT original firmware from Sonoff has limit on maximum number of devices even smaller than CC2531 if I remember correctly. And it's very "old" version.
jadahl is down... SynoCommunity also has the drivers, but I'm running DSM 6.2 on a DS920+ (Geminilake), and the geminilake package is missing cp210x... /dev/ttyACM0 is showing up, but not /dev/ttyUSB0
@@BeardedTinker yeah, figured that out a couple days later, but couldn't remember the video to update this. Turns out Sonoff has a second (very subtly different) sku with a different chipset due to the chip shortage, and this one connects as ACM rather than USB. Everything seems to be working fine. It also comes flashed with firmware that can handle all of the devices. I saw a concerning thread about it, but I haven't had any stability issues outside of an Aqara sensor. It turns out Aqara devices aren't fully ZigBee compliant, and they don't play nice with routing devices by certain manufacturers... And they refuse to try and connect to another router even if they lose connection... Forcing connection to compatible routers through the Zigbee2mqtt dashboard did the trick, though. I'm guessing the mqtt/z2m/HA people have sorted out the issues that thread mentioned. Thanks for the videos! Super helpful!
I have some noob question again... I have migrated my HA on RPi from microSD to usb SSD. Everything works fine, just my Sonoff Zigbee dongle started to loose connection with my Aqara door sensors. They become unavailable and now they are impossible to pair again. Any idea why?
Well, hard to say. One question first. Do you have usb coordinator directly plugged to RPi? If yes, please try using usb cable to move coordinator away from RPI. Second is - try replacing battery in Door sensor. Just to be on the safe side. I've never seen them arriving with bad battery but one did die after just few months which was strange as they normally last for year(s)
Thanks for the guide. I just finished setting up sonoff zigbee 3.0 dongle plus for Zigbee2mqtt on my 918+. And I have one question. Currently, the zigbee 3.0 dongle plus is set to HA with Zigbee2mqtt, but doesn't it crash even when nested with ZHA?
Glad you got it working!!! Zigbee2MQTT should crash or ZHA should fail to start if you try and use both of them to access same dongle. That is normal and you should not try and run both of them using the same device. There is always option to use 2 devices/dongles, but there is not added benefit to that.
Unfortunately it is not working for me. I'm trying on Win10 but I cannot go past the "let's find on which port it is" - The command: I cannot find it in the description so it is somehow of a dead end :( - Device Manager: Win10 shows the USB as "other device" because no driver could be found. So no COM displayed (I tried to brute force a handful of port number, but without any success) So I cannot upload the new firmware :(
You should click on unrecognised driver and select install driver. Window should appropriate drivers. If not, you can try to download and install from this link: www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers
getting this error in windowa PowerShell: Opening port COM3, baud 500000 Reading data from CC1352P2_CC2652P_launchpad_coordinator_20240710.hex Your firmware looks like an Intel Hex file Connecting to target... ERROR: Timeout waiting for ACK/NACK after 'Synch (0x55 0x55)'
I haven't used this in a long long time since we now have easier and better ways to flash firmware. If yo're using HA, try th-cam.com/video/E39ECyCXJaA/w-d-xo.html
@@BeardedTinker I got the same error and your new method is also not working as when I add the zigstar to the store it dont show at all no matter how long I waited !!
@@mundhiral-kiyumi8300 This error is usually associated with USB device not being in BSL (some devices require you to press and hold the button on it while connecting device to PC) - or could also be when wrong port is used. Quick Google search gives this: github.com/JelmerT/cc2538-bsl/issues/116 As for ZigStar Addon - if it's not visible immediately, URL could be wrong.
Hello, Really appreciate all the videos and information you share here. :) I had a question. I am new to HA and Zigbee. I have installed HA in a raspberry PI 4. I bough recently this zigbee stick, sonoff but seems that for me it is not connecting to my Tuya hy368 TRV smart valve. I remember you have already poste a video where you use zigbee cc2652rb stick and you were able to successfully connect the valve to zigbee2mqtt. As you already have the sonoff zigbee stick and the tuya smart valve could you test if sonoff zigbee usb dongle plus is able to replace the cc2652rb coordinator and connect to tuya smart valve? I have flashed the sonoff zigbee stick with latest stable firmware and with latest development firmeware but still no success on pairing tuya TRV smar valve to the sonoff zigbee coordnator. Today I noticed that my xiaomi gateway 3 could be used as a zigbee coordinator via an integration "Xiaomi Gateway 3" provided by HACS. I tried ZHA and zigbee2mqtt with using the xiaomi gateway as coordinator. I am able to pair the device to the xiaomi gateway but I can see in zigbe2mqtt it is not supported and the exposes part is empty. As per ZHA it connects but most of the functionalities are desabled by default. I can only change temperature and turn it on and off.
I've given TRV away and don't have it anymore with me, sorry. But if Zigbee2mqtt sees it and says it unsupported, than it could also be a new model that has still not been added. I have one Gledopto video where I've shown how to create custom converter for unsupported device - basic setup only. Try to use this to pull exact model from it. Maybe its a bit different.
I think I got now the logic. My Xiaomi gateway 3 does not support this tuya TRV valve. I checked the integration information and it supports only some tuya switches and buttons. Not the TRV. Now when I deleted ZHA config using Xiaomi gateway as a Zigbee brigde, and configured again ZHA with Sonoff Zigbee dongle, I see the TRV valve appears automatically. The issue is that the configuration is not right and I cannot use it. I read someone was using 2 Zigbee usb dongles one old cc2531 dongle which he connects to HA only to add new devices, and than he switched to sonoff to use as daily driver. That might be a workaround for the moment until Sonoff firmware fixes this, if will ever fix 😁
@@BeardedTinker I will try with creating a custom converter. Many thanks 🙏🏻 I also checked in details the Xiaomi gateway integration page with the information and seems that the xiaomi gateway 3 does support very limited amount of devices and thet is the reason it does show my TRV as unsupported. I have the feeling the custom converter will solve it. Many thanks!
When you say Sonoff firmware - why don't you update it with coordinator firmware that's listed, if you of course haven't done so. My cc2652RB uses same firmware from this page. This is same circuit inside, except Sonoff one also addes no-boot update, that cc2652RB doesn't have. If it's just firmware, that's the easiest part.
@@BeardedTinker Hi again. I already flashed the Sonoff Zigbee usb with firmware 20211217 and later with the more recent development version but did not work for me. Later I learned that when I used my Xiaomi gateway 3 as Zigbee bridge and connected to HA, Z2M, my Xiaomi firmware was old abd was not working well with HA. After upgrading my Xiaomi mi gateway and configuring it as Zigbee bridge with HA and Z2M I was able to successfully connect 3 Zigbee devices I had around and the smart valve. All worked perfectly. That ment my HA, Z2M, and Zigbee devices all work well. After that I connected Sonoff Zigbee usb dongles to my laptop and installed node.js + Z2M and tested it. Again all was working perfectly. Then I just remembered that raspberry pi 4 has a total limit of 1.2 Amper for usb ports. I already have connected one SSD to one of raspberry pi’s usb port and SSD is rated at 1A. The usb dongles states that is rated at 100mA so normally that should work fine. But somehow I was wrong. After testing again with raspberry Pi 4, external SSD, and with external power to my Sonoff Zigbee dongle (through a small hack to raspberry GPIOs) all worked fine. It turned out it was a power issue… 😄
Haven't tested with that one, but it should, with both new and older version of temperature sensor. I've tested with Motion sensors and Door/Window sensors from Aqara and it works great
That's right. Unless you got latest motion sensors, support for the has been added in FW in December. They required a bit of hack to get them going. Other devices should work out of box
The Zigbee2MQTT does not work on my Raspberry Pi with that Sonoff stick. I get the error "502: Bad Gateway" all the time - super frustrating and annoying. I've tried for hours but nothing works for me, every time the same error
@@BeardedTinker It's running of course, but I coulnd't figure out yet why it isn't working. I've reflashed the stick several times, re-installed the add-ons, tried different options in the configuration path etc. but still the same issue.
Stick has nothing to do with Bad Gateway (at least not directly). If everything loads up and starts, you shouldn't see that error. Check in log file of add-on what is last thing that loaded and if there re any errors Latest version of Zigbee2mqtt had changes and should not use YAML files for configuring it.
@@BeardedTinker Yeah, I had that configuration, but didn't work either. But I finally got it running and there are no errors in the logs. Unfortunately I can't add any of my zigbee devices to the Zigbee2mqtt - with ZHA (disabled while running the mqtt) it works properly. Any advices?
Thanks for your video, follow your video, I success install HA in Synology with docker, now I want to install HA in Openwrt(x86_64 J1900) with docker. but I no found usb driver in openwrt. do you know how to do this?
I have a problem with finding the devices port in PowerShell. In Device Manager Dongle is listed under Other devices and not under Ports. Edit: Solved: Needed to download USB drivers (CH341SER)
Hi B.T. I installed Home Assistant on synology (DSM7 DS220+) it can't seem to connect to the dongle 1. No select device from the list In VMM 2. use docker but Synology USB drivers link dead Please refer to synology VMM according to the video, Is there any other prerequisite work to connect to the dongle ? Or there are other suggested Synology USB drivers link PS. I'm not good at English, I'm using a translator Thanks
Jadahal site with drivers should be up - it does go down sometimes. Try in few hours or tomorrow. But also Synology should list this USB stick in VMM Edit page even without drivers. I'm sorry, but currently I don't know of any other way to get it in VM other than that. Did you try second USB port (not sure if 220+ has two).
no luck for me... Getting ERROR: Timeout waiting for ACK/NACK after 'Synch (0x55 0x55)' Most of the troubleshootign guides that I have seen mentioned this is because of the bootloader setting not being enabled, and can be remediated with --bootloader-sonoff-usb, but I'm already using that flag. One thing that is interesting though is that my device isn't under /dev/ttyUSB0, its /dev/ttyACM0, I wonder if that has anything to do with it
I've tried now both using ZHA and zigbee2mqqt - but in both it can't seem to connect to the dongle, even though I can see it in my hardware at ttyusb0?
On RPI you should do nothing more than plugging it in. It should be visible in Supervisor - HW list. From there you should be just able to use +Add integration and configure ZHA. In VMM, after you edit VM and select device from the list, also, in Supervisor you should see it. Nothing else is needed. Unless you used router firmware instead of coordinator firmware. In that case you'll not be able to add it. Device that is plugged has to run coordinator firmware.
@@BeardedTinker Yes, I can see it in the hardware list, but the auto discovered device says Z-wave stick - so I try to manually add ZHA, and I choose the correct hardware, and then choose ZNP as radio type - it waits a bit and then says it can't connect. Same if I try zigbee2mqqt - it says unable to connect to device
Original firmware on P version is a bit buggy, very old (usually there are 4-6 updates per year), some specific devices are not supported and number of devices you can connect directly and via routers was limited (I think it was 30-40 total).
@@BeardedTinker tanks.what I searched, my stick was some newer model, no bootloader button or reset button on motherboard. it was still possible mut was not so simple so I didnt so it. For me it works at the moment and thats enough. maybe someday I try the FM upgrade via jtag.
If you already have Conbee II, stick with it. But if you are planning to buy one or the other, Sonoff has newer hardware, better antenna and lower price. They are both stable, supported and work great, so it all depends if you already have or not.
@@vitorhugoferreira3091 not really sure, but I would try to re-download firmware, just in case wrong version was downloaded or that you didn't download it as text file instead of binary. Other than that, nothing else pops on my mind.
One thing that popped on my mind, slim chance that it is the case, but was any other system trying to access it while you were flashing it? For example Home Assistant, Zigbee2mqtt or similar?
Hey BT you always have such great video's! Thanks. Do you reckon you could do a video on changing a coordinator from CC2531 dev/tty to tty/usb0 and then, following that change from cc2531 to the Sonoff dongle by using the zha-toolkit?
@BeardedTinker oh wise one, I humbly ask for your help. I am young when it comes to home automation so I have trouble finding the path. I have started with infrared signals automating my AC using a raspberry pi zero 2 w and python/lirc. I would like to make use of this small board and step up a notch: play with ZigBee devices. The question for you: do you know of any python solution that can talk to sonoff ZigBee 3.0 USB? An equivalent of lirc for ZigBee... You wise words are much appreciated
Well, me and Python :) Did you have a look at this? github.com/zigpy/zigpy I haven't seen anything similar to lirc for zigbee network so far. MAybe I just missed but still no idea where to point you to.
I try to add sonoff stick to synology, I ssh via powershell to syno, i just download the 'master.zip , but unzip command not work (command not found ) any suggestion ? Looks like my synology not seeing the sonoff stick , any suggestion ? Thanks
Hi! Instead of unzip (if it's not installed), you can use 7x - "7z x" is command to extract. That should work without the need to install unzip. When you connect Sonoff USB, do you see anything when you type "ls /dev/ttyUS*" ? You can also use step I've show in video to install drivers for DSM 6.2 and 7.0
Hello BD ! Thanks for all your great tutorials. Following one of them, I installed Home Assistant on synology as a docker component. In this video, at 17min, you say that you can re-install home assistant. But in that case, I'll lost all my configuration, right ?
Thank you David 😊! No, if everything is installed correctly, all files are located on Synology in /Docker/homeassistant folder. You will just recreate container but keep all local files.
@@BeardedTinker Thanks for your answer. ATM, i do not own that sonoff (but I really will do) and I'm not sure to understand every parts of this video (no your fault, it's mine as i'm not so aware as you are with synology, docker, ha and so on). I'm running synology dsm 6 (on wich I can't have a VM working, don't know why), so the supervisor version of HA isn't installed. Will it be a problem for me ? (hope you understand my bad and poor english...)
@@desmoniac1 VM on Synology is only available officially on some models. Other modes can have VMM running by sideloading it - what model do you have? I think that best way to run HA on Synology is on VM - I have it working on 415+ (it officially doesn't support VM, but it can be installed) and also on 920+ that does support it officially. But, yes, you can also use Docker version, and it should work too. If you have setup HA correctly and on Synology in File Station you can see files in Home Assistant folder, than you can simply delete Docker container for HA and create new one where you use steps from the video and map your USB Zigbee device for Home Assistant to see it. No worries. HA has great community and we will try to help you ;)
@@BeardedTinker really appreciate your answer and help. I'll be back as soon as i'll receive my sonoff zigbee. Then, i'll be able to try to install all that stuff on my testing machine before putting it on my production machine. Many thanks !
@@BeardedTinker Just a quick reply to say that my nas is "almost" a DS3615xs running with an Intel core I3-4130 ;-). What do you mean by sideloading a VMM ???
After some trouble with the prerequisites I've managed to get to the end. Unfortunately I get an error 13 {Errno13]. Any thoughts anyone? I have been trying an googling for more han an hour now but with no resolve.
Hi Kris! At what stage do you get this error? You are using Linux to flask firmware? Errno13 usually is problem with permission. If you haven't try running command with sudo in front of it.
thank you for your reply, it is the very last step of the Linux method. The command that starts with python3 cc2538-bsl.py -p etc etc. I’ll try sudo in front of the command.
One other thing myou can try if it fails. if you are using Zigbee2mqtt stop it or stop Home Assistant if yoinar rising ZHA. Device must not be in use by any other application at the same time
@@Krisdarnok Just wanted to check if you did manage to flash it with "sudo python3 cc2538-bsl.py -p etc etc. " command and also if it fails, did you try stopping other applications that could use it (such as HA, Zigbee2MQTT or similar) to prevent race for port access.
"could not open port /dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_0ab963cbe844ed11ae65c8c90a86e0b4-if00-port0: [Errno 13] Permission denied: '/dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_0ab963cbe844ed11ae65c8c90a86e0b4-if00-port0'", i cant put it in manual bootloader because it says that it cant find device because its not in bootload mode. I tried holding button after connecting, i tried holding button when connecting, of course every time at least 10 sec. No idea...
Glad you managed to sort it out :) BTW did you see latest video on flashing Sonoff devices? Via Add-on? th-cam.com/video/E39ECyCXJaA/w-d-xo.html But still, you need to disable ZHA or Zigbee2MQTT to release the port/device
CC2652P Launchpad is not same as Sonoff Dongle P - not sure if the firmware would work on it. And I've never tested it (launchpad) - I presume there is FW for it and if there is, no reason that it shouldn't work.
I have succesfully flashed version CC1352P2_CC2652P_launchpad_coordinator_20221226 file size is 401KB but last version _20230507 is 497KB @@BeardedTinker
Is it P or E version? Fun fact - Windows 11 doesn't play nicely, no drivers as of yet... I think it's E version and that one uses different chip but also different firmware and procedure. Mine E version is still running stock FW.
@@BeardedTinker Yeah it's the E version thanks! Stuck it in the Pi stock and managing to connect some zb devices with ZHA. Will try this for a bit before trying out Zigbee2MQTT I suppose
everything works great but I got a problem in the beginning so I will share it may help somebody, after following all steps carefully I got timeout error, make sure that the dongle is not added to home assistant integrations before flashing it.
It's the same process, you just need to use different file - instead od file in coordinator folder, use same file in router folder. Everything else is the same. Just make sure that you have some other device as coordinator on your network.
@@BeardedTinker Yes, I have the problem when I go to the github of the router. "Code" does not appear, only "go to file" and "add file".How should I go? Thank you very much
@@BeardedTinker command "pip install pyserial intelhex" is not working in my end. should I continue to the next step or I have to stop right there. I'm scare if I break my device. any help?
@@BeardedTinker when the device is not recognized, a com port is not assigned to it, even when it is properly detected. (As in, it appeared as "Sonoff ZigBee dongle plus" under the unidentified group in device manager) In the end, I decided to forgo the firmware update and just use it in my HA machine as-is. I should have mentioned that I am thankful for the amount of effort put into this video regardless of the misunderstanding I stopped at, so thank you very much
Took me some time to find Powershell command: $comports = Get-WMIObject Win32_SerialPort; $comports |Get-PnpDeviceProperty -InstanceId {$_.pnpdeviceid} -Keyname DEVPKEY_Device_BusReportedDeviceDesc |ForEach-Object { foreach($comport in $comports) {if ($comport.pnpdeviceid -eq $_.instanceid) { new-object psobject -property @{COMPORT = $comport.deviceid; 'Device-Name' = $_.data} } } } I can't add it to video description as YT thinks it's a hack or something :) It should list all devices with port and name.
I got a -P dongle sold on Amazon by somebody in Germany called zonoff an that connot be upgraded to work with HA. It accepts the upgrade ( I did it in windows "pressing the button") It looks like this in HA " /dev/serial/by-id/usb-Silicon_Labs_Sonoff_Zigbee_3.0_USB_Dongle_Plus_0001-if00-port0" both before and after. Any Idea how to get it to work?
That looks like some older version I think... Mine is this: /dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20220622105009-if00 Have to run out now, but will try to find something a bit later.
Did a lot of searching and couldn't find anything useful. Will try to search a bit more. But device name you get is a bit different from all I've seen so far.
HI. I got all the the way to the very end but i get an error in powershell. Can anyone tell me what I'm doing wrong? PS C:\users\user\downloads\script> python cc2538-bsl.py -p COM3 -evw --bootloader-sonoff-usb CC1352P2_CC2652P_launchpad_coordinator_20220219.hex sonoff Opening port COM3, baud 500000 Reading data from CC1352P2_CC2652P_launchpad_coordinator_20220219.hex Your firmware looks like an Intel Hex file ERROR: Firmware is Intel Hex, but the IntelHex library could not be imported. Install IntelHex in site-packages or program your device with a raw binary (.bin) file. Please see the readme for more details. PS C:\users\user\downloads\script> I'm certain I did all the steps including adding the intelhex to python so I'm not sure why it's saying this. Thanks
You could try installing some decencies: pip install pyserial pip install intelhex pip install python-magic That's the only thing that pops in my mind currently.
I allways get an syntax error while trying to flash the stick in Windows Power Shell: ... : PS D:\sonoffStick> python cc2538-bsl.py -p COM7 -evw --bootloader-sonoff-usb CC1352P2_CC2652P_launchpad_coordinator_20220219.hex.hex File "cc2538-bsl.py", line 83 print(message, end=attr, file=sys.stderr) ^ SyntaxError: invalid syntax any Idea ?
I get Opening port /dev/serial/by-id/usb-Silicon_Labs_Sonoff_Zigbee_3.0_USB_Dongle_Plus_0001-if00-port0, baud 500000 Reading data from CC1352P2_CC2652P_launchpad_coordinator_20220219.hex Your firmware looks like an Intel Hex file Connecting to target... ERROR: bytearray index out of range
Hmm - is that older P version or newer E version of Sonoff stick? Looks like P but this error can show-up if using wrong firmware (or if bootloader not active).
for anyone who flashes firmware via linux and gets [Errno 13] Permission denied, you need to grant rw permissions: sudo chmod 666 /dev/serial/by-id/usb-ITead...
I was hoping to flash this thing today on Windows 11, but it doesn't work for me. - I installed the driver for the device, it's on COM5, no errors - I downloaded and installed Python and Intel_Hex - I'm running the command on PowerShell as Administrator and get the following error: PS D:\Downloads\cc2538-bsl-master\cc2538-bsl-master> python cc2538-bsl.py -p COM5 -evw --bootloader-sonoff-usb CC1352P2_CC2652P_launchpad_coordinator_20211217.hex sonoff Opening port COM5, baud 500000 Reading data from CC1352P2_CC2652P_launchpad_coordinator_20211217.hex Your firmware looks like an Intel Hex file Connecting to target... ERROR: Timeout waiting for ACK/NACK after 'Synch (0x55 0x55)' PS D:\Downloads\cc2538-bsl-master\cc2538-bsl-master> Any clues? Thank you so much!
Being persistent I already found out. My Sonoff was not in bootloader mode, I had to do that first (unscrew the case, hold the boot button and plug in the device, wait a few seconds and release the button)
Did you previously flash it. Method here should not need opening it and pressing the button, as it is using comman line flag to activate Sonoff bootloader.
Shouldn't have as this was just added (in firmware uploader tool). Did you use flag for Sonoff and also latest version of the tool? Really interested to see what was the issue as I've flashed dosen of times without the issue...
@@BeardedTinker I followed your instructions completely, so also the flag for Sonoff and all the latest tools. After the errors, I used the Texas Instrument Flash Programmer 2, that worked for me
Thank you so much! This was an extremely helpful guide for flashing the firmware for those of use who use Linux as their daily driver!
Great to hear! Thank you!!!!!
Excellent guide - All I had to do was change the date of the .hex file to the
latest version --> CC1352P2_CC2652P_launchpad_coordinator_20220219.hex Thank you!!!
Thank you Jesse!!! :)
thank you very much , this is the third time you save me, I wasn't able to get my sonoff to work , finally I had to install the drivers. you are the best !!
That's great! Glad you for it working!!!!
This was BY FAR the best video I have found. I can not belive the other videos comparing to this one. It work the first time on the windows method and was not only easier, it was faster. Thank you very much for this video, it solved my issue with getting the dongle into bootloader mode within a minute, rather then the hours of me trying and re-trying.
Thank you! BTW, wait till you see today's video in a few hours. There's an easier way now. If you are running HA OS.
@@BeardedTinker haha damn! Wish I had waited now. But it was easy enough 😉!
If you want suggestions I would like to know how to update zigbee devices without connecting them to native hubs. Such as ikea. Thanks again man! Subscribed now 👀
Do you use ZHA or Zigbee2MQTT? If ZB2MQTT - it's very easy as one of the options is OTA - and when you click check OTA it would go through all devices and search for firmware update and if available it would offer you update option. BUT it's limited to just few manufacturers at this time. IKEA works great, for Tuya and Aqara I haven't seen a single update in years.
@@BeardedTinker i use ZHA! Oh nice! I will Google that and see what I can find out. Thanks for your input!
Thank you for the video. I really had problem to upgrade the firmware with Flash Programmer 2. You made my day!!!
Glad I could help! Have fun with Sonoff Stick!!!
Finally a guide that works !
You have my thanks, clear video
Glad it helped - thank you!!!
Video still really helpful 1 year and more after the publication... thanks a lot
Glad to hear it! Thank you!!!
Hi BT! I'm rather late to join the Home Assistant / Sonoff 3.0 USB ZBDongle-P party. Your video's absolutely sliced many cakes for me. Update: DS1821+ 32GB / Version: 7.1.1-42962 Update 1 / Home Assistant VMM 2CPUs + 4GB / Home Assistant 2022.9.6 Supervisor 2022.09.1 Operating System 9.0 Frontend 20220907.2 - latest. The Sonoff 3.0 USB ZBDongle-P is updated to fw v20220219. When restarting my NAS, the VMM reboots (auto-start) with the ZBDongle-P auto reconnects to the VMM and the Zigbee is in sync / up-and-running in my HA setup. Very happy with the resolution. I hope future updates will only make the use of Zigbee even better. Cheers to you and all the contributors!
Awesome! Really glad to hear when videos help out! :) Enjoy your Home Assistant!!!!
Thank you!! Whilst I obviously (didn't catch on for the first 2hrs HAHAHA) needed to change some details for my own USB, this is the only video I managed to follow and get this done!
Glad I could help! But, did you see this one :) th-cam.com/video/E39ECyCXJaA/w-d-xo.html
Thank you
I managed to update my sonoff device's firmware and install it with zigbee2mqtt (docker installation)
That's great! Glad you got it working!!
Great guide, you did well to cover all of the options. When migrating to the Sonoff I assume that all Zigbee devices need to be repaired but hopefully HA remembers all the entity names.
My Zigbee registrations in HA are a complete mess. I need to learn how to clear out all Zigbee entities (From many different iterations and dongles) and start again with Z2MQTT
There is a way to save everything and also, you can always use same name for devices.
@@BeardedTinker When you upgrade from version x to version y will the connected devices keep working?
Yes, it should have zero impact on devices that are already paired.
Thanks B.T. done the whole Linux thing and it worked a champ first time through without much of an issue. Just needed pip install pyserial and intelhex and done. No need to remove that hard candy shell to get to the boot meat.
Nice! I need to flash latest firmware on it, but that's now very easy to do without a need to open the case 😊👍
Hey man, was struggling with this topic so long time, finally found perfect guide and got it working now ! Keep up this way !
Glad it helped Tomasz! And thanks for the support 😉
thanks! had the repeated failures with the (known) issue with TI programmer. yr video saved me a lot of frustration
Awesome! Glad it helped!!!
Excellent as usual Clear, essential and commented accuracy when necessary
Thank you :)
This is great video. Really like that you cover the different operating systems. Have trouble shooting steps. I have subscribed to your channel and am looking forward to more videos
Thank you Richard!!! Really much appreciated!!
far the best video about this topic
Thank you so much!!!
Great video -- subbed. The only thing people should know, and will figure out quickly when the linux commands dont work, is that they'll need to update the serial ID and the firmware filename assuming the version doesn't match your own. Thanks for a great tutorial
Thanks for the sub and comment! Sometimes I miss things - for example, forgot to mention USB drivers if anyone want's to use that method!
Odličen video! Pozdrav iz Slovenije!
Hvala puno David 😉
Hey BeardedTinker. Thanks for the guide on how to update from linux. Worked perfectly on my proxmox environment :)
Nice, glad you got it working!!!
Wow, just bought the Sonoff Zigbee 3.0 USB dongle and paid $29 on Amazon. Prices have certainly gone up.
They sure did. But probably you got also newer E version, not P that was showcased in video.
Just paid £40 for two from Amazon. Only needed one but I can give the other one to my brother for xmas ;)
yay it worked. I couldn't take the screws out to do it the other way. thanks :-)
Glad it helped!!!
How to add the USB device on existing HA docker installation? I have already done all parts but dont want to create new HA setup :(
Another alternative way to get Home Assistant in Linux is from snap. Some configuration might be needed to get it to connect to USB devices (ie Sonoff Zigbee 3.0 USB dongle)
Thanks for the tip!!!
Hello B.T. As a regular follower, I know how you appreciate feedback about future projects. An idea that occurred to me that is not covered by others is what to do when passwords are lost, particularly when you are the owner. I note HA recommends deleting files from the storage folder in the configuration file but it does not tell you how it's done and what to do next. Getting it wrong can have awful consequences. If you demonstrate how it can be done it would be the definitive video on the subject. It's not a sexy topic but is something that every HA user will face and they'll get a shock when it happens.
That is great idea! Thank you. I'll definitely do video on that.
@@BeardedTinker Thanks, B.T. When you get the opportunity, it would be appreciated.
Thank you for this guide. Very userful.
Glad you like it Josh!!
Thanks for your videos. I had the same problems that you solve in the video, so it will very useful
Great to hear! Tried to cover as much as I can! Thank you for your comment Oscar!!! Much appreciated.
Hello, thank you very much for this detailed instructions.
The tutorial really helped me a lot setting up my Sonoff USB Dongle on my Synology DS220+.
I am sadly facing an issue while setup the Sonoff Dongle with Home Assistant + Zigbee2Mqtt.
I run everything with Docker: Mqtt Broker + Zigbee2Mqtt + Home Assistant
Zigbee2Mqtt alone is working fine, i can find and setup my Zigbee devices in the frontend.
Home Assistant alone is working fine as well, i can see the Sonoff Dongle and pair all my Zigbee devices.
Now the issue:
When Home Assistant is running and i start the Zigbee2Mqtt Docker container then it seems like the Sonoff Dongle disconnects from Home Assistant.
And when Zigbee2Mqtt is running and i start the Home Assistant Docker container then Zigbee2Mqtt gets an error and stops, and Home Assistant is running all fine.
Maybe you guys have an idea what i am doing wrong or what is happening there?
Anyway you could you put a detailed set of directions for setting up the third reality zigbee 3.0 dongle for z2mqtt? Like beginner, no, nothing status
I don't have any Third Reality item so far.
Hallo
Thanks for your perfekt description
I have a Synology DS1621+ with AMD Ryzen V1500B CPU.
Do you now, is there a suitable USB-driver available?
You should check Synology CPU type list - this is V1000 model, so you can use drivers for that: www.jadahl.com/iperf-arp-scan/DSM_7.0/v1000-7.0_drivers/
I'm actually quite unfamiliar with a command-line other than windows.
I'm typing these commands from the "Home Assistant Add-on: SSH server" add on, on HA web portal.
I'm stuck at 6:44 from the video. After typing "python --version" I got "bash: python: command not found" so I thought, I don't have python installed. Went further and typed "sudo apt update && sudo apt-get install python3-pip" but I get "bash: sudo: command not found"
At this point, I halted and I'm lost. What am I doing wrong?
Did you try Windows upgrade steps from video 20:54?
But in order to use Linux, you will need SSH access to machine. SSH server (Terminal & SSH) provides limited access to HA own environment, not direct access to HA.
@@BeardedTinker Thank you for the fast reply! Ultimately, I will do that, but in the meanwhile, I'm trying to learn why is this happening and also trying to do it in "the hard way".
I've edited my answer, so you probably missed it.
SSH AddOn is just protected environment that is not full Linux experience. It just allows you to run some limited commands. You would need different Linux machine to do it unfortunately. There are some steps if you want to try, but not that simple: developers.home-assistant.io/docs/operating-system/debugging/#ssh-access-to-the-host
@@BeardedTinker Thank you very much for confirming this. I even already installed SSH & Web Terminal because is less limited, but I was coming to the conclusion that maybe I couldn't do this locally but on a different machine. Lesson of today learned. moving to 20:54 :D
Again, thank you for the confirmation!
Subscribed!
Thank you, flash worked without problems. 🙂
Good to hear!!
IT WORKED!!! THANK YOU!
Glad it helped! Thanks for comment!!!
Hi BT! I am trying to do this on Windows but it doesn't work. My PC does not put it on any COM port at all. Basically, I see it in my device manager as an uninstalled (no drivers) device but I don't even have any "Ports" showing in my computer's device manager. What am I missing? :-(
You probably are missing drivers. www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers
In device manager check if there is a device that is not recognised - this should be it.
@@BeardedTinker Yes! It worked like a charm. THANK YOU!
Nice! Glad you got it working 😊
@@BeardedTinker Thank you for this post. I had the same problem. Thank you for a great video.
Great video, thanks for the instructions! Does anyone how you add the router to an existing Deconz instance after flashing? Can't seem to be able for Deconz to pick up the router when searching for new lights.
Following up; I can see the router in the VNC view, but it's not showing up in the GUI. It sems to be routing as well.
That's normal AFAIK. In Zigbee2mqtt you see it as unknow device or device with no attributes if I remember correctly. But it should still work even if it is "invisible".
Great video, I was able to flash the Sonoff and add it to HA on my Synology. Unfortunately the installation overwrote my entire HA setup and have to start from scratch again as don't have backup. Not sure what happened since I've remove the container numerous times before and the data has never been deleted.
That's strange. If you have it in Docker, all files are saved locally on disk and deleting or re-creating shouldn't influence it. Maybe you had typo in folder name.
@@BeardedTinker At first I got an error "Bind mount failed: '/volume1/docker/homeassistant' does not exists." My old HA config used "home-assistant" so I changed it to that. Then it said: "The container name "/homeassistant" is already in use by container "2affa...". You have to remove (or rename) that container to be able to reuse that name. So I removed the container, the run was successful, but the data got overwritten. I guess I did something wrong there.
Not a huge deal, should not be too much work setting it up like before, just have to remember how to install HACS on synology docker, had issues with that last time.
I don't think that HA can overwrite local data if it already exists... You could check if you have duplicate folder maybe or stacked folder where new one is inside old one.
Thank you for the video. I updated my sonoff coordinator in Windows without issues. However, after updating the dongle HA is no longer able to control any of my 90 zigbee devices. I had flashed a beta firmware, so I re-flashed the released firmware but I am still int he same situation. I tried to re-add a spare sensor and it worked but the devices that were added prior to the upgrade/downgrade are not working. Looks like I will have to rebuild my zigbee network :(
Sorry to hear this and this is not normal. Flashing firmware (if you used that procedure) shouldn't require re-pairing. If you used other tools than you may have possibly unchecked one box (I think it's called keep IEEE address) - that would definitely require re-pairing of devices.
So far I've done it dozen of times and never needed to repair.
@@BeardedTinker I followed your flawless process. Someone said that they ran into the same issue and resolved it by power cycling all the routers but I had already reset a majority of mine by the time I saw the comment so I can't confirm. My network is now apparently working fine. Thanks again for the helpful videos you make!
Great Video for rasp user want update firmware of Dongle P version with terminal. Thank you
Glad you liked it! Need to do something about E version too :)
Hi again @BeardedTinker. I need to ask for some advice here:
I have around 70 devices in my home from different manufacturers:
- IKEA (GU10 Lights, window blind, switch, 3x Range Extender)
- OSRAM/LEDVANCE (Motion Sensors, GU10 lights, garden poles)
- AQARA (Lots of battery-powered Aqara remote switches, motion sensors, temp sensors, etc.)
- MULLER LIGHT (E27 bulbs)
- PHILIPS HUE (for outdoors: E27 bulbs + outdoor motion sensor)
My house is pretty small (80 sq. m) over 2 floors, made of brick & wood (zero concrete).
Some end devices, especially Aqara sensors & switches keep dropping out of the Zigbee network and I need to re-pair them every time.
I had this problem with my previous coordinator (Conbee II stick), and I was hoping that the Sonoff dongle will solve this problem but it has not.
Do you think it makes sense to get another Sonoff dongle to use as additional router or is it more reliable to add an Aqara hub, and add it to home assistant via HomeKit controller? Would the Aqara end devices connect to the Sonoff as router, or will they still try to get directly to the coordinator anyway?
I've tested Sonoff with router firmware on it with Aqara devices - and new devices that were near it did pair to Sonoff. But I didn't test to see if devices that are already connected to coordinator would transition to it.
Roaming/transition from coordinator to other routers is a bit strange in Zigbee network, and it can take a long time for them to try and find optimal/alternative route to coordinator. Or they may never do that.
You could possibly end up re-pairing those devices - you don't need to remove them, just start pairing process on them (for Zigbee2MQTT, not sure for ZHA)
@@BeardedTinker After you flash the new dongle with the router firmware, how do you pair the new router with the original coordinator? The Dongle doesn't seem to have any pairing button. Does the coordinator discover it automatically?
When you plug it in for the first time after flashing it, it will be in pairing mode. You just need to enable pairing.
is there a way to use, together, the zbdongle-e and the zbbdridge-pro? i've both, the latter came free gift buying 6 trvzb valves, and i already set them up inside ewelink and paired with the bridge... but i can connect the dongle to my minipc which is an other room... is there a way to use one to extend the network of the other one, and in case, which to use to pair and which as mesh member? i'd like to keep the ewelink app because i bought the valves so i can remotely close them when someone is not at home in their rooms... thanks in advance!
There is a way - you could flash router firmware on one of them. That way, as you've mentioned, that one would be used to extend the network - so devices can connect to it if they have better signal. I haven't tested how that works with ewelink app, but Zigbee standard does support that.
@@BeardedTinkernice, found the router firmware for the dongle-e, thanks! As far as i understand, using it this way i don't even need to connect it to the pc, i can plug in any usb psu and that's it, right? same as using whatever mains powered device, which is already a router itself... thanks!
Hi B.T. again a nice video. Do you also have a description of how to backup a zigbee stick (on windows) and restore it to another. This is to have a backup stick for when one get broken.
No, unfortunately, I haven't got it. To be honest, haven't even tried to do backup so far. Will try to see what can be easiest method to do it as there are few ways.
Good video. One question, though: What is the benefit of flashing it? I bought 2 of these, and they just straight up works out of the box (with Z2MQTT)
Sure, you probably missed it in video. Original firmware from Sonoff works, but is limited to around 20 devices maximum. Not just to say that firmware is very old and is missing some improvements. But, if you have less deviecs than the limit, you can use it.
thanks for the great video! but sonoff remains current? I don't know whether to buy it or wait for the new sky connect
This video was recorded on older Sonoff stick (Plus-P version). Newer one (Plus-E version) has same chip as SykConnect. The only difference is firmware. For E version, it really was not good but you can always flash newer one. BUT you can't use steps from this video to do it. It's completely different procedure. Mine is still running stock firmware (Plus-E stick).
Great video..... i flashed the router firmware that is listed in sonoff manual..... but i cant get aquara sensors conecting to the router.... which firmware did you refer to?
Same as the one where coordinator firmware is. Check video description. github.com/Koenkk/Z-Stack-firmware/tree/master/router%2FZ-Stack_3.x.0%2Fbin
Those are also recommended by Sonof. Just go to router folder instead of coordinator.
getting ERROR: int() can't convert non-string with explicit base with the last update
launchpad_coordinator_20230507.hex
any idea??
Not really. I've been using this other tools for updates of all my coordinators/routers for some time - th-cam.com/video/E39ECyCXJaA/w-d-xo.html
Hi, my try failed during installation ERROR: Timeout waiting for ACK/NACK after 'Synch (0x55 0x55)'. Not shure what is wrong, I found my stick in "/dev/serial/by-id" and replaced it with stick id in "Command to install firmware - Linux". The only thing I could see before i run the command was that there was no port mentioned in stick id.
Not 100% sure but this could be due to the few reasons. One can be that first trial of the flash failed and now board is missing bootloader. Second thing can be that there is a problem with cable if it's connected via cable.
But if the device was missing (no port listed) that can signify also few reasons - worst one that chip is dead.
Did you try flashing without opening it? And if yes, did you try to flash it by opening and pressing boot button?
@@BeardedTinker Yes I have tried both methods but does not work, the stick looks different. The reset and bootloader button is in a different location, and someone suggested that there is a new chip on it. Also Smart Home Junkie commented that the method he presents does not work on the new stick. th-cam.com/video/KBAGWBWBATg/w-d-xo.html
Ohh, that's different story :)
V2 (E version) requires different tool to upload firmware. You can't use this procedure or tools.
I still haven't flashed mine - got it about month ago and it works out of box with Zigbee2MQTT. ZHA can recognise it with stock firmware, but for me it doesn't work. Some say that it also works with ZHA on USB 2.0 port. In version 2022.9 (if not merged sooner) there will be internal support for it.
There is a thread on Home Assistant Community on this V2 version of the stick (or E version because of the first letter of the chip) that also covers flashing new firmware.
Excellent video! I'm starting my smart home and I found this video, perfect because I have the NAS synology! Now I need to buy the sonoff dongle, I entered the site to buy it and came across two versions, models P and E, which one is recommended? Thanks!
If you can get P, it would be great. E version also works in Virtual Machine (haven't tried Docker), but it's a bit different, less documented and upgrade procedures for it are not compatible.
Thank you thank you!!! Love you so much!!!!!
Thank you for watching and comment!!!! 😀
Dear BeardedHero
I have bought this to replace my CC2531 after I though it was failing on me due to the many updates
regarding Zigbee2MQTT.
Out of the box I plugged in the device, and I think is now coordinating it as ZHA.
Do you always need to flash it to use it in commotion with Zigbee2MQTT?
Hi Ray!!! :)
Without flashing it should work with both ZHA and Zigbee2MQTT.
BUT original firmware from Sonoff has limit on maximum number of devices even smaller than CC2531 if I remember correctly. And it's very "old" version.
if "pip install pyserial intelhex" doesnt work for you you and its reported as missing, go via "apt install python3-intelhex"
jadahl is down... SynoCommunity also has the drivers, but I'm running DSM 6.2 on a DS920+ (Geminilake), and the geminilake package is missing cp210x... /dev/ttyACM0 is showing up, but not /dev/ttyUSB0
Did you try with using /dev/ttyACM0 ? It could also work...
@@BeardedTinker yeah, figured that out a couple days later, but couldn't remember the video to update this. Turns out Sonoff has a second (very subtly different) sku with a different chipset due to the chip shortage, and this one connects as ACM rather than USB.
Everything seems to be working fine. It also comes flashed with firmware that can handle all of the devices. I saw a concerning thread about it, but I haven't had any stability issues outside of an Aqara sensor. It turns out Aqara devices aren't fully ZigBee compliant, and they don't play nice with routing devices by certain manufacturers... And they refuse to try and connect to another router even if they lose connection... Forcing connection to compatible routers through the Zigbee2mqtt dashboard did the trick, though. I'm guessing the mqtt/z2m/HA people have sorted out the issues that thread mentioned.
Thanks for the videos! Super helpful!
I have some noob question again... I have migrated my HA on RPi from microSD to usb SSD. Everything works fine, just my Sonoff Zigbee dongle started to loose connection with my Aqara door sensors. They become unavailable and now they are impossible to pair again. Any idea why?
Well, hard to say. One question first. Do you have usb coordinator directly plugged to RPi? If yes, please try using usb cable to move coordinator away from RPI.
Second is - try replacing battery in Door sensor. Just to be on the safe side. I've never seen them arriving with bad battery but one did die after just few months which was strange as they normally last for year(s)
Thanks for the guide. I just finished setting up sonoff zigbee 3.0 dongle plus for Zigbee2mqtt on my 918+.
And I have one question. Currently, the zigbee 3.0 dongle plus is set to HA with Zigbee2mqtt, but doesn't it crash even when nested with ZHA?
Glad you got it working!!!
Zigbee2MQTT should crash or ZHA should fail to start if you try and use both of them to access same dongle. That is normal and you should not try and run both of them using the same device. There is always option to use 2 devices/dongles, but there is not added benefit to that.
@@BeardedTinker It only supports one thing. I asked just in case haha. thanks!!
I updated to DSM 7.2.2-72806 and this no longer works... wont load usb driver on start up.
Unfortunately it is not working for me. I'm trying on Win10 but I cannot go past the "let's find on which port it is"
- The command: I cannot find it in the description so it is somehow of a dead end :(
- Device Manager: Win10 shows the USB as "other device" because no driver could be found. So no COM displayed (I tried to brute force a handful of port number, but without any success)
So I cannot upload the new firmware :(
You should click on unrecognised driver and select install driver. Window should appropriate drivers.
If not, you can try to download and install from this link: www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers
getting this error in windowa PowerShell: Opening port COM3, baud 500000
Reading data from CC1352P2_CC2652P_launchpad_coordinator_20240710.hex
Your firmware looks like an Intel Hex file
Connecting to target...
ERROR: Timeout waiting for ACK/NACK after 'Synch (0x55 0x55)'
I haven't used this in a long long time since we now have easier and better ways to flash firmware.
If yo're using HA, try th-cam.com/video/E39ECyCXJaA/w-d-xo.html
@@BeardedTinker I got the same error and your new method is also not working as when I add the zigstar to the store it dont show at all no matter how long I waited !!
@@mundhiral-kiyumi8300 This error is usually associated with USB device not being in BSL (some devices require you to press and hold the button on it while connecting device to PC) - or could also be when wrong port is used.
Quick Google search gives this: github.com/JelmerT/cc2538-bsl/issues/116
As for ZigStar Addon - if it's not visible immediately, URL could be wrong.
Hello,
Really appreciate all the videos and information you share here. :) I had a question. I am new to HA and Zigbee. I have installed HA in a raspberry PI 4. I bough recently this zigbee stick, sonoff but seems that for me it is not connecting to my Tuya hy368 TRV smart valve. I remember you have already poste a video where you use zigbee cc2652rb stick and you were able to successfully connect the valve to zigbee2mqtt. As you already have the sonoff zigbee stick and the tuya smart valve could you test if sonoff zigbee usb dongle plus is able to replace the cc2652rb coordinator and connect to tuya smart valve? I have flashed the sonoff zigbee stick with latest stable firmware and with latest development firmeware but still no success on pairing tuya TRV smar valve to the sonoff zigbee coordnator.
Today I noticed that my xiaomi gateway 3 could be used as a zigbee coordinator via an integration "Xiaomi Gateway 3" provided by HACS. I tried ZHA and zigbee2mqtt with using the xiaomi gateway as coordinator. I am able to pair the device to the xiaomi gateway but I can see in zigbe2mqtt it is not supported and the exposes part is empty. As per ZHA it connects but most of the functionalities are desabled by default. I can only change temperature and turn it on and off.
I've given TRV away and don't have it anymore with me, sorry. But if Zigbee2mqtt sees it and says it unsupported, than it could also be a new model that has still not been added. I have one Gledopto video where I've shown how to create custom converter for unsupported device - basic setup only. Try to use this to pull exact model from it. Maybe its a bit different.
I think I got now the logic. My Xiaomi gateway 3 does not support this tuya TRV valve. I checked the integration information and it supports only some tuya switches and buttons. Not the TRV. Now when I deleted ZHA config using Xiaomi gateway as a Zigbee brigde, and configured again ZHA with Sonoff Zigbee dongle, I see the TRV valve appears automatically. The issue is that the configuration is not right and I cannot use it. I read someone was using 2 Zigbee usb dongles one old cc2531 dongle which he connects to HA only to add new devices, and than he switched to sonoff to use as daily driver. That might be a workaround for the moment until Sonoff firmware fixes this, if will ever fix 😁
@@BeardedTinker I will try with creating a custom converter. Many thanks 🙏🏻 I also checked in details the Xiaomi gateway integration page with the information and seems that the xiaomi gateway 3 does support very limited amount of devices and thet is the reason it does show my TRV as unsupported. I have the feeling the custom converter will solve it. Many thanks!
When you say Sonoff firmware - why don't you update it with coordinator firmware that's listed, if you of course haven't done so. My cc2652RB uses same firmware from this page.
This is same circuit inside, except Sonoff one also addes no-boot update, that cc2652RB doesn't have.
If it's just firmware, that's the easiest part.
@@BeardedTinker Hi again. I already flashed the Sonoff Zigbee usb with firmware 20211217 and later with the more recent development version but did not work for me. Later I learned that when I used my Xiaomi gateway 3 as Zigbee bridge and connected to HA, Z2M, my Xiaomi firmware was old abd was not working well with HA. After upgrading my Xiaomi mi gateway and configuring it as Zigbee bridge with HA and Z2M I was able to successfully connect 3 Zigbee devices I had around and the smart valve. All worked perfectly. That ment my HA, Z2M, and Zigbee devices all work well. After that I connected Sonoff Zigbee usb dongles to my laptop and installed node.js + Z2M and tested it. Again all was working perfectly. Then I just remembered that raspberry pi 4 has a total limit of 1.2 Amper for usb ports. I already have connected one SSD to one of raspberry pi’s usb port and SSD is rated at 1A. The usb dongles states that is rated at 100mA so normally that should work fine. But somehow I was wrong. After testing again with raspberry Pi 4, external SSD, and with external power to my Sonoff Zigbee dongle (through a small hack to raspberry GPIOs) all worked fine. It turned out it was a power issue… 😄
Hey guys! This coordinator and the aquara ZigBee temp/humidity sensors works well together ?
Haven't tested with that one, but it should, with both new and older version of temperature sensor.
I've tested with Motion sensors and Door/Window sensors from Aqara and it works great
Yep, I'm using a few Aqara temp/humidity sensors, and they work fine with this.
@@jeremydean7760 do you need to change the firmware on the Aqara device ? I thoght Aquara devices works with the aquar Hub only.
@@acejoe5996 No firmware flashing needed, at least with ZHA on home assistant. Paired right away with no problems.
That's right. Unless you got latest motion sensors, support for the has been added in FW in December. They required a bit of hack to get them going.
Other devices should work out of box
The Zigbee2MQTT does not work on my Raspberry Pi with that Sonoff stick. I get the error "502: Bad Gateway" all the time - super frustrating and annoying.
I've tried for hours but nothing works for me, every time the same error
Bad gateway error usually pops up when Zigbee2MQTT is stopped/not working...
@@BeardedTinker It's running of course, but I coulnd't figure out yet why it isn't working.
I've reflashed the stick several times, re-installed the add-ons, tried different options in the configuration path etc. but still the same issue.
Stick has nothing to do with Bad Gateway (at least not directly). If everything loads up and starts, you shouldn't see that error. Check in log file of add-on what is last thing that loaded and if there re any errors
Latest version of Zigbee2mqtt had changes and should not use YAML files for configuring it.
Also, do you have this in configuration file for Zigbee2mqtt:
frontend:
port: 8099
@@BeardedTinker Yeah, I had that configuration, but didn't work either. But I finally got it running and there are no errors in the logs. Unfortunately I can't add any of my zigbee devices to the Zigbee2mqtt - with ZHA (disabled while running the mqtt) it works properly. Any advices?
Thanks for your video, follow your video, I success install HA in Synology with docker, now I want to install HA in Openwrt(x86_64 J1900) with docker. but I no found usb driver in openwrt. do you know how to do this?
No go for me :) Drivers need to be compiled for it.
I have a problem with finding the devices port in PowerShell. In Device Manager Dongle is listed under Other devices and not under Ports.
Edit: Solved: Needed to download USB drivers (CH341SER)
Just wanted to answe and seen that you downloaded the driver! Forgot to mention anything about it...
Thanks for the hint - I needed to use CP210x drivers from Silicon Labs for my stick
Maybe a tutorial for flashing the "E" version? You are flashing here the older "P" version :)
For now I'm not planing to do it. I still use CC2652 stick as it's more stable.
Hi B.T.
I installed Home Assistant on synology (DSM7 DS220+)
it can't seem to connect to the dongle
1. No select device from the list In VMM
2. use docker but Synology USB drivers link dead
Please refer to synology VMM according to the video,
Is there any other prerequisite work to connect to the dongle
?
Or there are other suggested Synology USB drivers link
PS. I'm not good at English, I'm using a translator
Thanks
Jadahal site with drivers should be up - it does go down sometimes. Try in few hours or tomorrow.
But also Synology should list this USB stick in VMM Edit page even without drivers.
I'm sorry, but currently I don't know of any other way to get it in VM other than that. Did you try second USB port (not sure if 220+ has two).
Site is back up, so drivers are again available: www.jadahl.com/iperf-arp-scan/DSM_7.0/
@@BeardedTinker 😍
3Q B.T.
no luck for me...
Getting ERROR: Timeout waiting for ACK/NACK after 'Synch (0x55 0x55)'
Most of the troubleshootign guides that I have seen mentioned this is because of the bootloader setting not being enabled, and can be remediated with --bootloader-sonoff-usb, but I'm already using that flag.
One thing that is interesting though is that my device isn't under /dev/ttyUSB0, its /dev/ttyACM0, I wonder if that has anything to do with it
Maybe you should manually put it in bootloader mode. Or try to ask dev on GitHub - he really tried to answer all issues.
Hello, very helpfull video ! nice work. Did this work with the router firmware(with the method 1) ?
Yes it does! I've tested it with router firmware too and works nicely!
@@BeardedTinker thx 😉
It’s work perfectly with router firmware !! Thx a lot ! What a powerfull upgrade for my zigbee network !
It has good range so adding it as router will really help the network!
@@BeardedTinker i add two yesterday and it fix all my issues 👍
Seems that you need to unplug the dongle and insert it again after flashing.
What OS? I didn't need that to make it available. But good to know.
@@BeardedTinker Raspberry Pi 4 on Raspbian. A reboot would have also worked.
I've tried now both using ZHA and zigbee2mqqt - but in both it can't seem to connect to the dongle, even though I can see it in my hardware at ttyusb0?
What is your HW that you are using? Are you using HA OS or docker?
@@BeardedTinker I have two HA, one running OS on a raspberry pi, and one running virtual machine on synology. No luck on eather of them
I aslo tried flashing my sonoff using Flash Programmer 2
On RPI you should do nothing more than plugging it in. It should be visible in Supervisor - HW list. From there you should be just able to use +Add integration and configure ZHA.
In VMM, after you edit VM and select device from the list, also, in Supervisor you should see it.
Nothing else is needed. Unless you used router firmware instead of coordinator firmware. In that case you'll not be able to add it. Device that is plugged has to run coordinator firmware.
@@BeardedTinker Yes, I can see it in the hardware list, but the auto discovered device says Z-wave stick - so I try to manually add ZHA, and I choose the correct hardware, and then choose ZNP as radio type - it waits a bit and then says it can't connect.
Same if I try zigbee2mqqt - it says unable to connect to device
Why would I want to flash this sonoff zigbee 3.0 bridge?
Does it unlock something? mine is stock stick and works fine with zigbee stuff?
Original firmware on P version is a bit buggy, very old (usually there are 4-6 updates per year), some specific devices are not supported and number of devices you can connect directly and via routers was limited (I think it was 30-40 total).
@@BeardedTinker tanks.what I searched, my stick was some newer model, no bootloader button or reset button on motherboard. it was still possible mut was not so simple so I didnt so it. For me it works at the moment and thats enough. maybe someday I try the FM upgrade via jtag.
Nice video, thanks :)
Glad you liked it!
How about this stick vs Conbee II ?
If you already have Conbee II, stick with it. But if you are planning to buy one or the other, Sonoff has newer hardware, better antenna and lower price. They are both stable, supported and work great, so it all depends if you already have or not.
Hi. Great video. Followed your directions but got an error flashing - "ERROR: bytearray index out of range". Any ideia?
At what step you get it - was it Windows or Linux flashing?
@@BeardedTinker Linux flashing.
@@vitorhugoferreira3091 not really sure, but I would try to re-download firmware, just in case wrong version was downloaded or that you didn't download it as text file instead of binary. Other than that, nothing else pops on my mind.
@@BeardedTinker Didn't worked. Thanks anyway.
One thing that popped on my mind, slim chance that it is the case, but was any other system trying to access it while you were flashing it? For example Home Assistant, Zigbee2mqtt or similar?
Hey BT you always have such great video's! Thanks. Do you reckon you could do a video on changing a coordinator from CC2531 dev/tty to tty/usb0 and then, following that change from cc2531 to the Sonoff dongle by using the zha-toolkit?
@BeardedTinker oh wise one, I humbly ask for your help. I am young when it comes to home automation so I have trouble finding the path.
I have started with infrared signals automating my AC using a raspberry pi zero 2 w and python/lirc. I would like to make use of this small board and step up a notch: play with ZigBee devices. The question for you: do you know of any python solution that can talk to sonoff ZigBee 3.0 USB? An equivalent of lirc for ZigBee...
You wise words are much appreciated
Well, me and Python :)
Did you have a look at this? github.com/zigpy/zigpy
I haven't seen anything similar to lirc for zigbee network so far. MAybe I just missed but still no idea where to point you to.
Much appreciated. I will look into it
I try to add sonoff stick to synology, I ssh via powershell to syno, i just download the 'master.zip , but unzip command not work (command not found ) any suggestion ? Looks like my synology not seeing the sonoff stick , any suggestion ? Thanks
Hi! Instead of unzip (if it's not installed), you can use 7x - "7z x" is command to extract. That should work without the need to install unzip.
When you connect Sonoff USB, do you see anything when you type "ls /dev/ttyUS*" ?
You can also use step I've show in video to install drivers for DSM 6.2 and 7.0
@@BeardedTinker nope
Under Vmm usb device is empty too
@@acejoe5996 try in Windows PC to check if stick is working. It should be visible in VM manager no matter what.
@@BeardedTinker yep, i just plugged in and insta visible in the device manager
very usefull, save my day.
Glad to hear that!
Hello BD ! Thanks for all your great tutorials. Following one of them, I installed Home Assistant on synology as a docker component. In this video, at 17min, you say that you can re-install home assistant. But in that case, I'll lost all my configuration, right ?
Thank you David 😊!
No, if everything is installed correctly, all files are located on Synology in /Docker/homeassistant folder. You will just recreate container but keep all local files.
@@BeardedTinker Thanks for your answer. ATM, i do not own that sonoff (but I really will do) and I'm not sure to understand every parts of this video (no your fault, it's mine as i'm not so aware as you are with synology, docker, ha and so on). I'm running synology dsm 6 (on wich I can't have a VM working, don't know why), so the supervisor version of HA isn't installed. Will it be a problem for me ? (hope you understand my bad and poor english...)
@@desmoniac1 VM on Synology is only available officially on some models. Other modes can have VMM running by sideloading it - what model do you have?
I think that best way to run HA on Synology is on VM - I have it working on 415+ (it officially doesn't support VM, but it can be installed) and also on 920+ that does support it officially.
But, yes, you can also use Docker version, and it should work too. If you have setup HA correctly and on Synology in File Station you can see files in Home Assistant folder, than you can simply delete Docker container for HA and create new one where you use steps from the video and map your USB Zigbee device for Home Assistant to see it.
No worries. HA has great community and we will try to help you ;)
@@BeardedTinker really appreciate your answer and help. I'll be back as soon as i'll receive my sonoff zigbee. Then, i'll be able to try to install all that stuff on my testing machine before putting it on my production machine. Many thanks !
@@BeardedTinker Just a quick reply to say that my nas is "almost" a DS3615xs running with an Intel core I3-4130 ;-). What do you mean by sideloading a VMM ???
After some trouble with the prerequisites I've managed to get to the end. Unfortunately I get an error 13 {Errno13]. Any thoughts anyone? I have been trying an googling for more han an hour now but with no resolve.
Hi Kris! At what stage do you get this error? You are using Linux to flask firmware?
Errno13 usually is problem with permission. If you haven't try running command with sudo in front of it.
thank you for your reply, it is the very last step of the Linux method. The command that starts with python3 cc2538-bsl.py -p etc etc.
I’ll try sudo in front of the command.
One other thing myou can try if it fails. if you are using Zigbee2mqtt stop it or stop Home Assistant if yoinar rising ZHA. Device must not be in use by any other application at the same time
@@Krisdarnok Just wanted to check if you did manage to flash it with "sudo python3 cc2538-bsl.py -p etc etc. " command and also if it fails, did you try stopping other applications that could use it (such as HA, Zigbee2MQTT or similar) to prevent race for port access.
Can I just use ESP-Flasher-Windows-x64.exe to flash the hex file ?
No, you can't use it - it's not ESP based device.
"could not open port /dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_0ab963cbe844ed11ae65c8c90a86e0b4-if00-port0: [Errno 13] Permission denied: '/dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_0ab963cbe844ed11ae65c8c90a86e0b4-if00-port0'", i cant put it in manual bootloader because it says that it cant find device because its not in bootload mode. I tried holding button after connecting, i tried holding button when connecting, of course every time at least 10 sec. No idea...
after using sudo i get this "ERROR: Timeout waiting for ACK/NACK after 'Synch (0x55 0x55)'"
Found solution, i had to disable ZHA in HA :)
Glad you managed to sort it out :) BTW did you see latest video on flashing Sonoff devices? Via Add-on? th-cam.com/video/E39ECyCXJaA/w-d-xo.html
But still, you need to disable ZHA or Zigbee2MQTT to release the port/device
Is it possible to flash CC1352P2_CC2652P_launchpad_coordinator_20230507? Hex file is bigger than erlier versions.
CC2652P Launchpad is not same as Sonoff Dongle P - not sure if the firmware would work on it. And I've never tested it (launchpad) - I presume there is FW for it and if there is, no reason that it shouldn't work.
I have succesfully flashed version CC1352P2_CC2652P_launchpad_coordinator_20221226 file size is 401KB but last version _20230507 is 497KB @@BeardedTinker
My dongle is being detected as USB-Enhanced-SERIAL CH9102 instead of the Silicon Labs CP210x -- any ideas why? thanks
Is it P or E version? Fun fact - Windows 11 doesn't play nicely, no drivers as of yet...
I think it's E version and that one uses different chip but also different firmware and procedure. Mine E version is still running stock FW.
@@BeardedTinker Yeah it's the E version thanks! Stuck it in the Pi stock and managing to connect some zb devices with ZHA. Will try this for a bit before trying out Zigbee2MQTT I suppose
everything works great but I got a problem in the beginning so I will share it may help somebody, after following all steps carefully I got timeout error, make sure that the dongle is not added to home assistant integrations before flashing it.
Thank you Ahmed! I think that I also mention that in video - device can't be already in use as it will lock access to it.
@@BeardedTinker ok it's my fault ☺️
@@smartifi_egypt nah, you probably missed it, but great that you managed to get it working - that's the only important thing!!!
Hello, very good video. I did it thank you.
I am interested in flashing as a router with python script, could you make a video? thank you.
It's the same process, you just need to use different file - instead od file in coordinator folder, use same file in router folder. Everything else is the same. Just make sure that you have some other device as coordinator on your network.
@@BeardedTinker Yes, I have the problem when I go to the github of the router. "Code" does not appear, only "go to file" and "add file".How should I go?
Thank you very much
Sorry, I just understood
@@Ad0lf030 great - I'm on mobile phone right now and can't copy the link. So glad you managed to get it 😉
7:05 could you please move? 😀
😱 yeah, I know... But I also add all of the commands down in video description. Easier to copy/past that copy from screen. Sorry for that 😉
@@BeardedTinker I noticed that right after I sent the comment.. haha..
@@BeardedTinker command "pip install pyserial intelhex" is not working in my end. should I continue to the next step or I have to stop right there. I'm scare if I break my device. any help?
Thats needed to communicate with USB stick and without it it will fail. What machine are you running this command on?
@@BeardedTinker macbook pro M1
sudo pip3 install pyserial intelhex
I think you forgot to include "this command" in the video description
th-cam.com/video/iCE5Z43EKpk/w-d-xo.html
Command to check port? Yes, it's not included. You can se that in device manager where it should show you com port and what's on it.
@@BeardedTinker when the device is not recognized, a com port is not assigned to it, even when it is properly detected.
(As in, it appeared as "Sonoff ZigBee dongle plus" under the unidentified group in device manager)
In the end, I decided to forgo the firmware update and just use it in my HA machine as-is.
I should have mentioned that I am thankful for the amount of effort put into this video regardless of the misunderstanding I stopped at, so thank you very much
Took me some time to find Powershell command: $comports = Get-WMIObject Win32_SerialPort; $comports |Get-PnpDeviceProperty -InstanceId {$_.pnpdeviceid} -Keyname DEVPKEY_Device_BusReportedDeviceDesc |ForEach-Object { foreach($comport in $comports) {if ($comport.pnpdeviceid -eq $_.instanceid) { new-object psobject -property @{COMPORT = $comport.deviceid; 'Device-Name' = $_.data} } } }
I can't add it to video description as YT thinks it's a hack or something :)
It should list all devices with port and name.
And I reccomend that you do update.Original FW from Sonoff can be a bit limiting.
@@BeardedTinker You're a good person! Thank you so much!!
Thanks, but maybe don't put your face on the screen over the terminal. Made it harder to follow along.
That's why I also try to put all commands in description too, but thanks, noted for future videos ;)
10 is top
هههههه عنما تتحكمون في جرس المنزل عن بعد يضن الغبياء نهم شباح هههههخهههههههههه
I got a -P dongle sold on Amazon by somebody in Germany called zonoff an that connot be upgraded to work with HA. It accepts the upgrade ( I did it in windows "pressing the button") It looks like this in HA " /dev/serial/by-id/usb-Silicon_Labs_Sonoff_Zigbee_3.0_USB_Dongle_Plus_0001-if00-port0" both before and after. Any Idea how to get it to work?
That looks like some older version I think... Mine is this: /dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20220622105009-if00
Have to run out now, but will try to find something a bit later.
@@BeardedTinker Most grateful.
Did a lot of searching and couldn't find anything useful. Will try to search a bit more. But device name you get is a bit different from all I've seen so far.
@@BeardedTinker Right, I've spent a week now!
HI. I got all the the way to the very end but i get an error in powershell. Can anyone tell me what I'm doing wrong?
PS C:\users\user\downloads\script> python cc2538-bsl.py -p COM3 -evw --bootloader-sonoff-usb CC1352P2_CC2652P_launchpad_coordinator_20220219.hex
sonoff
Opening port COM3, baud 500000
Reading data from CC1352P2_CC2652P_launchpad_coordinator_20220219.hex
Your firmware looks like an Intel Hex file
ERROR: Firmware is Intel Hex, but the IntelHex library could not be imported.
Install IntelHex in site-packages or program your device with a raw binary (.bin) file.
Please see the readme for more details.
PS C:\users\user\downloads\script>
I'm certain I did all the steps including adding the intelhex to python so I'm not sure why it's saying this.
Thanks
You could try installing some decencies:
pip install pyserial
pip install intelhex
pip install python-magic
That's the only thing that pops in my mind currently.
I allways get an syntax error while trying to flash the stick in Windows Power Shell: ... :
PS D:\sonoffStick> python cc2538-bsl.py -p COM7 -evw --bootloader-sonoff-usb CC1352P2_CC2652P_launchpad_coordinator_20220219.hex.hex
File "cc2538-bsl.py", line 83
print(message, end=attr, file=sys.stderr)
^
SyntaxError: invalid syntax
any Idea ?
Check this one: github.com/JelmerT/cc2538-bsl/issues/111
You could have version issue, issue with path or something similar.
@@BeardedTinkerthank you for your fast response! I'll check it out asap.
worked, thx ! :)
Awesome! Have fun with it!
I get
Opening port /dev/serial/by-id/usb-Silicon_Labs_Sonoff_Zigbee_3.0_USB_Dongle_Plus_0001-if00-port0, baud 500000
Reading data from CC1352P2_CC2652P_launchpad_coordinator_20220219.hex
Your firmware looks like an Intel Hex file
Connecting to target...
ERROR: bytearray index out of range
Hmm - is that older P version or newer E version of Sonoff stick? Looks like P but this error can show-up if using wrong firmware (or if bootloader not active).
for anyone who flashes firmware via linux and gets [Errno 13] Permission denied, you need to grant rw permissions: sudo chmod 666 /dev/serial/by-id/usb-ITead...
Thanks for posting this Jerry!
I was hoping to flash this thing today on Windows 11, but it doesn't work for me.
- I installed the driver for the device, it's on COM5, no errors
- I downloaded and installed Python and Intel_Hex
- I'm running the command on PowerShell as Administrator and get the following error:
PS D:\Downloads\cc2538-bsl-master\cc2538-bsl-master> python cc2538-bsl.py -p COM5 -evw --bootloader-sonoff-usb CC1352P2_CC2652P_launchpad_coordinator_20211217.hex
sonoff
Opening port COM5, baud 500000
Reading data from CC1352P2_CC2652P_launchpad_coordinator_20211217.hex
Your firmware looks like an Intel Hex file
Connecting to target...
ERROR: Timeout waiting for ACK/NACK after 'Synch (0x55 0x55)'
PS D:\Downloads\cc2538-bsl-master\cc2538-bsl-master>
Any clues? Thank you so much!
Being persistent I already found out. My Sonoff was not in bootloader mode, I had to do that first (unscrew the case, hold the boot button and plug in the device, wait a few seconds and release the button)
Did you previously flash it. Method here should not need opening it and pressing the button, as it is using comman line flag to activate Sonoff bootloader.
@@BeardedTinker No I didn't! I bought mine a month ago on Amazon, maybe something changed
Shouldn't have as this was just added (in firmware uploader tool). Did you use flag for Sonoff and also latest version of the tool? Really interested to see what was the issue as I've flashed dosen of times without the issue...
@@BeardedTinker I followed your instructions completely, so also the flag for Sonoff and all the latest tools. After the errors, I used the Texas Instrument Flash Programmer 2, that worked for me