[BTicino/OpenWebNet] Adding CEN commands: design

Hello Massi,
Thanks for a very good job.
The CEN and CEN+ button works and the rules works.
Example:
rule “Volet_Knx_1_Down”
when
Item VoletKnx1D received update “PRESSED”
then
sendCommand(Volet_Knx1, DOWN)
end

rule “Volet_Knx_1_Up”
when
Item VoletKnx1U received update “PRESSED”
then
sendCommand(Volet_Knx1, UP)
end

rule “volet_Knx_1_Stop”
when
Item VoletKnx1D received update “PRESSED_EXT”
or
Item VoletKnx1U received update “PRESSED_EXT”
then
sendCommand(Volet_Knx1, STOP)
end

rule “Volet_Gen_Down”
when
Item VoletKnx2D received update “PRESSED”
then
sendCommand(gRollladen, DOWN)
end

rule “Volet_Gen_Up”
when
Item VoletKnx2U received update “PRESSED”
then
sendCommand(gRollladen, UP)
end

rule “volet_Gen_Stop”
when
Item VoletKnx2U received update “PRESSED_EXT”
or
Item VoletKnx2D received update “PRESSED_EXT”
then
sendCommand(gRollladen, STOP)
end

Very good
Best Regards
Arnaud

1 Like

@tagada
I suggest you make this change, see link

item changed [from <state>] [to <state>]

other way:

rule "Da CEN 10-02"
  when
    Item iLR_scenario changed
  then
    switch(iLR_scenario.state ) {
      case "PRESSED": {
      }
      case "RELEASE": {
      }  
	  case "PRESSED_EXT": {
		sendCommand(Luce_sala, ON)
      }
      case "RELEASED_EXT": {
		sendCommand(Luce_sala, OFF)
      }
	}
end

The new version beta9-1 has been released, it should close all the requirements and issues with CEN/CEN+.

Note that there are some changes from the previous beta9 version in the support for CEN/CEN+:

  • CEN/CEN+ things are now separated:

    • bus_cen_scenario_control
    • bus_cenplus_scenario_control
  • channels are now named button_X where X is the button number on the Scenario Control device

  • for discovered things, button channels appear in PaperUI after the first time the corresponding button is activated from the physical device. Refresh the PaperUI/Control page if needed

  • when creating CEN/CEN+ things using manual/file configuration, use the new buttons config parameter to define a comma-separated list of buttons numbers [0-31] configured for the scenario device, example: buttons=1,2,4

  • sending commands: PRESSED, RELEASED, etc. will simulate a virtual short/long pressure of the corresponding CEN/CEN+ button, enabling the activation of MH202 scenarios on the BUS from OpenHab

Channel Type ID (channel ID) Item Type Description Read/Write
scenarioButton (button_X) String Events or virtual pressure for CEN/CEN+ scenario buttons: PRESSED, RELEASED, PRESSED_EXT, RELEASED_EXT R/W

example CEN+ thing:

bus_cenplus_scenario_control  LR_CENplus_scenario "Living Room CEN+"        [ where="212", buttons="1,5,18" ]

example item:

String         iLR_scenario_btn1  "Scenario Button 1"               <network>           { channel="openwebnet:bus_cenplus_scenario_control:mybridge:LR_CENplus_scenario:button_1" } 

example rule:

// long pressure on CEN+ button will switch off dimmer
rule "CEN+ dimmer off"
when
    Item iLR_scenario_btn1 received update "RELEASED_EXT"
then
        sendCommand(iLR_dimmer, OFF)  
end

bye,
Massi

Thank you so much

hi massimo,

sorry i can´t get this work, i see the cen/cen+ functionality now first time but if i think right i´m afraid this may be not what i was waiting for.

what i don´t have is a 4-button cenario-control device
i use an mh200n and i wrote a lot of cenarios there.
actually i start this scenarios either with normal physical switches that are coded to send cen/cen+ commands or i even can start them on my mobile with the domotica app.
a cen command consists an “ambient” (0-10), a “pointlight” (0-15) and a button nr (0-99)
a cen+ command consists an “cen-plu” (0-2047), and a button nr (0-31)

