I need to migrate my failing Z-wave stick but first I need to change back to Z-wave JS. I’m trying to follow the instructions but I have not been able to copy the script and backup from my mac to home assistant. I’ve tried scp and mv but my command line knowledge is non-existent and I can’t figure out what I’m doing wrong. Any assistance would be appreciated!
Why. Same functions available in zwavejsui
Eventually it will go away.
It’s not clear what you are trying to accomplish and why you need to migrate to the Z-Wave JS app anyways. But if you want to switch:
You appear to be trying to access a file from your Mac while you’re in a Home Assistant app, which isn’t going to work. You don’t need scp either, it’s never mentioned in the migration guide in fact.
Well, the instructions in the guide are slightly wrong so that doesn’t help. You can just download the migration script directly from the core-ssh add-on with these commands:
cd /tmp
wget 'https://gist.github.com/AlCalzone/eb0947a39a3ff91c053f259f0ac4efc3/raw/69494c1671a04ba81b5ffb6060037ccf02a57fb2/migrate_to_zwave_js_app.sh'
chmod +x migrate_to_zwave_js_app.sh
Then follow the rest of the guide.
Thanks freshcoast, that got the script into HA. Any idea how to get the backup mentioned in the instructions into the /tmp directory?
As for the why, I need to migrate my z-wave adapter because my current one is physically damaged. When using Migrate Adapter it says that it needs to be done in JS, not JS UI.
zwavejsui >> hamburger menu at bottom right of screen >> advanced actions (magic wand icon) >> nvm managment
you can backup current controller then restore to new.
I believe that is what you are wanting to do.
Use the File Editor app. You don’t need to put it in /tmp, it can go anywhere, that’s just an example. Use the File Editor app to upload it to your /config directory for example.
The migration flow is a “wizard” to guide you through NVM backup and restore from one controller to another. I believe this requires a working controller, so if your current one is damaged I don’t think migration is an option (at least I presume, I haven’t done it). In that case, hopefully you already have the NVM backup.
If you have an NVM backup from the old controller, you can go to HA Settings → Z-Wave → Restore from backup (which is the option above “Migrate adapter”). This will let you manually upload and apply an NVM backup. This works even if the ZUI community app is being used, so you don’t have to switch yet if you don’t want to.
Or, you can do it within ZUI as mentioned.
Thanks for all the help. ![]()
I finally got z-wave JS going, jsui removed, and a the new z-wave adapter installed. Last thing to do is change where the HA raspberry pi is located so the kiddos can’t get to it and break it again when they play hide-and-seek on a rainy day.
Keep in mind that moving the controller will greatly impact your zwave network.
You will likely need to rebuild route for some devices. I personally do this on individual devices and not the entire network all together.

