Go to PaperUI/Addons/Binding and make sure the Serial binding is installed.
The next part is annoying, but painless.
Because there are more ‘channels’ available for glass panels in the latest version, you’ll have to manually delete the Glass Panel / VMB1TS things and scan your Velbus network again.
Thankfully, when adding them back in, they should get linked back to the items that were linked previously.
Interestingly…
Cédric added a network binding to this version, so you can run something like PB_Server or VelServ which allows for multiple simultaneous TCP connections to your Velbus network.
There is code in Tom’s widget that shaves down the 4 decimal point current temperature to just one.
BUT that only works if the Item its looking at is a Number.
NOT a Number:Temperature
So…
Please tweak the Item and remove the Temperature type.
(You can always add the °C back as a suffix in HabPanel)
(This is assuming that you’ve not used the Simple Linking option)
Where can I find some real-world examples of things/items/rules files for a typical Velbus setup? I’m also interested in connecting my Hue lights with Velbus switches.
I’d recommend using the PaperUI for setting up Velbus Things, then linking to items that PaperUI will create as you go along. (I understand that this is the approach that is preferred and it’s mostly automated now.)
As for Rules, you can try the “Experimental Rules Engine”, but as it lost my rules 4 times, I learnt to write the rules as text files.
Once you’ve got some things and items, I’m happy to point you in the right direction for writing rules, or you can hunt around in the OpenHab2 Community page.
Thanks MDAR.
Indeed, my things / items are easy to set up using PaperUI. So as you suggested I will stick with PaperUI for that.
But for Rules it would be very handy to have some Velbus specific real-world examples. eg. When I press a Velbus button, I want to switch on/off a hue light. Only a few examples would point me in the right direction.
The following is a reasonable example of a Velbus trigger switching On or Off something else.
Where “ToiletUp” is a relay for a light and the DMX Chase is an RGB fixture, then DMX brightness is a way to turn off the RGB fixture and stop the chase.
rule "Toilet DMX Chase"
when
Item ToiletUP received command
then
if(ToiletUP.state == ON){
DMXChaserToilet_Switch.sendCommand(ON)
}
if (ToiletUP.state == OFF){
DMXDimmer_Brightness.sendCommand(OFF)
}
end
A simple button press triggered rule has to be phrased slightly differently.
rule "A Velbus glass panel button"
when
Channel 'velbus:vmbgpod:c5053467:2C:input#CH3' triggered PRESSED
then
// An_Item.sendCommand("75") / some commands need to be in quotes, some are raw like ON / OFF / PLAY / PAUSE
end
Mdar, I’m investigating your rules. How are your Items set up? Using a things file or set up via PaperUI? Can you give me an example on how to set this up (things file) or how to get the ‘name’ of a Thing?
What I want to achieve:
How to set up a rule to switch a hue light when I press a button on a vmb4pd module.
rule "Toggle Demo Switch by pressing a Velbus Button"
when
Channel 'velbus:vmbgp4:9a309cee:04:input#CH1' triggered PRESSED // you could use LONG_PRESSED or RELEASED
then
if(DemoSwitch.state == ON){
DemoSwitch.sendCommand(OFF)
return
}
if (DemoSwitch.state == OFF){
DemoSwitch.sendCommand(ON)
return
}
end
Where can i find the latest version of velbus binding (working with velserv)?
I am reading out the temperature of all glaspanels and VMBGPOD, VMBGP4, VMBGP2 are working, but VMBGP4PIR and VMBPIRO not.
When I open vmbgp4pir thing in Paper UI, everything works fine, velbus:vmbgp4pir:956cb640:7D:glasspannel#CH9 is linked.
When I open vmbpiro thingin Paper UI, I get the error “Error 500- internal server error” and there are no channels. There are no errors in the log viewer (frontail).
Is it a problem with the velbus binding, ore is there an other problem?