Good to know. The old Lonworks system we have at the moment is getting a bit cranky (unreliable) so there is pressure on from “management” to start work on the transition to the Velbus system. I will move a few of the outputs over to VMB8DC/FIN15.11, check we can control them via OpenHAB (with no physical switches on the network) and then proceed with more output nodes before I rip out all the existing switch nodes (replacing them with a custom design compatible with existing faceplates, they are under design/test now with a series production run later in the year. I’d prefer this to a big bang approach !
That’s super useful, I’m a developer although my Java is pretty rusty. I’ve been writing some embedded C++ for RA4M1 microcontrollers to emulate a switch input node so am familiar with the underlying Velbus coding concepts.
I’ve installed OpenHABian and am trying to set up a serial Velbus bridge.
First off here is the results of lsusb on the Pi
openhabian@openhabian:/etc $ 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
so we can see that the VMB1USB interface is detected.
However when I try to create the bridge via the Settings|Things menu I get this error
The log file shows
2024-07-28 04:23:40.615 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'velbus:bridge:2140e4acae' changed from UNINITIALIZED to INITIALIZING
==> /var/log/openhab/openhab.log <==
2024-07-28 04:23:40.630 [DEBUG] [internal.handler.VelbusBridgeHandler] - Initializing velbus bridge handler.
==> /var/log/openhab/events.log <==
2024-07-28 04:23:40.645 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'velbus:bridge:2140e4acae' changed from INITIALIZING to OFFLINE (CONFIGURATION_ERROR): Port is not known!
2024-07-28 04:23:40.648 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'velbus:bridge:2140e4acae' changed from OFFLINE (CONFIGURATION_ERROR): Port is not known! to OFFLINE (COMMUNICATION_ERROR): A network communication error occurred.
Maybe it is some type of permissions error ? I tried using /dev/ttyACM0 (can see this via dmesg) and also tried /dev/serial/by-id/usb-Velleman_Projects_VMB1USB_Velbus_USB_interface-if00 which I can see in the directory.
Help !
Looks like I should install the TCP gateway first and then bridge to that rather than onto the serial.
Although I’m still puzzled that the serial instructions did not work.
P.S. I can see that will allow VelbusLink to access it as well.
Ok, I think I’m up and running now. I’ve added the bridge and done a scan of my test network. The VMB4RYNO has been discovered but the VMB8DC has not as that is not yet part of the official repository. I’ll poke around to see if I can get the development one to work.
One other thing. The Velbuslink scan happens at a reasonable pace. But the read/write to nodes via Velbuslink times out as it is way too slow compared to a direct USB connection.
You need to set the openHAB base as Snapshot version in order to use the latest JAR , you’ll also need the openHAB Serial binding (from the bindings list)
openHAB night need a restart in order for everything to start up well.
I’m always much happier with a DietPi (version of Debian) running on the Odroid C4 devices and install whatever I need on top of that.
The DietPi software menu includes openHAB & HomeAssistant, which I do have running in the same machine here, as a test.
(Both talking with the official Velbus Snap package, Velbus-tcp)
Did you opt for VelServ or Velbus-tcp as your TCP gateway?
I see what happened there It looks like I have installed both, but the velserv service is the current active one. I will go back and fix it up so I do not get any funkiness on the network.
I’ve found openHAB relatively quick to learn , so far I have got a relay (VMB4RYNO) and dimmer driver (VMB8DC-20) integrated and have mucked around with configuring a page to run on the Android phone app.
As an aside I also found the IamMeter integration so got it reading my power meter, that will be handy when I set up some rules around loads that can take advantage of time-of-use tariffs.
Thanks, that worked well once I figured out I could use the Samba share to drag and drop the JAR file into the addons folder.
Can you give a summary of your experience when you’re finished (okay, maybe not “when you’re finished”, as that day will never come ) so that others can be inspired?
Have you found the openHAB forum yet?
FYI
In my early days, I found these commands to be the most valuable
openhab-cli backup
openhab-cli backup --full
openhab-cli restore {{path to zip file}}