[Please do not use this information, there are errors]
Log in to openhabian with ssh i.e.:
ssh openhabian@openhabian
Install snap:
sudo apt install snapd
Install velbus-tcp:
sudo snap install velbus-tcp
Get the script from mdar.co.uk page:
wget https://mdar.co.uk/dl/velserv-setup.sh
Make it executable:
sudo chmod a+x velserv-setup.sh
WARNING! The script doesn’t perform any checks) it’s work in progress) – read the script before executing. The script setups and runs velserv
Execute the script with:
sudo ./velserv-setup.sh
Add Velbus Bridge in openHAB bindngs
Set the Velbus bridge using server: localhost and port 6000. Wait a while – it will be off line for a few seconds. That’s how it looks:

Open VelbusLink
Select connect to network
Use your server Ip or hostname, port 6000
IMPORTANT: untick the TLS box!!
Troubleshooting:
From server terminal: “systemctl status velserv” shows the status. If the velserv restarts every few seconds – it might be caused by invalid USB gateway name.
Make sure the gateway is connected:
openhabian@openhabian:~ $ lsusb -d 10cf:
Bus 001 Device 003: ID 10cf:0b1b Velleman Components, Inc. VMB1USB Velbus USB interface
openhabian@openhabian:~ $ udevadm info -q property /dev/bus/usb/001/003 | grep DEVPATH
DEVPATH=/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3
That path should be the same as reported by “stemctl status velserv”. If it’s different it needs to be changed in “/etc/systemd/system/velserv.service”
2 replies on “Installing OpenHAB – Velbus binding”
Yeah, that’s how easy I tried to make it.
If you want to suggest improvements to the script, please do
FYI
The script will disable VelServ if it’s installed & enabled.
Likewise, the VelServ install script will disable the Snap Velbus-tcp
They both use the localhost port.
Meaning the openHAB bridge will simply use whichever is available.
Also, the snap script will open a secured LAN port 27015 with TLS / SSL and a password, for use with Velbuslink
Velserv simply opens 6000 for anything to connect to.
I forgot to add links to each script
To install VelServ and create a SystemD service file to use a default /dev/serial/by-id/ path (Which will need changing to suit your Velbus USB module
“`
wget http://www.velbus.co.uk/dl/velserv-setup.sh
sh velserv-setup.sh
“`
The script to install SNAP and the Velbus-TCP package
opening port 6000 to the localhost only
opening port 27015 with TLS protection everywhere
“`
wget http://www.velbus.co.uk/dl/velbus/velbus-tcp.sh
sh velbus-tcp.sh
“`
This will also add some uDev rules to map your Velbus USB device to simple paths
Check which USB device you have and adjust the Snap settings as required.
(the default it now for the VMBUSB-20 module)