Recover ZHA network after flashing radio?

Hey,
I decided to re-flash my elctro lama ZZH zigbee radio ( based on CC26X2R1) to a newer firmware to hopefully resolve some reliability issues. Unfortunately I didn’t realise there was critical state in the radio itself. After flashing, the coordinator is offline in HA and no zha devices respond. The HA logs are full of Status.NWK_NO_ROUTE and Status.MAC_NO_ACK. The radio works verified by running the zigpy_znp energy scanner.

However on startup the scanner output this line, which made me realise the gravity of my mistake:

2021-02-16 00:14:47 mercury zigpy_znp.zigbee.application[2925637] INFO ZNP is not configured, forming a new network

New Network??? NOOOOOO! :astonished: :astonished: :grimacing: :grimacing: :dizzy_face:

Is there any hope of recovering the network? Or am I going to have to repair every device? (Non trivial as lots of them are ceiling spots that must be individually swapped into a lamp to reset). I took a backup of the now mostly empty radio via zigpy_znp.tools.nvram_read, can I modify that, insert the old network id, write it back and hope for the best? Or is there state for every individual device that was added to the network?

I still have backups of zigbee.db

Any assistance appreicated.


Hugh Saunders

you may want to try discord where puddy who worte and maintains zigpy-znp is sometimes. he will know for sure if there is any hope. Unfortunately the -e in the firmware update command is erase.

1 Like