I’ve seen some questions on how to find your serial port for the Z-Wave binding. Here’s a simple way to do it.
- Plug in your Z-Wave stick, then type
dmesg. You should see something near the end like this:
ttyACM0: USB ACM device"
- Your serial port is
/dev/plus the first part of that line, e.g.,
/dev/ttyACM0(Exact capitalization matters.)
If you’re not using openHABian (for example, if you installed OpenHAB yourself on Ubuntu Server), you probably need to add your OpenHAB user to the dialout group so you can actually use the device. In my case, the user was named
openhab, but you can verify it by doing this:
ps aux | grep openhab.runtime
Assuming OpenHAB is actually running, one of the lines of output will be huge. Go back to the beginning of that line, right before all of the numbers, and whatever is there is your OpenHAB user.
Finally, you need to run this (replacing
openhab with your OpenHAB user if it’s different for some reason):
sudo usermod -a -G dialout openhab
Reboot for good measure, and you should be up and running.