Virtual relais Velbus

On my garagedoor i have a reed switch that’s connected to a VMB7IN. When the garagedoor opens i activate a virtual relais.
In the Velbus app on the computer this is working. In Openhab i don’t see the action when the door op open.
This is my config:
in default.sitemap:
Switch item=OpenToe icon=“opentoe” label=“Poort Open/Toe”
in default.items:
Switch OpenToe “Poort Open/Toe” (garage) {channel=“velbus:vmb4ryno:089ad7e2:F1:CH5”}

The virtual relais is on F1 channel 5 in Velbus config application.
in the app on the smartphone (android) i don’t see this action (look likes the door is always closed).

What do i do wrong or what’s missing?
Thanks
Herman

Hi Herman :smile:

Does your events.log show the state change for CH5 of the relay?

My log files are located in this folder

/var/log/openhab/events.log

You should also see the trigger / input channel change for the VMB7IN :slight_smile:

You should see the VMB7IN channel change state from…

released
pressed
long_pressed

released

For example, this log shows a button event and a relay state change

2019-07-28 12:04:52.531 [vent.ItemStateChangedEvent] - WeatherStation_Lighel changed from 12589.0 lx to 12338.0 lx
2019-07-28 12:04:55.672 [vent.ChannelTriggeredEvent] - velbus:vmbgp2:c5053467:24:input#CH1 triggered PRESSED
019-07-28 12:04:55.704 [vent.ItemStateChangedEvent] - DiningRoom changed from ON to OFF
019-07-28 12:04:55.947 [vent.ChannelTriggeredEvent] - velbus:vmbgp2:c5053467:24:input#CH1 triggered RELEASED

Stuart,

this is a (part) of the log file

2019-07-28 14:21:44.408 [vent.ChannelTriggeredEvent] - velbus:vmb2pbn:089ad7e2:17:CH1 triggered PRESSED *** Button door pressed open ***
2019-07-28 14:21:44.441 [vent.ItemStateChangedEvent] - Poort changed from OFF to ON
2019-07-28 14:21:44.513 [vent.ChannelTriggeredEvent] - velbus:vmb2pbn:089ad7e2:17:CH1 triggered RELEASED
2019-07-28 14:21:44.547 [vent.ItemStateChangedEvent] - Poort changed from ON to OFF
2019-07-28 14:21:46.690 [vent.ChannelTriggeredEvent] - velbus:vmb7in:089ad7e2:03:CH6 triggered PRESSED *** VMB7IN Garage ****
2019-07-28 14:21:47.516 [vent.ChannelTriggeredEvent] - velbus:vmb7in:089ad7e2:03:CH6 triggered LONG_PRESSED
2019-07-28 14:21:51.720 [vent.ChannelTriggeredEvent] - velbus:vmb2pbn:089ad7e2:17:CH1 triggered PRESSED *** Button door pressed close ***
2019-07-28 14:21:51.755 [vent.ItemStateChangedEvent] - Poort changed from OFF to ON

(The VMB7In is configured a a long press (1sec) to eliminate switch noise.)

i see no action for the relays.

included also the VelbusLink config (in Dutch).

i use a virtual relay because i will only see the status of the relay in de app. (so i can see when the garagedoor is open or not).

Thanks

Herman

Just an observation…

Is the Item named “Poort” linked to the CH5 that you’re looking for :wink:

Or, “do you have a switch item linked to the relay in openHAB2?”

(Because, I’m not sure (aka, don’t know) if relay channels are the same as trigger channels.)

Alternatively, is there a way to link the element in your sitemap to the VMB7IN input?

Stuart,

I made some screenshots from the config. I have installed Velbuslink in English, it’s easier for you to reed. “Poort” is Dutch for Garage Door.

I had bound to the wrong chanel in OpenHab (used F3:CH5 instead of F1:CH5) This is changed now but even then it’s not changing the icon in the app.

ps: in default files ---- OpenToe = OpenClosed —

Herman

door_open_2.png

default.sitemap.png

Stuart,

i have also tried to link to “Switch OpenToe “Poort Open/Toe” (garage) {channel=“velbus:vmb7in:089ad7e2:03:CH6”}” *** VMB7IN

but not working also.

Herman

Hi

It sounds like you’ve done everything perfectly.

So… it must be something else.

Which leads me to ask…

Can sitemap elements be linked to output channels directly, or MUST they be connected to Items, that are themselves linked to the output channels?

Have you tried creating an Item Switch and connecting it to this Relay channel?

I’ve done this in PaperUI / HabPanel and it works perfectly.

(FYI, I can work my way around VelbusLink in Dutch, because only the names are changed, but for others, I’m sure that posting in English helps a lot)

Stuart, i just show my wife what’s should happening and now it’s working. Don’t Know why, but it’s working and that is the most important.

Herman

1 Like

If nothing else…

I’ve learnt something new :slight_smile:

Congratulations for getting it all working how you want it to :slight_smile:
I’m glad it was something small :slight_smile:

Can you mark one of the posts as a solution to this?

I suspect it is post No. 5 :wink: