Lost All Z-Wave Nodes?

I just experienced a power outage for about 30-45 minutes. When power returned and HASS started up again, my entire z-wave network was gone. HASS is seeing my z-wave stick, but none of the nodes are showing up. The devices themselves are fine, everything still works manually, so I don’t think they all are fried (the battery devices aren’t seen either). The OZW log isn’t showing any errors and no z-wave errors in the log. Is there anyone to get my 50ish devices back without manually adding each one?

Edit: Deleting the bef.xml file seemed to get all my powered devices back, but all my battery powered sensors are showing up as unknown, ala Z-Wave node 15 not ready after 30 seconds, continuing anyway. Any thoughts on getting these back?

Do you have a recent back up of your zwcfg_xxx.xml file? If so, shutdown Hass, replace the file, and restart. That usually does the trick.

1 Like

Yeah, luckily, I did. I went back to my old hass instance and stole it from there. Sensors are now back. Very strange behavior, but glad I was able to get it sorted

This saved me too: restoring the zwcfg_xxx. xml file from the backup.
Anyone knows what might cause this?
Seems to be some kind of configuration writing that do not occur at some point.

A power failure or improper shutdown of the system.

Thank you for the feedback. I would assume, though, what´s written to disk stays on disk, even in the case of power failure…? Meaning in the case of power failure, or a improper shutdown we´ll only loose the last info not written to disk… yet?

I am quite new to virtual machines, but am runnig Ubuntu in VirtualBox.
At what point, except for proper shutdown, can I be sure the disk is written, saving the latest changes?

How will I do a proper shutdown/reboot of the entire VirtualBox, or even the host machine VB is running on?

If you interrupt openzwave while it’s outputting the file to the disk (overwriting the file) you can end up with an incomplete or missing file.

Keep a backup of your last known good configuration and you can just restore if something goes wrong.

I do keep 6 days of config in a backup, and even one version for every month.
Today I learned that replacing the zwcfg_xxx.xml file from the backup file, got all the lost nodes to re-appear. That´s just perfect.

However I have asked in this forum before; where the zwave config is stored, and learned from the answers the only place is in the Aeotec z-stick gen5.
Anyway; It seems like the xml file also includes enough info to re-establish a messed-up z-wave network.