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
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
thanks michele for opening the issue for me
massimo, perhaps i did something wrong, i cannot find out why thing disappeared, this does not happen again - everything ok
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
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
==> /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
same for me don´t understand why its working for you but not for me? only difference is i tested now with cenplus. but tried with cen before and the same problems. may be the need of the installation-niveau thats different for me? don´t know
I think we have two differences between you and me:
1 - I do not use where="21#4#01"
but where="24"
not #4#01
2- I have no scenario programmed on MH, try to deactivate the scenario on your MH200
I think I understand your problem.
[quote="bastler, post:85, topic:54142"]
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##
[/quote]
You have the physical key programmed for WHO = 17 not for WHO = 15
WHO = 17 is not supported
WHO = 15 CEN
WHO = 25 CEN+
about the differences between us:
yes, this additional “#4#01” is the installation-niveau that i have to add. i need that almost everywhere, even for switches
this i tried at the moment. i added a new cenplus-address that is not programmed in my mh200n. the same result, rule does only trigger when startet from sitemap. but amazing: when i start from physical switch i see the button in sitemap is activating (but not the rule)
don´t know why is who=17. i configured the switch in myhomesuite as “scheduled scenario plus” ??
Hi @gozilla01 and @bastler
Good that you are doing careful testing!
I suggest you do this:
@bastler
Copy your configuration and erase everything you do not need to take the test, so minimize it.
See also if it is not a cache problem to be deleted.
Make a backup, I happened to delete the cache and everything is crack.
Do you use the latest version of OH 2.4.0?
thank you all, i´ll minimize the config and test again. michele, can you please tell how to clear cache?
@bastler
Test use client openwebnet command:
CEN with button = 9 and where 26
*15*09#1*26##
CEN with button = 10 and where 26
*15*10#1*26##
I think these commands are for you (CEN with Where=21, button =9 and 10):
*15*09#1*21#4#01##
*15*10#1*21#4#01##
thank you both very much, now it works!
it seems the cache was the problem:
i minimized configuration, cleared the cache and restarted openhabian. after that the openwebnet-binding was gone, i had to install it again (including feature:install…).
but then it worked. now i restored all my manual config back and it still works, great
best, stefan