for example to switch several lights on i start cen a=2, pl=1, btn=5 and i have to integrate installation niveau (#4#01). best would be a kind of “pushbutton”

can anybody help?

thanks, stefan

Hello,
I report this example of Massimo

scenario

.things

 Thing 	bus_cenplus_scenario_control    LR_scenario      "Scenario " @ "Scena"	[ where="21", buttons="1,2,4,5" ]

.items

String  iLR_scenario_btn1 "Scenario Button 1"   <network>  { channel="openwebnet:bus_cenplus_scenario_control:mybridge:LR_scenario:button_1" }

.sitemap

Switch    item=iLR_scenario_btn1 label="Scenario (btn1)[]" mappings=[PRESSED="Scenario-1 (PRESSED)", PRESSED_EXT="Scenario-2 (PRESSED_EXT)", RELEASED_EXT="Scenario-2 (RELEASED_EXT)"]

clicking on the buttons as in the animation are sent on the BUS of the virtual command CEN / CEN + equivalent to short pressure (PRESSED) or long press / release (PRESSED_EXT / RELEASED_EXT) of the scenario buttons.

@gozilla01 is correct, the binding beta9-1 now supports sending virtual pressure events on the BUS, replicating what happens when you press CEN/+ physical buttons.

You can do that by sending commands to button channels (for example using OH2 rules), or if you want to use sitemaps and oh2 apps you can define buttons like in the example above.
Activating CEN from PaperUI is more complicated because PaperUI does not support simple pushbuttons (at least not in a simple way).

The only thing you have to pay attention from example above you should change the Thing definition to CEN (and not CEN+).

Try to define it , if it does not work copy here your thing/item/sitemap conf and we will give a look.

Bye
M

thank you both, so obviously i did something wrong because it can´t get it work.

i´ll go on and report when sucessfull :blush:

hi massimo,

now i tried to switch a light on (cen 21, btn 9) and off (cen 21, btn 10). two things that i realized:

if i send command with domotica-app i receive this

2018-12-28 16:35:23.012 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; *15*09*21#4#01##
2018-12-28 16:35:28.256 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; *15*10*21#4#01##

if i send command with openhab i receive this:

2018-12-28 16:38:59.771 [INFO ] [g.openwebnet.bus.MyHomeJavaConnector] - COM SENDING ============&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; *15*9*21#4#01##
2018-12-28 16:38:59.843 [INFO ] [g.openwebnet.bus.MyHomeJavaConnector] - COM SENDING ============&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; *15*9*21#4#01##
2018-12-28 16:39:00.368 [DEBUG] [et.handler.OpenWebNetScenarioHandler] - ==OWN:ScenarioHandler== # 21#4#01 sending CEN virtual release...
 2018-12-28 16:39:00.372 [INFO ] [g.openwebnet.bus.MyHomeJavaConnector] - COM SENDING ============&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; *15*9#1*21#4#01##
2018-12-28 16:39:05.766 [INFO ] [g.openwebnet.bus.MyHomeJavaConnector] - COM SENDING ============&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; *15*10*21#4#01##
 2018-12-28 16:39:05.875 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; *15*10*21#4#01##
2018-12-28 16:39:06.355 [DEBUG] [et.handler.OpenWebNetScenarioHandler] - ==OWN:ScenarioHandler== # 21#4#01 sending CEN virtual release...
2018-12-28 16:39:06.359 [INFO ] [g.openwebnet.bus.MyHomeJavaConnector] - COM SENDING ============&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; *15*10#1*21#4#01##
 2018-12-28 16:39:06.442 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; *15*10#1*21#4#01##
2018-12-28 16:39:06.654 [DEBUG] [et.handler.OpenWebNetScenarioHandler] - ==OWN:ScenarioHandler== # 21#4#01 updating state to 'RELEASED'...

switching light off that works with both, domotica and openhab. but switching on does only work in domotica, so i suppose it might be the missing “0” at openhab at the button number?

problem with disappearing things:

here is my things (i added the installation-niveau “#4#01” there):

Thing bus_cen_scenario_control  AAA_CENNNNN "AAA CEN Light-test"        [ where="21#4#01", buttons="9,10" ]

my items:


String iLR_scenario_btn1 "Scenario 1" &lt;network&gt; { channel="openwebnet:bus_cen_scenario_control:MH200N:AAA_CENNNNN:button_9" }

String iLR_scenario_btn2 "Scenario 1" &lt;network&gt; { channel="openwebnet:bus_cen_scenario_control:MH200N:AAA_CENNNNN:button_10" }

as you see the name “AAA_CENNNNN” thats because very often if i change something in my things-file, the entry disappears in paperui/things. i have to give a new name then thing is back again. its enough to add a single letter and the thing is back.

do i something wrong?

best, stefan

How did you configure the .sitemap file?

hi michele,
my sitemaps looks simply:

Switch item=iLR_scenario_btn1 label="Scenario (btn1)" mappings=[PRESSED="Scenario-1 (PRESSED)"]
Switch item=iLR_scenario_btn2 label="Scenario (btn1)" mappings=[PRESSED="Scenario-1 (PRESSED)"]

bye, stefan

CORRECT : it’s a bug. Feel free to file a new issue: it will be corrected in the next release/patch.

Do you have another thing (light?) with the same WHERE address 21#4#01 as the CEN?
Does the log show some error when it happens that the CEN thing disappears ?

Bye
M

@bastler

Open new issues

Open new issues

thanks michele for opening the issue for me :slight_smile:

massimo, perhaps i did something wrong, i cannot find out why thing disappeared, this does not happen again - everything ok :slight_smile:

best, stefan

hello all,
i successfully added contacts now an just want to post a little example for everyone that is interested in:
this is the (manually managed) things-file:

Bridge openwebnet:bus_gateway:myGateway  [ host="xx.xx.xx.xx", passwd="?????" ] {
    Thing bus_dry_contact_ir  LR_contact "LR_contact" @ "contacts" [ where="352" ]

    ...(further entries)
}

(here i added contact nr 52, don´t forget to prefix a “3” - so it will become “352”)

this is the items-file:

Switch iLR_contact "my contact" { channel="openwebnet:bus_dry_contact_ir:myGateway:LR_contact:sensor" }

this is the sitemap-file (state will only be displayed if contact state = ON):

Text item=iLR_contact label="my contact" labelcolor=["red"] icon="error" visibility=[iLR_contact=="ON"]

and this is an additionally rule file that sends an email when state changes to ON (of course mail has to be configured in folder “services”):

rule "iLR_contact"
    when
        Item iLR_contact changed to ON
    then
        sendMail("info@my-emai-address.com","email subject info", "email text")
        logInfo("email an info@my-emai-address.com", "text to log")
    end

happy new year!

Stefan,
thanks for example.
You reminded me to open a new Topic
I copied your example inside

In the new topic we publish only examples that work perfectly.

good idea michele, thanks
the second idea could be massimo wants to add it to his readme.

This morning I did other tests.
I configured two physical keys
image

image
It works well both from physical buttons and from OH

 Thing bus_cen_scenario_control  AAA_Cena "CEN Licht-test" @ "Cen/CenPlus" [ where="26", buttons="9,10" ]
String iLR_scenario_btn1 "light on" <network> { channel="openwebnet:bus_cen_scenario_control:mybridge:AAA_Cena:button_9" }
String iLR_scenario_btn2 "light off" <network> { channel="openwebnet:bus_cen_scenario_control:mybridge:AAA_Cena:button_10"}
Switch item=iLR_scenario_btn1 label="light on (btn9)" mappings=[PRESSED="Scenario (PRESSED)"]
Switch item=iLR_scenario_btn2 label="light off (btn10)" mappings=[PRESSED="Scenario (PRESSED)"]
rule "sktest"
    when
        Item iLR_scenario_btn1 changed or 
        Item iLR_scenario_btn2 changed  
    then
        logInfo("light btn1 test", "success!" )

        switch(iLR_scenario_btn1.state ) {
            case "PRESSED": {
               Luce_sala.sendCommand(ON)
            }
        }
        switch(iLR_scenario_btn2.state ) {
            case "PRESSED": {
               Luce_sala.sendCommand(OFF)
            }
        }    
end

as i manage my things and items manually i found out:

for cen-commands i have to add the installation niveau in the where-address. example for cen=21, buttons=9:

Thing bus_cen_scenario_control  AAA_Cena "CEN Licht-test" @ "Cen/CenPlus" [ where="21#4#01", buttons="9" ]

for cenplus-commands i have to add a “2” at the beginning, but not the installation-niveau. example cenplus=18, buttons=30:

Thing bus_cenplus_scenario_control cenplus_deko "dekolampe"	@ "Cen/CenPlus" [ where="218", buttons="30" ]

but i still don´t get it work completely because the rules are only working when i send the cen/cenplus command from sitemap. when i send a command for example from a physical switch the rule does nothing.

to check i created a rule that only inserts a “successfully triggered!” in the log-file. this only happens when cenplus is activated in sitemap.

this is my log when i send cenplus from sitemap:

2019-01-20 11:12:02.162 [ome.event.ItemCommandEvent] - Item 'icenplus_deko' received command PRESSED_EXT

==&gt; /var/log/openhab2/openhab.log &lt;==

2019-01-20 11:12:02.183 [DEBUG] [ebnet.handler.OpenWebNetThingHandler] - ==OWN:ThingHandler== handleCommand() (command=PRESSED_EXT - channel=openwebnet:bus_cenplus_scenario_control:MH200N:cenplus_deko:button_30)

==&gt; /var/log/openhab2/events.log &lt;==

2019-01-20 11:12:02.186 [nt.ItemStatePredictedEvent] - icenplus_deko predicted to become PRESSED_EXT

==&gt; /var/log/openhab2/openhab.log &lt;==

2019-01-20 11:12:02.194 [DEBUG] [et.handler.OpenWebNetScenarioHandler] - ==OWN:ScenarioHandler== handleChannelCommand() (command=PRESSED_EXT)

2019-01-20 11:12:02.210 [INFO ] [se.smarthome.model.script.light test] - success!

2019-01-20 11:12:02.217 [INFO ] [g.openwebnet.bus.MyHomeJavaConnector] - COM SENDING ============&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; *25*22#30*229##

2019-01-20 11:12:02.236 [INFO ] [se.smarthome.model.script.light test] - successfully triggered!

2019-01-20 11:12:02.295 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; *25*22#30*229##

2019-01-20 11:12:02.297 [INFO ] [g.openwebnet.bus.MyHomeSocketFactory] - COM RECEIVED &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;============ *#*1##

2019-01-20 11:12:02.301 [DEBUG] [bnet.handler.OpenWebNetBridgeHandler] - ==OWN== ownId=25.229

2019-01-20 11:12:02.305 [DEBUG] [et.handler.OpenWebNetScenarioHandler] - ==OWN:ScenarioHandler== handleMessage() for thing: openwebnet:bus_cenplus_scenario_control:MH200N:cenplus_deko

2019-01-20 11:12:02.308 [DEBUG] [et.handler.OpenWebNetScenarioHandler] - ==OWN:ScenarioHandler== updateButtonState() for thing: openwebnet:bus_cenplus_scenario_control:MH200N:cenplus_deko

2019-01-20 11:12:02.308 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; *17*1*163##

2019-01-20 11:12:02.312 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SCENARIO_PROGRAMMING NOT SUPPORTED, frame=*17*1*163##

2019-01-20 11:12:02.315 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *17*1*163##

2019-01-20 11:12:02.596 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; *17*2*163##

2019-01-20 11:12:02.600 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SCENARIO_PROGRAMMING NOT SUPPORTED, frame=*17*2*163##

2019-01-20 11:12:02.603 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *17*2*163##

2019-01-20 11:12:02.701 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; *1*1*43#4#01##

2019-01-20 11:12:02.705 [DEBUG] [bnet.handler.OpenWebNetBridgeHandler] - ==OWN== ownId=1.43#4#01

2019-01-20 11:12:02.709 [DEBUG] [et.handler.OpenWebNetLightingHandler] - ==OWN:LightingHandler== updateLightState() for thing: openwebnet:bus_on_off_switch:MH200N:EG_Li_FlurDekolampe

2019-01-20 11:12:02.718 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; *17*1*77##

2019-01-20 11:12:02.723 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SCENARIO_PROGRAMMING NOT SUPPORTED, frame=*17*1*77##

==&gt; /var/log/openhab2/events.log &lt;==

2019-01-20 11:12:02.723 [vent.ItemStateChangedEvent] - iEG_Li_FlurDekolampe changed from OFF to ON

==&gt; /var/log/openhab2/openhab.log &lt;==

2019-01-20 11:12:02.728 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *17*1*77##

2019-01-20 11:12:02.977 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; *#17*3*6*0##

2019-01-20 11:12:02.982 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SCENARIO_PROGRAMMING NOT SUPPORTED, frame=*#17*3*6*0##

2019-01-20 11:12:02.986 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *#17*3*6*0##

2019-01-20 11:12:03.011 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; *17*2*77##

2019-01-20 11:12:03.016 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SCENARIO_PROGRAMMING NOT SUPPORTED, frame=*17*2*77##

2019-01-20 11:12:03.021 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *17*2*77##

==&gt; /var/log/openhab2/events.log &lt;==

2019-01-20 11:12:06.230 [vent.ItemStateChangedEvent] - iTK_Tmp_Aussen changed from -4.9375 °C to -5 °C

==&gt; /var/log/openhab2/openhab.log &lt;==

2019-01-20 11:12:07.750 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; *1*0*43#4#01##

2019-01-20 11:12:07.756 [DEBUG] [bnet.handler.OpenWebNetBridgeHandler] - ==OWN== ownId=1.43#4#01

2019-01-20 11:12:07.760 [DEBUG] [et.handler.OpenWebNetLightingHandler] - ==OWN:LightingHandler== updateLightState() for thing: openwebnet:bus_on_off_switch:MH200N:EG_Li_FlurDekolampe

2019-01-20 11:12:07.767 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; *17*1*78##

2019-01-20 11:12:07.772 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SCENARIO_PROGRAMMING NOT SUPPORTED, frame=*17*1*78##

2019-01-20 11:12:07.777 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *17*1*78##

==&gt; /var/log/openhab2/events.log &lt;==

2019-01-20 11:12:07.791 [vent.ItemStateChangedEvent] - iEG_Li_FlurDekolampe changed from ON to OFF

and this is the same cenplus sent from physical switch:

9-01-20 11:13:58.394 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; *25*22#30*229##

2019-01-20 11:13:58.399 [DEBUG] [bnet.handler.OpenWebNetBridgeHandler] - ==OWN== ownId=25.229

2019-01-20 11:13:58.405 [DEBUG] [et.handler.OpenWebNetScenarioHandler] - ==OWN:ScenarioHandler== handleMessage() for thing: openwebnet:bus_cenplus_scenario_control:MH200N:cenplus_deko

2019-01-20 11:13:58.408 [DEBUG] [et.handler.OpenWebNetScenarioHandler] - ==OWN:ScenarioHandler== updateButtonState() for thing: openwebnet:bus_cenplus_scenario_control:MH200N:cenplus_deko

2019-01-20 11:13:58.418 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; *17*1*163##

2019-01-20 11:13:58.423 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SCENARIO_PROGRAMMING NOT SUPPORTED, frame=*17*1*163##

2019-01-20 11:13:58.427 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *17*1*163##

2019-01-20 11:13:58.715 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; *17*2*163##

2019-01-20 11:13:58.720 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SCENARIO_PROGRAMMING NOT SUPPORTED, frame=*17*2*163##

2019-01-20 11:13:58.723 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *17*2*163##

2019-01-20 11:13:58.819 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; *1*1*43#4#01##

2019-01-20 11:13:58.832 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; *17*1*77##

2019-01-20 11:13:58.832 [DEBUG] [bnet.handler.OpenWebNetBridgeHandler] - ==OWN== ownId=1.43#4#01

2019-01-20 11:13:58.837 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SCENARIO_PROGRAMMING NOT SUPPORTED, frame=*17*1*77##

2019-01-20 11:13:58.839 [DEBUG] [et.handler.OpenWebNetLightingHandler] - ==OWN:LightingHandler== updateLightState() for thing: openwebnet:bus_on_off_switch:MH200N:EG_Li_FlurDekolampe

2019-01-20 11:13:58.846 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *17*1*77##

==&gt; /var/log/openhab2/events.log &lt;==

2019-01-20 11:13:58.860 [vent.ItemStateChangedEvent] - iEG_Li_FlurDekolampe changed from OFF to ON

==&gt; /var/log/openhab2/openhab.log &lt;==

2019-01-20 11:13:58.931 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; *25*23#30*229##

2019-01-20 11:13:58.941 [DEBUG] [bnet.handler.OpenWebNetBridgeHandler] - ==OWN== ownId=25.229

2019-01-20 11:13:58.947 [DEBUG] [et.handler.OpenWebNetScenarioHandler] - ==OWN:ScenarioHandler== handleMessage() for thing: openwebnet:bus_cenplus_scenario_control:MH200N:cenplus_deko

2019-01-20 11:13:58.952 [DEBUG] [et.handler.OpenWebNetScenarioHandler] - ==OWN:ScenarioHandler== updateButtonState() for thing: openwebnet:bus_cenplus_scenario_control:MH200N:cenplus_deko

2019-01-20 11:13:58.955 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; *25*24#30*229##

2019-01-20 11:13:58.961 [DEBUG] [bnet.handler.OpenWebNetBridgeHandler] - ==OWN== ownId=25.229

2019-01-20 11:13:58.972 [DEBUG] [et.handler.OpenWebNetScenarioHandler] - ==OWN:ScenarioHandler== handleMessage() for thing: openwebnet:bus_cenplus_scenario_control:MH200N:cenplus_deko

2019-01-20 11:13:58.977 [DEBUG] [et.handler.OpenWebNetScenarioHandler] - ==OWN:ScenarioHandler== updateButtonState() for thing: openwebnet:bus_cenplus_scenario_control:MH200N:cenplus_deko

==&gt; /var/log/openhab2/events.log &lt;==

2019-01-20 11:13:59.001 [vent.ItemStateChangedEvent] - icenplus_deko changed from PRESSED_EXT to RELEASED_EXT

==&gt; /var/log/openhab2/openhab.log &lt;==

2019-01-20 11:13:59.157 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; *#17*3*6*0##

2019-01-20 11:13:59.161 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SCENARIO_PROGRAMMING NOT SUPPORTED, frame=*#17*3*6*0##

2019-01-20 11:13:59.165 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *#17*3*6*0##

2019-01-20 11:13:59.198 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; *17*2*77##

2019-01-20 11:13:59.202 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SCENARIO_PROGRAMMING NOT SUPPORTED, frame=*17*2*77##

2019-01-20 11:13:59.206 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *17*2*77##

==&gt; /var/log/openhab2/events.log &lt;==

2019-01-20 11:14:02.755 [vent.ItemStateChangedEvent] - iTK_Tmp_SolarVL changed from 27.6875 °C to 27.625 °C

2019-01-20 11:14:03.558 [vent.ItemStateChangedEvent] - iTK_Tmp_Technikraum changed from 27.75 °C to 27.8125 °C

==&gt; /var/log/openhab2/openhab.log &lt;==

2019-01-20 11:14:03.844 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; *1*0*43#4#01##

2019-01-20 11:14:03.849 [DEBUG] [bnet.handler.OpenWebNetBridgeHandler] - ==OWN== ownId=1.43#4#01

2019-01-20 11:14:03.854 [DEBUG] [et.handler.OpenWebNetLightingHandler] - ==OWN:LightingHandler== updateLightState() for thing: openwebnet:bus_on_off_switch:MH200N:EG_Li_FlurDekolampe

2019-01-20 11:14:03.866 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED &lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt; *17*1*78##

2019-01-20 11:14:03.870 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SCENARIO_PROGRAMMING NOT SUPPORTED, frame=*17*1*78##

2019-01-20 11:14:03.874 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *17*1*78##

==&gt; /var/log/openhab2/events.log &lt;==

2019-01-20 11:14:03.884 [vent.ItemStateChangedEvent] - iEG_Li_FlurDekolampe changed from ON to OFF

things:

Thing bus_cenplus_scenario_control cenplus_deko "dekolampe"	@ "Cen/CenPlus" [ where="229", buttons="30" ]
items:

```csv
String icenplus_deko "dekoli" <network> { channel="openwebnet:bus_cenplus_scenario_control:MH200N:cenplus_deko:button_30" }

sitemap:

Switch  item=icenplus_deko label="dekoli []" 	mappings=[PRESSED_EXT="5sek", RELEASED="xx"]

rules:


rule "test cenplus29 dekol"
    when
        //Item icenplus_treppe_ein changed
        Item icenplus_deko received command
    then
        logInfo("light test", "success!")

        switch(icenplus_deko.state ) {
            case "PRESSED_EXT": {
                logInfo("light test", "successfully triggered!")
//                iEG_Li_FlurDekolampe.sendCommand(ON)
//                Thread::sleep(1500)
//                iEG_Li_FlurDekolampe.sendCommand(OFF)
            }
    }    
    end

I simulated with OpenWebNet Client

oppps
Now I read your answer, seen now while I was writing