UZB1 works on z-wave.me but not zwavejs

Nightmare

I installed z-wave.me but what an overkill. I only have and want a zwave boiler switch. zwave so much hassle. So yes my UZB1 controller is working and works with z-wave.me

But

I uninstalled z.wave-me and rebooted and ensured all the services were deleted and there were not process attached to the controller or ports. All good.,

I set about installing the zwavejs2mqtt client which is all I need. I run it in docker - just like last time - but it’s not detecting my controller at /dev/tty/ACM0. I also of course tried /dev/serial/by-id/usb-0658_0200-if00 …

root@PI:~/Docker/zwave # ls -l /dev/serial/by-id/usb-065_0200-if00
lrwxrwxrwx 1 root root 13 Oct 14 18:35 /dev/serial/by-id/usb-0658_0200-if00 -> ../../ttyACM0

but that did not help.

Output from the docker …

root@PI:~/Docker/zwavejs # docker-compose up
Pulling zwavejs2mqtt (zwavejs/zwavejs2mqtt:latest)...
latest: Pulling from zwavejs/zwavejs2mqtt
3760b48202b3: Pull complete
8bf6ac4eb464: Pull complete
39e239d46190: Pull complete
f1143f7e0a3d: Pull complete
985d02823ea9: Pull complete
7aa5deeae5af: Pull complete
4f4fb700ef54: Pull complete
Digest: sha256:4d06e3561dc7788090effa77c6dcc2e69e962ceff41986e1d4373b008bff3ff1
Status: Downloaded newer image for zwavejs/zwavejs2mqtt:latest
Creating zwavejs2mqtt ... done
Attaching to zwavejs2mqtt
zwavejs2mqtt    | 2023-10-14 17:52:17.870 INFO APP: Version: 9.1.2.a13a720
zwavejs2mqtt    | 2023-10-14 17:52:17.892 INFO APP: Application path:/usr/src/app
zwavejs2mqtt    |   ______  __          __                      _  _____     _    _ _____
zwavejs2mqtt    |  |___  /  \ \        / /                     | |/ ____|   | |  | |_   _|
zwavejs2mqtt    |     / /____\ \  /\  / /_ ___   _____         | | (___     | |  | | | |
zwavejs2mqtt    |    / /______\ \/  \/ / _' \ \ / / _ \    _   | |\___ \    | |  | | | |
zwavejs2mqtt    |   / /__      \  /\  / (_| |\ V /  __/   | |__| |____) |   | |__| |_| |_
zwavejs2mqtt    |  /_____|      \/  \/ \__,_| \_/ \___|    \____/|_____/     \____/|_____|
zwavejs2mqtt    |
zwavejs2mqtt    | 2023-10-14 17:52:17.969 WARN STORE: settings.json not found
zwavejs2mqtt    | 2023-10-14 17:52:17.990 WARN STORE: scenes.json not found
zwavejs2mqtt    | 2023-10-14 17:52:18.129 INFO APP: Listening on port 8091 host 0.0.0.0 protocol HTTP
zwavejs2mqtt    | 2023-10-14 17:52:18.347 WARN BACKUP: Store backup is disabled
zwavejs2mqtt    | 2023-10-14 17:52:18.350 WARN BACKUP: Nvm backup is disabled
zwavejs2mqtt    | 2023-10-14 17:52:18.362 WARN Z-WAVE: Z-Wave driver not inited, no port configured
^CGracefully stopping... (press Ctrl+C again to force)

and the docker-compose.yaml

version: '3.1'
services:
    zwavejs2mqtt:
        container_name: zwavejs2mqtt
        image: zwavejs/zwavejs2mqtt:latest
        restart: always
        tty: true
        stop_signal: SIGINT
        environment:
            - SESSION_SECRET=mysupersecretkey
            - ZWAVEJS_EXTERNAL_CONFIG=/usr/src/app/store/.config-db
            # Uncomment if you want log times and dates to match your timezone instead of UTC
            # Available at https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
            #- TZ=America/New_York
        networks:
            - daz_docker_network
        devices:
            # Do not use /dev/ttyUSBX serial devices, as those mappings can change over time.
            # Instead, use the /dev/serial/by-id/X serial device for your Z-Wave stick.
            - '/dev/ttyACM0:/dev/zwave'
        volumes:
            - /opt/z-wave-js/:/usr/src/app/store
        # Or by using local folder
        # - ./store:/usr/src/app/store
        ports:
            - '8091:8091' # port for web interface
            - '3000:3000' # port for Z-Wave JS websocket server
networks:
    daz_docker_network:
        external: true

YES I know the mqtt client has been superseded but it worked. I did try zwavejsui (the newer version) but to no avail.

Is there something I can do to debug the comms with the controller other than…

root@PI:~/Docker/zwavejs # lsusb -tv
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/5p, 480M
        ID 0424:9514 Microchip Technology, Inc. (formerly SMSC) SMC9514 Hub
        |__ Port 1: Dev 3, If 0, Class=Vendor Specific Class, Driver=smsc95xx, 480M
            ID 0424:ec00 Microchip Technology, Inc. (formerly SMSC) SMSC9512/9514 Fast Ethernet Adapter
        |__ Port 4: Dev 14, If 0, Class=Communications, Driver=cdc_acm, 12M
            ID 0658:0200 Sigma Designs, Inc. Aeotec Z-Stick Gen5 (ZW090) - UZB
        |__ Port 4: Dev 14, If 1, Class=CDC Data, Driver=cdc_acm, 12M
            ID 0658:0200 Sigma Designs, Inc. Aeotec Z-Stick Gen5 (ZW090) - UZB
root@PI:~/Docker/zwavejs # dmesg|grep tty
[    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_headphones=0 snd_bcm2835.enable_headphones=1 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_hdmi=0 video=Composite-1:720x480@60i vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=tty1 root=PARTUUID=276bc44d-02 rootfstype=ext4 fsck.repair=yes rootwait
[    0.001380] printk: console [tty1] enabled
[    3.213780] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 99, base_baud = 0) is a PL011 rev2
[    5.835817] systemd[1]: Created slice system-getty.slice.
[   10.172139] cdc_acm 1-1.3:1.0: ttyACM0: USB ACM device
[ 3395.201515] cdc_acm 1-1.5:1.0: ttyACM0: USB ACM device
[ 3796.800674] cdc_acm 1-1.4:1.0: ttyACM0: USB ACM device

Frustrating, works on z-wave.me but not zwavejsui or zwavejs2mqtt. I do not want to run the overkil.

I note that the output states settings.json is missing. Do I need to create one and what goes in it?

What’s going on here, anyway to get more debug info out of docker?

You need to configure the USB path in the settings. https://zwave-js.github.io/zwave-js-ui/#/getting-started/quick-start?id=minimum-settings. In your case, the USB path setting is /dev/zwave.

And you should use the /dev/serial/by-id path like the comments say, e.g. /dev/serial/by-id/usb-065_0200-if00:/dev/zwave.

what settings?
i can’t log into the server on port 8091 or 3000? do you mean somewhere else?

EDIT
bloody helll
i was accessing localhost:8091 from.my browser because i was ssh into the Pi.
jewez
192.168.0.4:8091 did it

user error !!