Since Domoticz doesn't support Velbus I had to make a other solution for controlling it..

I don't have programming skills, so the code can be messy.. (at this moment Linux only)
I'm using the Velbus USB interface to connect to the Velbus bus.
First we need the velbus server which can be downloaded here :https://dl.dropboxusercontent.com/u/112 ... /velserv.c
(this server creates a network socket to the usb device, so multiple clients can connect)
and compile with gcc -o velserv velserv.c -lpthread
Code: Select all
Velserv acts as a gateway between the Velbus interface and the network
Usage: velserv [-csfvhV] [-d DEVICE] [-a ADDRESS] [-p PORT]
-s --server act as server only, gateway will be disabled
when in server mode, the address is always 127.0.0.1
-c --client act as client only, server wil be disabled
-d --device INTERFACE device where the Velbus interface is connected to
default device is: /dev/ttyACM0
-a --address HOST IP address or hostname where to connect to as client
default is 127.0.0.1
-p --port PORT port where to connect
default is 3788
-f --foreground do not run in background
-v --verbose verbose operation, repeat for debugging output
1 general debug, 2-3 com to socket debug, 4-6 server socket debug
-h --help print this help and exit
-V --version print version information and exit

To control a Velbus module you can use the following client script : Velbus-send.pl
./velbus-send.pl (addres of unit) (status) (device)
Example (4 Ch relay module)
./velbus-send.pl 01 02 01 (sends the ON command to device address 01 relay 1
./velbus-send.pl 01 01 01 (sends the OFF command to device address 01 relay 1
./velbus-send.pl 01 02 08 (sends the ON command to device address 01 relay 4
./velbus-send.pl 01 01 08 (sends the OFF command to device address 01 relay 4
Next step is adding it to Domoticz and make a listener scripts, so the actions from the velbus are send to Domoticz (pressing a button etc)