Hi, i switched from a trueNAS version of HA to the HA-Green. I made a backup from my Zigbee2MQTT, but i cant figure out how to restore the backup on the Green. Iam pretty new to the hole thing to i would really appreciate the help.
PS: I only want the Devices back, some of them are installed inside my walls and getting them back out to pair would be a pain.
#restoring Z2M Backup in Homeassistant Green
1 messages · Page 1 of 1 (latest)
Upload it here and do a partial restore.
Hi, thx for the help. Iam not trying to load a backup of homeassistant. I had Zigbee2MQTT running as a standalone service outside of HA. I did a backup of Z2B and now want to restore that inside of HA
I see. I don't know the exact path at the top of my head but you should be able to upload the files into the zigbee2mqtt directory when the addon is stopped. You might have to start it first once so the path is created.
It's either in config or addon_configs.
And how do i upload Stuff there?
Use a SFTP client with the SSH addon or install the SAMBA addon.
Also see: https://www.home-assistant.io/common-tasks/os/#configuring-access-to-files
Thx, ill look into that 🙂
H again. I got it working and managed to upload the database. The devices show up in z2a now, but they got no connection / are not usable. Iam using the same coordinator, shouldnt they just connect now?
Yep. It's possible the addon config overrode some settings. Check they are the same.
I already tried replacing almost any combination of files :/ nothing seems to work
:<
If you use the same coordinator this should be all you need to do: https://www.zigbee2mqtt.io/guide/faq/#how-do-i-move-my-zigbee2mqtt-instance-to-a-different-environment
yeah i follwed that .. since its not working i guess i need to repair 😦
I'd give it one more try. Stop the addon and overwrite file files. You can also check the logs or try to reconfigure via the UI.
I stoped the addon, overwritten the db and coordinator_backup. On restart everything still is offline. The files look fine, the settings seem the same (atleast all i can find in z2m) and the logs have no errors in them.
maybe the version jump is just to much ..
I assume you had more than just these two files?
i do have config, coordiator, db and state. But state doesnt do much and just loading the config breaks on load, with something about the port. I tried putting as much of the info in the config into the new one, but that didnt help either.
What's it say about the port?
I worked it out:
serial:
port: /dev/ttyUSB0
adapter: auto
I needed to delete the adapter and then it worked 🤩 Thank you so much for helping. You can belive how glad iam i dont have to open up all the walls again 😄
You generally want to use a /dev/serial/by-id/... path here. Adapter is more strict/broken? now. Which coordinator do you have?
Iam unsing the ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus
That should be zstack then.
Ok? So i need to switch the port to /dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_.....
and the adapter to zstack?
That should work, yep. The point of the by-id is that the number in /dev/USBx can change similar to /dev/sdX for disks. Not as much of a concern for a single serial device but good practice.
Ah ok, thx for the help again 🙂