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

For Z-Wave related questions in Domoticz

Moderator: leecollings

Post Reply
BartSr
Posts: 365
Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.7
Location: Netherlands
Contact:

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

Post 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
Last edited by BartSr on Thursday 29 February 2024 14:17, edited 1 time in total.
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
User avatar
waltervl
Posts: 5363
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

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

Post 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
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
BartSr
Posts: 365
Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.7
Location: Netherlands
Contact:

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

Post 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
Attachments
ozw.jpg
ozw.jpg (28.74 KiB) Viewed 2498 times
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
User avatar
jvdz
Posts: 2206
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

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

Post 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.
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
BartSr
Posts: 365
Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.7
Location: Netherlands
Contact:

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

Post 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
Attachments
docker2.jpg
docker2.jpg (69.71 KiB) Viewed 2481 times
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
hvoorend
Posts: 32
Joined: Sunday 01 March 2020 13:18
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.2
Location: Netherlands
Contact:

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

Post 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.
Raspberry Pi 2
Raspbian Bookworm
Aeon zStick Gen5 fw 1.0
RFXCOM USB
Domoticz 2024.2
User avatar
waltervl
Posts: 5363
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

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

Post 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 '
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
waltervl
Posts: 5363
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

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

Post 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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
waltervl
Posts: 5363
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

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

Post 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 ....
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
jvdz
Posts: 2206
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

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

Post 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.
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
BartSr
Posts: 365
Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.7
Location: Netherlands
Contact:

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

Post 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)
Attachments
zwave2.jpg
zwave2.jpg (41.26 KiB) Viewed 2434 times
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
BartSr
Posts: 365
Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.7
Location: Netherlands
Contact:

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

Post 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
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
User avatar
jvdz
Posts: 2206
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

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

Post 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.
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
BartSr
Posts: 365
Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.7
Location: Netherlands
Contact:

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

Post by BartSr »

Last to say: thanks to all of you for sharing your knowledge.
-Bart
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests