Hello,
velserv is idd already on github since a few years . That’s the reason I did not repair my little server anymore (will be repaired someday, but other priorities).
I’m not that formiliar with licenses, but as already stated in the code: if you want to change something: let me know because I’d like to have my name associated to it (as it was the last +/-13 years already).
I’d like to avoid having x version of the code, so the only code I support (and is the original code) is on my github (with backups on my PC). If you want to update the code, make it better: certainly be my guest! I’ve already some upgrades in my mind, but since the code is still doing it’s thing and my time that I could spend on it is limited (3 kids, pretty busy job and other projects) those aren’t implemented.
I’m running HA (HAOS 12.1) on an RPi 3 and all my integrations (Velbus, Philips Hue, Zigbee devices) run flawlessly. Home assistant is using the serial connection (USB) from the VMBRSUSB module for the integration of all my Velbus entities. For convenience, I don’t want to swap this USB connection to a PC in order to access VelbusLink, so I was thinking of setting up velserv or the Velbus TCP snap package mentioned next to my HA. What would be the easiest and most robust set-up? Can I install the snap package on my already existing HAOS and will this run out-of-the-box?
Maybe I should rephrase my question. I’m currently using the hass.io operating system, which makes it apparently not possible to execute apt commands. I will probably need to install HA on another OS to install the SNAP package? Which OS is best recommended for my RPi running only HA?
@csoete I didn’t have time to proofread my own step-by-step instruction, but if you hit any problems check this: Installing OpenHAB – Velbus binding – Core Dump
I use OpenHAB, so I can’t tell what system is the best, but HAOS 12.1 is the officiad HA system, so why look for something else if you only want to run HA?
We can help with the velbus-tcp, even manual install is an option. Ot the MDAR script. If it doesn’t work - come back - I did some debugging, it’s very easy when you’re guided. Some details will be different on your system than on mine, so the below is only an example.
Make sure your system detects the bridge
openhabian@openhabian:~ $ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 10cf:0b1b Velleman Components, Inc. VMB1USB Velbus USB interface
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
One interesting note that I have requested that the Velbus-TCP snap package follows is that when VelServ fails (mainly due to the absence / removal of the USB connection), the Service fails and it reported.
however, if the Snap package fails, it will never tell you, nor will it recover automatically.
snap status velbus-tcp
snap get velbus-tcp -d to get the connection details
I gained access to the OS-level CLI with the login command. Similarly, the install of the snap Velbus-TCP package also fails here due to apt not being found. I did some research and apparently my OS (Home Assistant OS 12.1) is buildroot which means it is not possible to install packages. This is based on:
Which means I’ll probably have to install HA on top of another OS (possibly debian based), which is a shame because I liked having the ease-of-use installation of HAOS.
Thank you all for your replies, I have since advanced a bunch.
However, I still have some difficulties connecting my RPi server through VelbusLink.
I’m currently running Home Assistant Container on a Raspberry Pi 3B using the (Raspberry Pi Lite) OS:
I then ran the following Docker run command which set up Home assistant on the following internal LAN url: http://harpi.local:8123/ (harpi.local being the hostname of my RPi):
Note that USB0 is the connection to my Sonoff_Zigbee_3.0_USB_Dongle_Plus and ACM0 is my Velleman VMB1USB interface.
I can access HA perfectly and all integrations (Zigbee dongle and Velbus USB) show up, meaning the mounting in Docker was done successfully. I then installed the velbus-tcp snap package using MDARs script:
mkdir /opt/velbus-tcp
cd /opt/velbus-tcp
wget www.mdar.co.uk/dl/velbus/velbus-tcp.sh -O /opt/velbus-tcp/velbus-tcp.sh
sh velbus-tcp.sh
This was also executed successfully and gave me this output:
I think I’m connected to the gateway when I press “Finish”. However, I can’t seem to find any modules as it instantly gives me an error when pressing the “Scan” button:
An unexpected error occured, we've disconnected you from the bus.
Does anyone have a solution for this or encountered this error? I hope I provided enough details to replicate my setup.
I can now interact with my modules using VelbusLink. Should I still mount the VMB1USB interface using the docker run command (–device) or connect via the integration on HA?
For a TCP/IP device: 127.0.0.1:6000
Is it even useful to mount the Velbus USB port in my Docker container?
I know very little about dockers and HA, I find them all far too confusing.
However, I would say that you’re right, there is little point in mounting the Velbus port for the HA docker, in fact probably risking some misconfiguration.
Theory being that when a Velbus USB device is plugged in, the rule will set a symlink, wait 2 seconds, set the SNAP Package to the new ttyVelbus-xxxxx port, which will cause it to restart
@PrzemoF@RCZ
Is this something you fancy trying for me?
(As I don’t run openHabian for example, I’ll test it with DietPi machines I have)
I was on vacation in July and I must have missed your message dated from 19 July…until tonight .
Meanwhile I reinstalled Openhab a few times because an Openhabian upgrade ruined everything. Pi was running hot and no rules where executed anymore. I ran your revisited zip (see last message) but still no Velbuslink connection via TCP/IP. All the rest(OH) is working fine again. I didn’t have a lot of time recently but I’m wondering if others experiencing the same problem?
It’s not an urgent one but if I can help you testing…let me know.
Kind regards and sorry for this dust covered reply!
I’ll start another thread, specially to address your issue, which will make it easier for others to find in the future should they come looking for openHABIAN issues.