I got it working today ill update this post with the details in a few minutes.
UPDATE:
I have created a group “homeautomation” and added the root user and openhab to the group.
homeautomation:x:11:root,openhab
created /lib/udev/rules.d/50-usb-zwave.rules with the following:
SUBSYSTEM==“tty”, ATTRS{idVendor}==“0658”, ATTRS{idProduct}==“0200”, SYMLINK+=“USBzwave”, GROUP=“homeautomation”, MODE=“0666”
** the IDs are for aeotec z-stick gen5 , if you use a different stick ,change to the correct ids .
add the following in openhab start script :
-Dgnu.io.rxtx.SerialPorts=/dev/USBzwave
update the zwave binding port config :
zwave:port = /dev/USBzwave