Connect Z-wave JS with HomeAssistant using Docker synology NAS

Hi All,

I am using my synology NAS for running my HA container and Z-wave JS container. I can connect to both UI’s however in home assistant I can not integrate with Z-wave JS.

I used the standard HA docker container edition as provided by Synology. Unfortunately I can not use the VM option.

I am using the Z-stick -7 as USB in my synology nas. I can see activity using the z-wave ui. So it looks like the USB is configured ok.

Further more I did all the steps freshcoast recommended in Z-Wave JS to Z-Wave JS UI migration - #3 by manutech.

The configuration yaml file contains the following:

zwave_js:
  usb_path: /dev/ttyUSB0
  network_key: "+++++++++++"  
  url: "ws://192.168.17.19:3000"
  url: "wss://192.168.17.19:3001"
http:
    use _x_forward_for : true
    trusted_proxies:
        - 172.17.0.0/16
hacs:
  enable: true

# Loads default set of integrations. Do not remove.
default_config:

# Load frontend themes from the themes folder
frontend:
  themes: !include_dir_merge_named themes
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

=========
As you can see I even tried HACS to integrate Z-Wave JS.

Seems that I am stuck. Any ideas are welcome.

I do this on Synology, run an HA containers and a zwavejs container.

It appears you are partially on the wrong path.

Step 1 verify you can login to the zwavejs UI using

192.168.17.19:8091

Does that work and do you have zwave devices? I ask that because Synology does not ship with the USB drivers for a Gen7 stick, and so you may have some stuff to do to get this working.

Step 2: delete that stuff out of configuration.yaml and restart. Go into settings / integrations and add the zwave integration, when it asks you for the URL type in

ws://192.168.17.19:3000/

If that fails to connect you probably have an issue with your firewall.

Hi PeteRage,

Yes I can connect to the Z-wave js ui and it shows an active usb stick

However when I want to integrate Z-wave in HA using poort 3000 I still get an error

It seems indeed that I have firewall issues. Any suggestions how to validate?
Thx

Both HA and zwavejsui are in docker on the same host?

You don’t connect using host IP you should connect using container_hostname:port

EDIT
If containers are on same host the firewall has nothing to do with this. Docker uses its own networks that never touch your LAN. You should not be connecting containers on same host using local LAN. If containers are in different hosts the YES, maybe firewall but I doubt it and this can be checked by pinging host to host

I’d start by turning off the firewall and see if that works.