Z-Wave JS UI devices working but not accessible in Home Assistant

I am almost completely migrated Home Assistant across from Home Assistant on a VM to Home Assistant green.

I saved the config of Z-Wave JS UI as a backup copied it to Home Assistant Green and restored it and everything came back up and I can turn on and off devices in the Z-Wave JS UI but cannot seem to access them in Home Assistant itself ie Automations.

There is something obvious here I have missed but I cannot find it - anyone any ideas?

If you’re like me you have an alert in Integrations on Z-Wave. I had the Z-Wave JS UI installed, all my keys setup, but I forgot to uncheck the default setting to use Z-Wave JS, and I also did not change my url to ws://a0d7b954-zwavejs2mqtt:3000.

Configure this:
image

1 Like

Did you migrate by doing a full backup of the HA installed on the VM and then restore that full backup on the new HA Green? Or did you do a partial backup and only save the Z-Wave JS UI and only restore that on the new device? If you didn’t migrate everything together then that would most likely be the reason your automations are not working. Check the device IDs for your z-wave devices and compare them to the what the automations are using. Your z-wave devices might have been assigned new device ID’s and if they were then you’ll have to update the automations with them.

Thanks for reply, very much appreciated!



Hopefully tells the tale….

All zwave devices are controllable inside the z-wave JS UI.

But

I cannot find the 28 devices in Home Assistant Devices or in Automations.

I cannot find the zwave icon in my install that you reference only the z-wave JS UI in Add-ons not in integrations.

Any ideas?

I found instructions on these forums.

Backed up z-wave is ui, copied tar file to backups on Home Assistant Green.

Restored z-wave is ui.

All came up nicely, everything working inside the js ui page but not detectable anywhere in Home Assistant Devices or Automations.

Something obvious I missed but not getting anywhere to enable automations, I have been using ws maybe I should get it onto the MQTT broker on the Home Assistant Green ?

The problem was you set the WS server host when you should not have.

That’s an IP address for the websocket server to listen on. It should never be set when using the add-on.

And if you have never installed the Z-Wave integration (not add-on) since your restore, you will have nothing in HA until you install it.

https://github.com/hassio-addons/addon-zwave-js-ui/blob/9221e86f0551717ee95ba8cd819d1ff7d9e72550/zwave-js-ui/DOCS.md#installation

Ok thanks.

I have removed the ws server config as indicated.

So looked for z-wave JS (not add on) in integrations.


Not sure if this is the right one, I did not use Home Assistant Add ons , I used Home Assistant integrations, but the integration is called z-wave us supervisor add-on.

As part of the install you have to set z-wave js ui config to disable z-wave.

Setting up z-wave us supervisor add-on I chose the z-wave controller port, and pasted the keys in.

It went off and it found my z-wave devices.

Unfortunately I cannot control any of them.

I am sorry but completely lost here.

I just want to use the zwave controller and control the z-wave devices.

I can see and control them in z-wave js ui add on, but cannot do any Home Assistant automations.

But if I then install the integration that is not add on, z-wave js which is called z-wave js supervisor add-on, I can see 25 devices but no information, names, and cannot control them anywhere.

I’ll disable z-wave js, re-enable z-wave js ui and see if I can get the MQTT working so I can at least automate using node Red.

This link I posted is the add-on documentation, which is also accessible from the add-on page. In that documentation are explicit instructions that tell you how to install the integration. Please take a look at the add-on documentation, as it would have saved you this headache.

At this point will need to uninstall the Z-Wave integration, make sure the core add-on is deleted, and probably restart Z-Wave JS UI. Then install again according to the instructions to use ZUI.

Thanks

Wiped zwave and Addons and Integrations.
Hard Reboot of Home Assistant starting over again.

Home Assistant Community Add-on Z-Wave JS UI

Sorry missing some fundamentals - I need the ZWAVE JS UI Add on but not the add on.

Don’t install the add on but install the add on - I know it is frustrating and sorry for being such a noob here.

On other Home Automation systems I have used you enable ZWAVE and off you go.

I am struggling with Integrations that are Add-Ons and Add-Ons that are applications.

I can see Zwave as an Integration AND as a ADD-ON.

While nice to spoilt for choice …

So given you have kindly pointed directly to the ‘Home Assistant Community Add-on: Z-Wave JS UI’ I am starting from scratch and installing that.

