Openhab velbus items

Does anyone know there if there is a .items configuration example out there? I have the most basic things working here like dimmers switches and temperatures. But wat i need is a status indicator from a contact / input.

i belief it is the “contact” integer but i don’t know how te implement the correct line :slight_smile:

Here a snippet of my items file

I’m no expert, I think you’ll find that Channels can’t be used directly in a UI.

If you want to show the status of a Channel, you’ll have to use a rule to change the state of a virtual Item.

Something like ----

rule "Switch on"

when


     Channel 'velbus:vmb7in:c5053467:0B:input#CH1' triggered PRESSED

then

 	
 
 	Virtual_Switch.sendCommand(ON)
 	


end

 

rule "Switch off"

when
     Channel 'velbus:vmb7in:c5053467:0B:input#CH1' triggered RELEASED 
then

 	
 
 	Virtual_Switch.sendCommand(OFF)
 	


end

FYI

Try these kind of questions in the OpenHab2 forum, you’ll get many more answers :wink:

https://community.openhab.org

I’ll try the openhab forum tomorrow

Thanks Stuart :wink:

1 Like

I did a quick search for you and found this…