Openhab & Virtual Buttons


Anyone an idea on how to control virtual buttons from a rule in Openhab? I want to send PRESSED or LONG_PRESSED to a virtual button in order to start a set of actions in VELBUS.


Which version of openHAB are you using?

The more recent version of the Velbus binding provides channel for all buttons.

Which you can send commands to, just like any other items.

OpenHAB 4.0.2
How should the button be added? I tried several setting, but not successful so far.
The Thing VMB2PBN appears online.
Should button be added under “channels” as an input, or a button?
Is ItemType a “Contact”, “String"or “Switch”?
With"Contact”, I can send a PRESSED or LONG_PRESSED, but then I get:a communication error:

I got it working:
Item added as channel type string:

label: M15 SlpkAchterBoven Virtuele Knop 2
type: String
category: Switch
groupNames: []
groupType: None
function: null
  - Point

Example rule (pressed virtual button when HUE sensor detects motion):

configuration: {}
  - id: "3"
      itemName: Hue_outdoor_motion_sensor_1_Beweging
      state: ON
    type: core.ItemStateUpdateTrigger
conditions: []
  - inputs: {}
    id: "2"
      itemName: VMB2PBN_M15_SlpkAchterBoven_Virtuele_knop_2
      command: PRESSED
    type: core.ItemCommandAction
1 Like

Congratulations :confetti_ball:

I’m delighted that it’s all working for you.