Migrating Homeassistant from pyvenv to Docker; problems with Zwave

I am currently running the latest version of HA on a pyvenv. My configuration includes an Aeotec zwave stick; the difference being that it is plugged into a remote Raspberry Pi and I’m using socat (https://community.openhab.org/t/share-z-wave-dongle-over-ip-usb-over-ip-using-ser2net-socat-guide/34895/16) to “connect” to it. This is working flawlessly.

I would like to migrate to running HA on Docker. I am having problems getting the HA container to “connect” to the remote zwave stick.

Here is my Docker command:
docker run --restart unless-stopped --init -d --name="homeassistant" -e "TZ=America/Toronto" -p 8123:8123 -v /opt/homeassistant/config:/config --device=/dev/lio0 homeassistant/home-assistant:stable

My socat config looks like:

user@homeassistant:/etc/default$ cat socat-lio0.conf 
SOCAT_DEFAULTS=-d -d -s -lf /var/log/socat.log

SOCAT_CONNECTION=pty,link=/dev/lio0,raw,user=ha,group=dialout,mode=777 tcp:192.168.XXX.XXX:3333

Can anyone offer any suggestions on how to troubleshoot this, or better yet fix?

Have you tried passing as a volume instead of a device?

-v /dev/lio0:/dev/ttyACM0

That did the trick… thank you!

1 Like