#ZigBee ZHA suddenly stopped working

33 messages · Page 1 of 1 (latest)

analog mirage
#

I woke up this morning to none of my ZigBee devices working after all operating fine with ZHA for over 6 months. I just checked in the integrations page and I'm seeing the following error on the ZigBee integration:

Failed setup, will retry: 'NV item does not exist: <OsalNvIds.CONCENTRATOR_ENABLE: 50>'

I've tried restarting HA, as well as moving the dongle to another usb port, but neither fixes it

daring prawn
#

Sonoff P dongle? Someone may be able to provide more info, but the error looks like it's NVRAM corruption and you'd need to reflash the firmware on the device to resolve. The network would need to be restored from backup.

analog mirage
analog mirage
sour wadi
#

zha does automatic backups of your coordinator, they are stored in the zigbee.db file in the configuration folder so would be in any automated backup. but no need to restore, just reflash the coordinator and plug it in, ZHA will either automatically restore the last backup or you can go through and do it manually.

analog mirage
#

Oh thank gosh that's reassuring

#

How can I reflash the firmware? I never flashed anything on it in the first place. I've found some stuff online but I'm worried it's not for the right dongle
Would this guide be correct?
https://community.home-assistant.io/t/sonoffs-zigbee-3-0-usb-dongle-plus-firmware/420558/81

sour wadi
analog mirage
#

Ah! I am indeed using HAOS. I'll take a look at that addon!

#

Actually I might just use the web flasher

#

Though this is great. My family's HA setup is using the same dongle, so if it also breaks I can use your addon rather than having to fly out to another country

#

Not much luck with the web flasher... Do I have to put it into bootloader mode? It looks like I'll have to take apart the case in order to access the buttons?

sour wadi
#

I've not used the addon. I did add the sonoff bootloader trigger to my addon though.

analog mirage
#

Is it a way to trigger the device to enter bootloader mode without needing to physically hold the button down?

sour wadi
#

to flash the cc2652, you need to have it in bootloader mode. you can do this with the button, or there is a software flow that enables it.

analog mirage
#

Ahh, that's the software flow you added to your tool? The "Enable Bootloader mode with ESPHome" option?

sour wadi
#

no, for the sonoff you would specifically enable this:

analog mirage
#

Or the

Flashing a Sonoff Dongle-P?

Select to enable the bsl trigger for the Sonoff Dongle-P
#

Ahhh ok!

sour wadi
#

usb as well.

analog mirage
#

How do I know which serial port to use?

#

Ah! From the settings -> hardware -> all hardware page

#

Oh! Ok after failing to flash it with ttyS0, now when I check the configuration I can see the device listed!

#

And it looks like that worked!

sour wadi
#

just make sure ZHA is dsiabled as only one thing can access the serial port at a time.

#

awesome!

analog mirage
#

Yep! I disabled ZHA and restarted HA just to be safe

sour wadi
#

cool when you re-enable zha it should start up and take a bit longer to restore the last backup.

analog mirage
#

Ah yep. I was worried as I didn't see zha in my integrations list, but there's a little disabled toggle to see it

#

And working!! My house is back online haha. Thank you so much!!

#

This addon is great