(struggling with

And the integration you point me to is called an Add-on
“Home Assistant Community Add-on: Z-Wave JS UI”.

Ok so

  1. Installed the from the link Home Assistant Community Add-on: Z-Wave JS UI
  2. Opened the the Z-Wave JS interface/Went to Settings/Z-Wave - selected the Zwave device
  3. Entered the Security keys (copied from other Home Assistant install) - Saved it
  4. Installed Z-Wave using +Add Integration
  5. UNCHECKED the box to use the add-on
  6. Entered ws://aod7b954-zwavejs2mqtt:3000 (as instructed) pressed Submit
    ![Screenshot 2024-11-28 at 11.54.22 AM|404x275]

(upload://AaJOQTHvAFB8hm6eRIUpRMF2q4J.png)

Stalled at that point.

Now what you appeared to say earlier on ion the thread was

But that contradicts you later instructions

https://community-assets.home-assistant.io/original/4X/9/6/4/9643b0d5adb42cda9980ed3b213a0a0d2544c798.png

Tried NOT Setting it and I get
Screenshot 2024-11-28 at 12.08.53 PM

So have left that web session while I try to locate a valid URL because it won’t accept ws://aod7b954-zwavejs2mqtt:3000

Leaving that session open, opened another to the Home Assistant Green

Checked the Z-Wave JS UI and all my devices are being found and is in the process of interviewing them - just lost all the names and locations.

I will hold off Restoring the Z-Wave JS UI backup for the moment until I can find the URL for the ws.

So if I understand this correctly…

You install the

  1. Home Assistant Add-On Z-Wave JS UI
  2. Select the OPEN WEB UI
  3. Go to the Settings
  4. Z-Wave - check box to enable
  5. Select the Zwave controller from the drop down list for Serial Port
  6. Either copy the Security keys from previous install OR generate new Security Keys
  7. No other settings required
  8. Go to Home Assistant Settings/ Devices & Services
  9. Add Z-Wave Integration
  10. You will be asked to use the Add-on you UNCHECK the box and it will install the add-on
  11. Next it will ask you to enter the url of the WS Server enter ws://aod7b954-zwavejs2mqtt:3000 and it should then work

So just step 11 I am stuck on right now

SOLUTION!!!

Could not get the Z-Wave integration working at all with the documented config of setting WS Server to ws://aod7b954-zwavejs2mqtt:3000 so in the end had to cancel out of the install.

What did work was

Having already installed Z-Wave JS UI and got it working - it found all the devices had just lost their Names and locations.

  1. Stopped the ZW HS UI.
  2. Restored the Backup I had made of ZW JS UI into the new Home Assistant
  3. Started ZW JS UI

It was not starting so checked the ZW JS UI logs and saw it was trying to connect to the local MQTT and being rejected by the MQTT Broker.

I could get access to the ZW JS UI Settings - it wouldn’t start, could not find a YAML file for it so

Went to the MQTT Broker and added in the Configuration page - Edit in YAML, anonymous: true to the config.

Restarted the MQTT Broker and ZW JS UI and BINGO all came back up and running AND available in Home Assistant Devices and Automations!!!

Need to create a new user in Home Assistant for the ZW JS UI MQTT client then remove Anonymous from the MQTT broker and add the user in the ZW JS UI Settings/MQTT settings.
But up and running and many many thanks to everyone here for helping out - VERY much appreciated.

That’s what you just experienced actually, by installing the integration and core add-on. But your original post was starting with Z-Wave JS UI community add-on so that’s what the offered help was for.

I am struggling with Integrations that are Add-Ons

There is no such thing. Add-ons can provide something that HA integrates with, but don’t provide the actual integration software. Here are some references to familiarize yourself with some of the concepts:

But that contradicts you later instructions

There was no contradiction given. The “Server Host” setting in ZUI is an IP address to bind the websocket server. By default it’s “0.0.0.0” or all IPs. In the context of an add-on, setting this will render the websocket server unusable. The URL format used is just completely invalid.

ws://aod7b954-zwavejs2mqtt:3000 is the wrong URL! I sure hope you weren’t trying to use that. Just copy and paste the correct one from the documentation to avoid transcribing errors.

Glad you have something working, but now you are using MQTT instead of the recommended Z-Wave integration. Just remember to include this information if you need any future help because most people will assume the latter, and solutions to your problems will be different.

1 Like