Page 1 of 1

[SOLVED] Zwave stick works in OZW but not in zwavejs-ui

Posted: Wednesday 28 February 2024 21:42
by BartSr
Hi !
In cannot get the right way to use Zwave stick Aotec Gen5 in docker.
Before I used the Aotec S2 which went without problems.

The guys of Zwavejs-UI told me that S2 is very old so I bought a newer one from dutch Marktplaats.
So far so good. Optimistic I followed the instructions same as for the S2 stick. But..... docker compose ended up with error:

Error response from daemon: error gathering device information while adding custom device "/dev/serial/by-id/usb-0658_0200-if00-port0": no such file or directory

But "/dev/serial/by-id/usb-0658_0200-if00-port0" is valid if OZW is activated in Domoticz hardware.

So how to solve this strange thing.

-Bart

Re: Zwave stick works in OZW but not in zwavejs-ui

Posted: Wednesday 28 February 2024 21:51
by waltervl
Please post your docker-compose.yml file. Seems something wrong there as it should not mention the real usb port but /dev/zwave

Re: Zwave stick works in OZW but not in zwavejs-ui

Posted: Wednesday 28 February 2024 22:07
by BartSr

Code: Select all

version: "3.7"
services:
  zwave-js-ui:
    container_name: zwave-js-ui
    image: zwavejs/zwave-js-ui:latest
    restart: unless-stopped
    tty: true
    stop_signal: SIGINT
    environment:
      - SESSION_SECRET=mySecretSession
      - TZ=Europe/Amsterdam
    devices:
      - '/dev/serial/by-id/usb-0658_0200-if00-port0:/dev/zwave'
    volumes:
      - ./store:/usr/src/app/store
    ports:
      - "8091:8091" # port for web interface
      - "3000:3000" # port for Z-Wave JS websocket server
I also included the screenshot of working OZW.
And yes, of course I disable OZW in domoticz prior to try start zwavejs-ui

-Bart

Re: Zwave stick works in OZW but not in zwavejs-ui

Posted: Wednesday 28 February 2024 22:43
by jvdz
Why do you have the extra bit "-port0" in the docker composer file? That should be exactly the same name as in domoticz.

Re: Zwave stick works in OZW but not in zwavejs-ui

Posted: Wednesday 28 February 2024 23:22
by BartSr
@jvdz
I updated with your remark but still no well-running docker

Code: Select all

version: "3.7"
services:
  zwave-js-ui:
    container_name: zwave-js-ui
    image: zwavejs/zwave-js-ui:latest
    restart: unless-stopped
    tty: true
    stop_signal: SIGINT
    environment:
      - SESSION_SECRET=mySecretSession
      - TZ=Europe/Amsterdam
    devices:
      - '/dev/serial/by-id/usb-0658_0200-if00:/dev/zwave'
    volumes:
      - ./store:/usr/src/app/store
    ports:
      - "8091:8091" # port for web interface
      - "3000:3000" # port for Z-Wave JS websocket server

Re: Zwave stick works in OZW but not in zwavejs-ui

Posted: Wednesday 28 February 2024 23:49
by hvoorend
I’m also having troubles to get the Aeon zwave gen5 going (or at least cannot get my ZWaveJS-UI to a stable run. It starts, I do see devices coming into the GUI, but after about a minute the full zwavejs-ui container restarts. And over and over again. I am on Buster.
See https://www.domoticz.com/forum/viewtop ... 24&t=42062. Maybe we can share our experiences.

Re: Zwave stick works in OZW but not in zwavejs-ui

Posted: Thursday 29 February 2024 0:10
by waltervl
BartSr wrote: ↑Wednesday 28 February 2024 23:22 @jvdz
I updated with your remark but still no well-running docker

Code: Select all

version: "3.7"
services:
  zwave-js-ui:
    container_name: zwave-js-ui
    image: zwavejs/zwave-js-ui:latest
    restart: unless-stopped
    tty: true
    stop_signal: SIGINT
    environment:
      - SESSION_SECRET=mySecretSession
      - TZ=Europe/Amsterdam
    devices:
      - '/dev/serial/by-id/usb-0658_0200-if00:/dev/zwave'
    volumes:
      - ./store:/usr/src/app/store
    ports:
      - "8091:8091" # port for web interface
      - "3000:3000" # port for Z-Wave JS websocket server
Perhaps put the device line in double quotes " instead of single '

Re: Zwave stick works in OZW but not in zwavejs-ui

Posted: Thursday 29 February 2024 0:19
by waltervl
See https://github.com/zwave-js/zwave-js-ui/issues/3586
If you can see the Zwavejs website on port 8091 click on save in settings.

Re: Zwave stick works in OZW but not in zwavejs-ui

Posted: Thursday 29 February 2024 0:24
by waltervl
After reading some more you probably have the /dev/serial/by-id adress in your Zwave-JS-UI settings. That should be changed into /dev/zwave and then press Save ....

Re: Zwave stick works in OZW but not in zwavejs-ui

Posted: Thursday 29 February 2024 9:03
by jvdz
Ok, now have a look in the ZWJS2M website (8091) and check the config page for the Docker intername port used for the ZWAVE dongle.

Re: Zwave stick works in OZW but not in zwavejs-ui

Posted: Thursday 29 February 2024 9:29
by BartSr
@ waltervl
Perhaps put the device line in double quotes " instead of single '
change didnot make a difference

@jvdz
Ok, now have a look in the ZWJS2M website (8091) and check the config page for the Docker intername port used for the ZWAVE dongle.
see hereunder but in a second a red message appeared telling no stick connected (or some like that)

Re: Zwave stick works in OZW but not in zwavejs-ui

Posted: Thursday 29 February 2024 9:40
by BartSr
I played a bit with zwave serial port. changed /dev/zwave into /dev/serial/by-id/usb-0658_0200-if00. This ended up in failure. Then I reverted to /dev/zwave and now the devices are there.
Lets wait now if it keeps stable as @hvoorend the container kept starting over and over.
Will post results later today (expect if container is stable for some hours it's OK).
-Bart

Re: Zwave stick works in OZW but not in zwavejs-ui

Posted: Thursday 29 February 2024 10:10
by jvdz
BartSr wrote: ↑Thursday 29 February 2024 9:40 I played a bit with zwave serial port. changed /dev/zwave into /dev/serial/by-id/usb-0658_0200-if00. This ended up in failure. Then I reverted to /dev/zwave and now the devices are there.
Good to see you got it working and strange you had to presumably save the "/dev/zwave" again to the config, but that was basically the last warning you got, that it was missing the port config.

Re: Zwave stick works in OZW but not in zwavejs-ui

Posted: Thursday 29 February 2024 14:16
by BartSr
Last to say: thanks to all of you for sharing your knowledge.
-Bart