Ability to reconfigure Z-Wave JS integration to another IP and port

This feature is currently incomplete, in that the option to reconfigure is only available when integration has a functioning connection with an existing zwavejs2mqtt server.
To add to the injury, even when it does, changing it to point to same service (thru another IP) fails with the following error:

“The connected USB device is not the same as previously configured for this config entry. Please instead create a new config entry for the new device.”

Without this feature, in order to migrate zwavejs2mqtt to another server (e.g. a raspberry Pi), someone is forced to either recreate the integration record and re-edit all entity-ids, or maintain an ssh tunnel from the old IP to the new IP.

Try installing the integration a second with the new information. It will overwrite the current settings. Don’t delete the existing one.

Same as step 4 at https://www.home-assistant.io/integrations/zwave_js/#how-do-i-switch-between-the-official-z-wave-js-add-on-and-zwavejs2mqtt

If you think there’s a bug, submit an issue.

2 Likes

The IP address for each instance of the integration is saved in home assistant’s configuration directory in config/.storage/core.config_entries. Look in this configuration file for the domain keys with value equal to zwave_js. Then look for the url key in the same entry.

To modify it, just shut down home assistant, modify the url key’s value to the new IP address of your zwave-js host, then restart home assistant.

Proceed cautiously when editing configuration files in the config/.storage directory (or anwywhere else, for that matter). Make a backup before you start editing.

1 Like

IMO, it’s safer (and faster) to follow the directions I linked to in the docs, versus hand editing files in .storage.