[Docker] Fresh installation, no zwave device

i have just installed a new raspbian image on my rpi; then installed docker, portainer and docker compose. In raspi-config I enabled the serial interface (not logon) and rebooted.

My zwave device is an AeoTec z-stick Gen5+ in an USB2 port.
My zwave USB device under /dev/ttyAMA0

stty -F /dev/ttyAMA0

`speed 3000000 baud; line = 15;
min = 1; time = 0;
-brkint -icrnl -imaxbel
-opost
-isig -icanon -iexten -echo

i’ve installed hass.io using docker compose

version: '3'
services:
homeassistant:
container_name: homeassistant
image: homeassistant/raspberrypi4-homeassistant:stable
volumes:
- /PATH_TO_YOUR_CONFIG:/config
- /etc/localtime:/etc/localtime:ro
devices:
- /dev/ttyAMA0:/dev/ttyAMA0
restart: unless-stopped
network_mode: host

yet in the Homeassistent > Configuration i can’t find the zwave device. What am i missing here?

The user launching docker-compose up may not have access to the /dev/ttyAMA0 device. Try adding privileged: true to your docker-compose.yaml

try:

/dev/serial/by-id/usb-0658_0200-if00

I tried this step to add privileged, not solving the issue

sudo useradd -rm homeassistant -G dialout,gpio,i2c

In the container, i connected to bash:

 bash-5.0# stty -F /dev/ttyAMA0
 speed 3000000 baud; line = 15;
 intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V;
 flush = ^O; min = 1; time = 0;
 -brkint -icrnl -imaxbel
 -opost
 -isig -icanon -iexten -echo

How do you get this path? in RPI i have only links from /dev/serial0 to ttyS0 and /dev/serial1 to ttyAMA0

In the addon configuration window…just enter /dev/serial/by-id/usb-0658_0200-if00 in the options devices field.

1 Like

Looking back at this, they /dev/serial/by-id/<device_id> path is probably the way to go with this. I recall a while back having similar issues. I think this originates from udev and changing device ID’s.

This is ultimately what drove me to moving my setup to a virtualenv instead of docker, but if you really want to stay with the docker setup, try finding the exact path in /dev/serial/by-id and map that to /dev/ttyACM0 or whatever your homeassistant config is looking for.

I just realized that my ZWAVE stick in combination with RPI4 is not working. Need to return it before continuing this effort

what stick isn’t working? Is it a faulty stick or a faulty installer :slight_smile:

Apparently the AeoTec ZStick Gen5+ has an USB design flaw which is incompatible with RPI4.
As i just bought it new on Amazon, I’m going to return it. The workaround is to use an USB hub.

Yes…the only way to know you have the “fixed” version is to look at the graphics on the stick. Aeotec didn’t change the model number…and stores/sellers all say NEW which only indicates it hasn’t been opened, but not if it’s the latest design. As you said, the solution is to use the cheapest usb 2 hub you can find (less than $2 on EBAY). Personally, if I didn’t already own an Aeotec stick, I’d buy one from a different manufacturer…IMHO, Aeotec should have changed the model or version number instead of essentially forcing you to buy directly from them to know you are getting the “fixed” stick.