Hi all, just wanted to share my experience and perhaps save someone a few hours of pain. I run OpenHab (currently v4.3.0.M4) with several bindings including zwave. This has worked well for me for years and the config goes all the way back to V1 (lots of updates and changes of course). Today I finally updated the host machine from Fedora Linux 40 to 41 and that broke all my zwave stuff. The Aeotec Gen5 controller stick was showing uninitialized through restarts and all. I verified the USB device was on /dev/ttyACM0 and ensured the container passed that in. After lots of searching (not much out there) and trying lots of reboots and container restarts, I determined that even though I could see the device in the container, I did not have permission to interact with it. The perms on the device were correct both in the container and from the host. Finally I stumbled across a similar container permission issue where the “privileged” flag can help with some issues. Sure enough, adding this flag solved the problem. I’m not sure what changed from Fedora 40 to 41, but it was really annoying to figure this out.
Anyway, here’s my unit file for anyone who also runs the container from systemd - you can see the container command line in it:
[Unit]
Description=openHAB 2
# Requires=docker.service
# After=docker.service
[Service]
Restart=always
ExecStartPre=/bin/sleep 20
ExecStart=/usr/bin/podman run \
--name=openhab2 --net=host \
--privileged \
--tty \
-v /etc/localtime:/etc/localtime:ro \
-v /opt/openhab/conf:/openhab/conf \
-v /opt/openhab/userdata:/openhab/userdata \
-v /opt/openhab/addons:/openhab/addons \
-v /opt/openhab/.java:/openhab/.java \
--device=/dev/ttyACM0 \
-e TZ=America/Chicago \
-e CRYPTO_POLICY=unlimited \
openhab/openhab:milestone
ExecStop=/usr/bin/podman stop -t 5 openhab2 ; /usr/bin/podman rm -f openhab2
[Install]
WantedBy=multi-user.target
I hope this helps someone in the unlikely event they run with a similar configuration. Thanks to all the OpenHab and Zwave plugin contributors for the great work, it’s much appreciated here!