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
==> /var/log/openhab2/openhab.log <==
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)
==> /var/log/openhab2/events.log <==
2019-01-20 11:12:02.186 [nt.ItemStatePredictedEvent] - icenplus_deko predicted to become PRESSED_EXT
==> /var/log/openhab2/openhab.log <==
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 ============>>>>>>>>>>>> *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 <<<<<<<<<<< *25*22#30*229##
2019-01-20 11:12:02.297 [INFO ] [g.openwebnet.bus.MyHomeSocketFactory] - COM RECEIVED <<<<<<<<<<<<============ *#*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 <<<<<<<<<<< *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 <<<<<<<<<<< *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 <<<<<<<<<<< *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 <<<<<<<<<<< *17*1*77##
2019-01-20 11:12:02.723 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SCENARIO_PROGRAMMING NOT SUPPORTED, frame=*17*1*77##
==> /var/log/openhab2/events.log <==
2019-01-20 11:12:02.723 [vent.ItemStateChangedEvent] - iEG_Li_FlurDekolampe changed from OFF to ON
==> /var/log/openhab2/openhab.log <==
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 <<<<<<<<<<< *#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 <<<<<<<<<<< *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##
==> /var/log/openhab2/events.log <==
2019-01-20 11:12:06.230 [vent.ItemStateChangedEvent] - iTK_Tmp_Aussen changed from -4.9375 °C to -5 °C
==> /var/log/openhab2/openhab.log <==
2019-01-20 11:12:07.750 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *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 <<<<<<<<<<< *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##
==> /var/log/openhab2/events.log <==
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 <<<<<<<<<<< *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 <<<<<<<<<<< *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 <<<<<<<<<<< *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 <<<<<<<<<<< *1*1*43#4#01##
2019-01-20 11:13:58.832 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *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##
==> /var/log/openhab2/events.log <==
2019-01-20 11:13:58.860 [vent.ItemStateChangedEvent] - iEG_Li_FlurDekolampe changed from OFF to ON
==> /var/log/openhab2/openhab.log <==
2019-01-20 11:13:58.931 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *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 <<<<<<<<<<< *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
==> /var/log/openhab2/events.log <==
2019-01-20 11:13:59.001 [vent.ItemStateChangedEvent] - icenplus_deko changed from PRESSED_EXT to RELEASED_EXT
==> /var/log/openhab2/openhab.log <==
2019-01-20 11:13:59.157 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *#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 <<<<<<<<<<< *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##
==> /var/log/openhab2/events.log <==
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
==> /var/log/openhab2/openhab.log <==
2019-01-20 11:14:03.844 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *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 <<<<<<<<<<< *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##
==> /var/log/openhab2/events.log <==
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