Rebuild Z-wave routes via automation

When I ran that same shell script to install docker on my RPi it installed docker compose at the same time. I think your instructions are outdated.

That is why you shouldn’t use guides and just use the software docs

EDIT
That guide you used is just wrong. Websocket has been available since zwavejsui came out so mqtt never was needed

Don’t use MQTT and you don’t need MQTT. Use websocket.

I flashed Raspberry Pi OS 64-bit from the official imager menu. I’m using a RPi 3B+.

I’ll start from scratch and look for that.

The yml file? Here it is:

version: '3.7'
services:
  zwave-js-ui:
    container_name: zwave-js-ui
    image: zwavejs/zwave-js-ui:latest
    restart: always
    tty: true
    stop_signal: SIGINT
    environment:
      - SESSION_SECRET=mysupersecretkey
      # Uncomment if you want logs time 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:
      - zwave
    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/serial/by-id/insert_stick_reference_here:/dev/zwave'
    volumes:
      - zwave-config:/usr/src/app/store
    ports:
      - '8091:8091' # port for web interface
      - '3000:3000' # port for Z-Wave JS websocket server
networks:
  zwave:
volumes:
  zwave-config:
    name: zwave-config

This is the default one I pulled from here… I changed port #s but it’s otherwise the same.

They’re 100% outdated. I didn’t use MQTT, and instead pointed to the Zwave JS UI git.

From what I’m seeing here… maybe I need to start with the 32-bit OS?

I installed on the 64-bit OS using the same curl command and shell script you listed above. That was the only install I had to do for docker.

Is this what you literally have now?
You need to identify the location of the zwave stick and input it instead of the generic text

There isn’t a problem with the python install. The problem was the guide really. Guides get old and provide bad info a lot of times. Always read the real docs and understand the goal before using someone else’s bad suggestion. That includes those I’m providing :stuck_out_tongue_winking_eye: read the docs

No, I have my USB stick path in there… I had already restarted the re-installation and just pasted from the template.

My docker installation is failing now! Following the docs here, and I get to installing the docker packages and I get this:

E: Package 'docker-ce' has no installation candidate
E: Package 'docker-ce-cli' has no installation candidate
E: Unable to locate package containerd.io
E: Couldn't find any package by glob 'containerd.io'
E: Couldn't find any package by regex 'containerd.io'
E: Unable to locate package docker-buildx-plugin
E: Unable to locate package docker-compose-plugin

Didn’t you say you have the 64-bit OS installed?

The first time around, yes–now I’m using the 32-bit bookworm release.

Not sure why you would change. I used these instructions but left the 64-bit OS. No issues at all on the bullseye release. Install of docker and testing with hello-world went exactly as described. Zwave-JS-UI on Znet via docker - Configuration / Z-Wave - Home Assistant Community

Well… mainly to try to see if it would work. It appears I’ve got a good docker installation now (though I still get the installation error regarding wheel):

I used the python install from those instructions above. The apt repository was causing me issues… maybe my echo entry was bunged up. I don’t know.

Now on to Zwave JS UI…

I’m not sure why you would install python. The docker container will have all that embedded. That’s why docker is used.

You’re using an unsupported and obsolete version of Docker Compose. It is not installed via Python.

https://docs.docker.com/compose/install/

Sorry you having trouble based on my recommendation. I do this a lot so it’s a little easier for me now since I had same problems many times and now just now what to check.

My guess is you don’t have repository installed or properly setup. But this is a huge guess. It is part of the instructions in the docs so either you did it and know or missed it and will find it.

Also, I assume you “sudo apt update” after setup repository. Pretty sure that’s in docs but that will also cause docker package to be missing.

Also, you don’t need docker desktop but if you install it it works same, just extra stuff installed.

The instructions here say, “These instructions assume you already have Docker Engine and Docker CLI installed and now want to install the Docker Compose plugin.” Well… the Docker Engine install is where I’m falling down. Would the Docker Compose Standalone work?

For the Engine install… it’s possible I’m getting this command wrong:

# Add the repository to Apt sources:
echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/raspbian \
  $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

What’s the proper way of entering this at the command line?

Not at all. I really appreciate you hanging with this thread and responding. In case it’s not obvious, I do not Linux. A couple of times a year–or less–I find a need for it and have to re-learn the basics. I don’t think I’ve fired up an imager in at least a year.

Yes, every time.

But your screenshot shows a successful docker run hello-world. What’s exactly the problem with the Docker install? What does docker version show? There is no Python involved in the official Docker Engine instructions. Also looks like the default instructions include the current Docker Compose anyways.

Yes, and that was after installing what you said was an unsupported and obsolete version of Docker Compose. So I decided to start over. I’d like to get the installation “correct,” so I can keep up with updates, etc.

Sorry, I’m obviously confused. If you are running any Python commands, then yes you are installing outdated software. If you followed the install docs posted earlier, which don’t involve Python, then you should have a good install. You simply need to run docker compose to use it.

I’ve just re-imaged my SD card with the 32-bit RPi OS. I’ve attempted to follow the instructions here to install Docker Engine, but it fails with the errors I posted in this comment.

I only got a successful install by using python, which is apparently the wrong way to go.

Got it, sorry for the confusion.

Did you run sudo apt-get update after setting up the sources?

ls -all /etc/apt/sources.list.d/docker.list

And

cat /etc/apt/sources.list.d/docker.list

Post results of both of those
I suspect the sources file is wrong somehow