Smooth Zwave Integration with Zwavejs2mqtt and Podman

After struggling with Z-Wave integration for quite some time, I finally found a solution that works seamlessly using Zwavejs2mqtt and Podman. My journey began with frustration as I couldn’t get my Z-Wave devices to connect properly. However, after some research and trial and error, I discovered a method that not only resolved my issues but also improved the overall setup.

The key was to use Podman for container management. Initially, I faced permission issues when trying to access the serial port from within the container. After some digging, I realized that adjusting the container’s security settings and adding my user to the dialout group was the solution. This allowed the container to communicate with the Z-Wave stick without any hiccups.

Here’s a step-by-step breakdown of what worked for me:

  1. Install Dependencies: Ensure you have Podman and the necessary tools installed on your system.

  2. Container Configuration: Use the following command to run the Zwavejs2mqtt container with the correct security settings:

    podman run --rm -it -p 8091:8091 -p 3000:3000 -v ~/store:/usr/src/app/store:Z --security-opt label=disable --group-add keep-groups --device=/dev/serial/by-id/usb-XXXX:/dev/serial/by-id/usb-XXXX zwavejs/zwavejs2mqtt:latest

  3. Adjust Permissions: Add your user to the dialout group to grant access to the serial port.

  4. Test the Setup: Once everything is configured, test the connection within the Zwavejs2mqtt interface to ensure all devices are recognized.

This setup has been running smoothly for me, and I’m thrilled with how it’s integrated into my smart home ecosystem. I’d like to thank the community for their invaluable resources and support. If anyone has further questions or needs assistance, feel free to reach out—I’m happy to help!