#Sonoff firmware trouble
1 messages ยท Page 1 of 1 (latest)
just to be clear about it; Non-V2 is P and V2 is E?
Yep
age;edition;version;shortpath;path;name;windows driver;
new;E;v2;/dev/ttyACM0;/dev/serial/by-id/usb-ITEAD_SONOFF_Zigbee_3.0_USB_Dongle_Plus_V2_20230221140743-if00;SONOFF Zigbee 3.0 USB Dongle Plus V2, s/n: 20230221140743 - ITEAD;USB-Enhanced-SERIAL CH9102 (COM12);
old;P;;/dev/ttyUSB0;/dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_4cb415d0ada4ed11bf54e8a32981d5c7-if00-port0;Sonoff Zigbee 3.0 USB Dongle Plus, s/n: 4cb415d0ada4ed11bf54e8a32981d5c7 - ITead;Silicon Labs CP210x USB to UART Bridge (COM13);
old = V2 = E
new = P
made this to keep track of it
would this be the correct firmware? old one that is v2 should be E, right? https://github.com/itead/Sonoff_Zigbee_Dongle_Firmware/tree/master/Dongle-E/Router
old one shows up as this in device manage https://i.vgy.me/v1GDoE.png
V2 is the new one and is the E stick
huh?
old and new corresponds to when i got them
i can differentiate them physically because the "old" one has hot glue on it
soo i am able to read the nvram of the new aka P stick with the gw multi tool; but i am unable to do the same with the old aka E stick
Right. The two sticks have different firmware, the multi tool is only for the P stick
which FW should i flash on the P stick? z2m doesnt seem to have docs on it https://www.zigbee2mqtt.io/devices/ZBDongle-P.html
It can't communicate with the E stick for the same reason you can't flash the P stick with the web flasher
Make sure to unzip it first
should i erase before writing? or just write
i dont need to change the iEEE stuff tho, right?
Nope
Now you can try to restore the backup in ZHA, like before ๐
do i need to reflash the normal fw before that?
Which one?
the one you sent earlier on the website
No, you're all set
okay, lemme try restoring
is there a difference wether i choose one over the other here btw? https://i.vgy.me/3zxHHi.png
Migrate only works if you have something plugged in
Re-configure is to "migrate" if you have only one adapter
Migration has to reset the old adapter, which is why there is a separate button.
gotcha
Yours was already reset when the migration half worked so you just re-configure
What's in the log?
2024-05-22 01:31:30.669 ERROR (MainThread) [aiohttp.server] Error handling request
...
File "/usr/src/homeassistant/homeassistant/components/zha/config_flow.py", line 769, in _async_create_radio_entry
await self.hass.config_entries.async_setup(self.config_entry.entry_id)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1726, in async_setup
raise OperationNotAllowed(
homeassistant.config_entries.OperationNotAllowed: The config entry SONOFF Zigbee 3.0 USB Dongle Plus V2, s/n: 20230221140743 - ITEAD (zha) with entry_id 59ee77922cec06602094883ec9eba639 cannot be setup because is already loaded in the ConfigEntryState.SETUP_IN_PROGRESS state
Looking better, that's not a problem with the adapter
I think ZHA may have tried to re-connect to the old stick in the middle of the migration, which is a bug :/
Try it once more, should work
from the beginning? or just click submit again?
Submit
had to select the backup json again but now its loading
yeah nah it just hates me
Hmm. It could be that the broken migration from before is preventing it from properly migrating now
Try to reload HA Core, ZHA should be in a failed state (since your adapter is missing) and you can try the re-configure flow one more time
just for your information it was the same exception
homeassistant.config_entries.OperationNotAllowed: The config entry SONOFF Zigbee 3.0 USB Dongle Plus V2, s/n: 20230221140743 - ITEAD (zha) with entry_id 59ee77922cec06602094883ec9eba639 cannot be setup because is already loaded in the ConfigEntryState.SETUP_IN_PROGRESS state
will try reloading
reload core means normal restart without reboot? or just yaml reload
Normal restart without reboot
Yep
If you keep the -E stick plugged in, ZHA will just start up normally and keep using it
the E stick should get the firmware you sent earlier, right? the gbl file
The E stick should have that firmware installed, no?
it wasn't showing up in the online flasher in the meantime, thats why i was concerned it bricked
its showing up now and i would like to re-install the fw just to be sure
You can if you want, it shouldn't make any difference
it's installing rn, just to be sure
is this also NVRAM? or is the firmware layout on the E variant different
so the NVRAM of the P variant is the equivalent of the firmware of the E variant? just different things but all pretty much firmware
new stick seems to have just been automatically added after the restart https://i.imgur.com/C4MDfwT.png
should i restore settings anyway?
Do any devices work?
it seems to have pretty much all devices but most of them are red https://i.vgy.me/0YBPe6.png
NVRAM is non-volatile storage. It basically just means "settings". Your P stick got broken in such a way that the only way to recover it was to completely erase it re-flash new firmware
AHH thanks for clearing that up. makes sense now
The E stick doesn't have this problem. The firmware you flashed earlier just had a modification to enable the remote you were using to communicate with the stick
It didn't work ๐
the restore? or the modification for the remote
No, the firmware modification test ๐
ah lul
I would give your network 10 minutes and see what devices work. If none are communicating, re-configure and restore that backup JSON you downloaded.
just want you to know that i now have the NEW stick in HASS for zha, the old one is unplugged for now
before i had the new one for the testing with z2m
so it didn't get the devices back so im restoring now https://i.vgy.me/stkGYI.png
after fully reverting to the oldest config i got everything back https://i.vgy.me/FzC4yS.png
just cant get my remote working still xD
1 step forward 1 step back
Not even with the P stick?