sudo systemctl stop openhab2.service
rm -rf /var/lib/openhab2/cache/*
rm -rf /var/lib/openhab2/tmp/*
sudo systemctl start openhab2.service
or
sudo systemctl stop openhab2
sudo openhab-cli clean-cache
sudo systemctl start openhab2
sudo systemctl stop openhab2.service
rm -rf /var/lib/openhab2/cache/*
rm -rf /var/lib/openhab2/tmp/*
sudo systemctl start openhab2.service
or
sudo systemctl stop openhab2
sudo openhab-cli clean-cache
sudo systemctl start openhab2
Massi,
The discovery does not find the 3476 Basic
How can I help you ?
Try manually creating the Thing and item like this:
Things file
Thing bus_dry_contact_ir 31 "Garage door closed sensor" [ where="31" ]
Items file
//3477 contacts interfaces
Switch GarageDoorClosed_Sensor "Garage door closed" <garagedoor> {channel="openwebnet:bus_dry_contact_ir:Screen10:31:sensor"}
Where in 31 the 1 is the contact number. Keep the three and just change the second number.
That worked for my 3477 interfaces even though they were not discovered by PaperUI
Thanks Mark,
I can make it work via file configuration.
My post referred to Massimo for completeness of your problem with the automatic discovery
Both 3476 and 3477 are not recognized for automatic discovery
hi massimo,
i was to fast, only cenplus is working here, cen-commands can be sent from sitemap and paperui, but they are not triggered form rules. i suppose the reason may be the installation-niveau because that is the only difference here to the other users.
to be sure i did no errors in manual config i run the discovery and found the cen there (nothing maually added) the cen is working from every site: paperui, sitemap and physical switch. but the corresponding rule only triggers from paperui and sitemap, not from “external”. to check that i created a rule that inserts “successfully ACENControlWHERE31401_Button1” in the log when button pressed
please look at the logs, this is when i send cen 31#4#01 button 1 during paperui, you see the rule works, “successfully …” is added:
==> /var/log/openhab2/openhab.log <==
2019-01-21 07:55:22.773 [INFO ] [.internal.handler.OwBaseThingHandler] - updating thing properties failed: I/O error: exception while reading packet - Read timed out
==> /var/log/openhab2/events.log <==
2019-01-21 07:55:24.990 [ome.event.ItemCommandEvent] - Item 'ACENControlWHERE31401_Button1' received command PRESSED
==> /var/log/openhab2/openhab.log <==
2019-01-21 07:55:25.038 [INFO ] [thome.model.script.CEN wc musik test] - successfully ACENControlWHERE31401_Button1
2019-01-21 07:55:25.050 [DEBUG] [ebnet.handler.OpenWebNetThingHandler] - ==OWN:ThingHandler== handleCommand() (command=PRESSED - channel=openwebnet:bus_cen_scenario_control:MH200N:31h4h01:button_1)
==> /var/log/openhab2/events.log <==
2019-01-21 07:55:25.047 [nt.ItemStatePredictedEvent] - ACENControlWHERE31401_Button1 predicted to become PRESSED
==> /var/log/openhab2/openhab.log <==
2019-01-21 07:55:25.057 [DEBUG] [et.handler.OpenWebNetScenarioHandler] - ==OWN:ScenarioHandler== handleChannelCommand() (command=PRESSED)
2019-01-21 07:55:25.064 [INFO ] [g.openwebnet.bus.MyHomeJavaConnector] - COM SENDING ============>>>>>>>>>>>> *15*01*31#4#01##
==> /var/log/openhab2/events.log <==
2019-01-21 07:55:25.064 [vent.ItemStateChangedEvent] - ACENControlWHERE31401_Button1 changed from RELEASED to PRESSED
==> /var/log/openhab2/openhab.log <==
2019-01-21 07:55:25.068 [DEBUG] [g.openwebnet.bus.MyHomeSocketFactory] - ##gw-openwebnet-socket## CANNOT read from socket: read returned -1
2019-01-21 07:55:25.072 [DEBUG] [g.openwebnet.bus.MyHomeJavaConnector] - ##gw-openwebnet-connector## read returned -1
2019-01-21 07:55:25.076 [DEBUG] [g.openwebnet.bus.MyHomeJavaConnector] - ##gw-openwebnet-connector## let's try with a NEW SESSION...
2019-01-21 07:55:25.079 [INFO ] [g.openwebnet.bus.MyHomeSocketFactory] - ##gw-openwebnet-socket## Trying openCommandSession() socket.... (172.20.90.2:20000)
2019-01-21 07:55:25.086 [DEBUG] [org.openwebnet.bus.MyHomeConnection ] - ##gw-openwebnet-conn## ... starting HANDSHAKE ...
2019-01-21 07:55:25.089 [DEBUG] [org.openwebnet.bus.MyHomeConnection ] - COM RECEIVED <<<<<<====== *#*1##
2019-01-21 07:55:25.093 [DEBUG] [org.openwebnet.bus.MyHomeConnection ] - COM SENDING ======>>>>>> *99*0##
2019-01-21 07:55:25.097 [DEBUG] [org.openwebnet.bus.MyHomeConnection ] - COM RECEIVED <<<<<<====== *#*1##
2019-01-21 07:55:25.100 [INFO ] [g.openwebnet.bus.MyHomeSocketFactory] - ##gw-openwebnet-socket## ... CONNECTED command session 172.20.90.2:20000
2019-01-21 07:55:25.104 [INFO ] [g.openwebnet.bus.MyHomeJavaConnector] - COM SENDING ============>>>>>>>>>>>> *15*01*31#4#01##
2019-01-21 07:55:25.181 [INFO ] [g.openwebnet.bus.MyHomeSocketFactory] - COM RECEIVED <<<<<<<<<<<<============ *#*1##
2019-01-21 07:55:25.185 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *15*01*31#4#01##
2019-01-21 07:55:25.190 [DEBUG] [bnet.handler.OpenWebNetBridgeHandler] - ==OWN== ownId=15.31#4#01
2019-01-21 07:55:25.194 [DEBUG] [et.handler.OpenWebNetScenarioHandler] - ==OWN:ScenarioHandler== handleMessage() for thing: openwebnet:bus_cen_scenario_control:MH200N:31h4h01
2019-01-21 07:55:25.195 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *17*1*85##
2019-01-21 07:55:25.197 [DEBUG] [et.handler.OpenWebNetScenarioHandler] - ==OWN:ScenarioHandler== updateButtonState() for thing: openwebnet:bus_cen_scenario_control:MH200N:31h4h01
2019-01-21 07:55:25.199 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SCENARIO_PROGRAMMING NOT SUPPORTED, frame=*17*1*85##
2019-01-21 07:55:25.203 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *17*1*85##
2019-01-21 07:55:25.839 [INFO ] [.internal.handler.OwBaseThingHandler] - updating thing properties failed: I/O error: exception while reading packet - Read timed out
2019-01-21 07:55:25.843 [DEBUG] [et.handler.OpenWebNetScenarioHandler] - ==OWN:ScenarioHandler== # 31#4#01 sending CEN virtual release...
2019-01-21 07:55:25.849 [INFO ] [g.openwebnet.bus.MyHomeJavaConnector] - COM SENDING ============>>>>>>>>>>>> *15*01#1*31#4#01##
2019-01-21 07:55:26.142 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *16*3*123##
2019-01-21 07:55:26.149 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SOUND_SYSTEM_1 IS DEPRECATED and NOT SUPPORTED, frame=*16*3*123##
2019-01-21 07:55:26.153 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *16*3*123##
2019-01-21 07:55:26.158 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *22*21#4#2*5#2#1##
2019-01-21 07:55:26.162 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SOUND_SYSTEM_2 NOT SUPPORTED, frame=*22*21#4#2*5#2#1##
2019-01-21 07:55:26.167 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *22*21#4#2*5#2#1##
2019-01-21 07:55:26.170 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *22*23#4#2*5#2#3##
2019-01-21 07:55:26.178 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SOUND_SYSTEM_2 NOT SUPPORTED, frame=*22*23#4#2*5#2#3##
2019-01-21 07:55:26.182 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *22*23#4#2*5#2#3##
2019-01-21 07:55:26.187 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *22*2#4#2*5#2#3##
2019-01-21 07:55:26.192 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SOUND_SYSTEM_2 NOT SUPPORTED, frame=*22*2#4#2*5#2#3##
2019-01-21 07:55:26.197 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *22*2#4#2*5#2#3##
2019-01-21 07:55:26.234 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *15*01#1*31#4#01##
2019-01-21 07:55:26.234 [INFO ] [g.openwebnet.bus.MyHomeSocketFactory] - COM RECEIVED <<<<<<<<<<<<============ *#*1##
2019-01-21 07:55:26.248 [DEBUG] [bnet.handler.OpenWebNetBridgeHandler] - ==OWN== ownId=15.31#4#01
2019-01-21 07:55:26.252 [DEBUG] [et.handler.OpenWebNetScenarioHandler] - ==OWN:ScenarioHandler== handleMessage() for thing: openwebnet:bus_cen_scenario_control:MH200N:31h4h01
2019-01-21 07:55:26.256 [DEBUG] [et.handler.OpenWebNetScenarioHandler] - ==OWN:ScenarioHandler== updateButtonState() for thing: openwebnet:bus_cen_scenario_control:MH200N:31h4h01
2019-01-21 07:55:26.345 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *17*2*85##
2019-01-21 07:55:26.348 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SCENARIO_PROGRAMMING NOT SUPPORTED, frame=*17*2*85##
2019-01-21 07:55:26.351 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *17*2*85##
2019-01-21 07:55:26.538 [DEBUG] [et.handler.OpenWebNetScenarioHandler] - ==OWN:ScenarioHandler== # 31#4#01 updating state to 'RELEASED'...
==> /var/log/openhab2/events.log <==
2019-01-21 07:55:26.550 [vent.ItemStateChangedEvent] - ACENControlWHERE31401_Button1 changed from PRESSED to RELEASED
==> /var/log/openhab2/openhab.log <==
2019-01-21 07:55:27.024 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *22*21#4#2*5#2#3##
2019-01-21 07:55:27.028 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SOUND_SYSTEM_2 NOT SUPPORTED, frame=*22*21#4#2*5#2#3##
2019-01-21 07:55:27.032 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *22*21#4#2*5#2#3##
2019-01-21 07:55:27.246 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *16*3*21##
2019-01-21 07:55:27.251 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SOUND_SYSTEM_1 IS DEPRECATED and NOT SUPPORTED, frame=*16*3*21##
2019-01-21 07:55:27.256 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *16*3*21##
2019-01-21 07:55:27.260 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *#22*3#2#1*12*1*4##
2019-01-21 07:55:27.266 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SOUND_SYSTEM_2 NOT SUPPORTED, frame=*#22*3#2#1*12*1*4##
2019-01-21 07:55:27.270 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *#22*3#2#1*12*1*4##
2019-01-21 07:55:27.285 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *#16*21*1*0##
2019-01-21 07:55:27.290 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SOUND_SYSTEM_1 IS DEPRECATED and NOT SUPPORTED, frame=*#16*21*1*0##
2019-01-21 07:55:27.295 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *#16*21*1*0##
2019-01-21 07:55:27.300 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *#22*3#2#1*1*0##
2019-01-21 07:55:27.305 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SOUND_SYSTEM_2 NOT SUPPORTED, frame=*#22*3#2#1*1*0##
2019-01-21 07:55:27.309 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *#22*3#2#1*1*0##
2019-01-21 07:55:27.315 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *16*3*123##
2019-01-21 07:55:27.324 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SOUND_SYSTEM_1 IS DEPRECATED and NOT SUPPORTED, frame=*16*3*123##
2019-01-21 07:55:27.327 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *16*3*123##
2019-01-21 07:55:27.331 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *22*2#4#2*5#2#3##
2019-01-21 07:55:27.334 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SOUND_SYSTEM_2 NOT SUPPORTED, frame=*22*2#4#2*5#2#3##
2019-01-21 07:55:27.338 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *22*2#4#2*5#2#3##
2019-01-21 07:55:27.406 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *16*13*101##
2019-01-21 07:55:27.410 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SOUND_SYSTEM_1 IS DEPRECATED and NOT SUPPORTED, frame=*16*13*101##
2019-01-21 07:55:27.414 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *16*13*101##
2019-01-21 07:55:27.417 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *#22*2#1*12*0*10##
2019-01-21 07:55:27.421 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SOUND_SYSTEM_2 NOT SUPPORTED, frame=*#22*2#1*12*0*10##
2019-01-21 07:55:27.424 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *#22*2#1*12*0*10##
2019-01-21 07:55:28.337 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *#16*21*1*9##
2019-01-21 07:55:28.341 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SOUND_SYSTEM_1 IS DEPRECATED and NOT SUPPORTED, frame=*#16*21*1*9##
2019-01-21 07:55:28.344 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *#16*21*1*9##
2019-01-21 07:55:28.356 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *#22*3#2#1*1*9##
2019-01-21 07:55:28.360 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SOUND_SYSTEM_2 NOT SUPPORTED, frame=*#22*3#2#1*1*9##
2019-01-21 07:55:28.363 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *#22*3#2#1*1*9##
2019-01-21 07:55:28.908 [INFO ] [.internal.handler.OwBaseThingHandler] - updating thing properties failed: I/O error: exception while reading packet - Read timed out
2019-01-21 07:55:31.968 [INFO ] [.internal.handler.OwBaseThingHandler] - updating thing properties failed: I/O error: exception while reading packet - Read timed out
2019-01-21 07:55:35.106 [INFO ] [.internal.handler.OwBaseThingHandler] - updating thing properties failed: I/O error: exception while reading packet - Read timed out
2019-01-21 07:55:38.180 [INFO ] [.internal.handler.OwBaseThingHandler] - updating thing properties failed: I/O error: exception while reading packet - Read timed out
==> /var/log/openhab2/events.log <==
2019-01-21 07:55:39.039 [vent.ItemStateChangedEvent] - iTK_Tmp_KaminVL changed from 41.3125 °C to 41.125 °C
==> /var/log/openhab2/openhab.log <==
2019-01-21 07:55:40.494 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *#1*0011#4#01*6*16##
2019-01-21 07:55:40.499 [DEBUG] [bnet.handler.OpenWebNetBridgeHandler] - ==OWN== ownId=1.0011#4#01
2019-01-21 07:55:40.502 [DEBUG] [bnet.handler.OpenWebNetBridgeHandler] - ==OWN== ownId=1.0011#4#01 has NO DEVICE associated, ignoring it
2019-01-21 07:55:42.092 [INFO ] [.internal.handler.OwBaseThingHandler] - updating thing properties failed: I/O error: exception while reading packet - Read timed out
2019-01-21 07:55:45.159 [INFO ] [.internal.handler.OwBaseThingHandler] - updating thing properties failed: I/O error: exception while reading packet - Read timed out
but when i start cen from external, the rule does not react:
.handler.OwBaseThingHandler] - updating thing properties failed: I/O error: exception while reading packet - Read timed out
2019-01-21 08:06:05.460 [INFO ] [.internal.handler.OwBaseThingHandler] - updating thing properties failed: I/O error: exception while reading packet - Read timed out
2019-01-21 08:06:06.380 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *15*01*31#4#01##
2019-01-21 08:06:06.385 [DEBUG] [bnet.handler.OpenWebNetBridgeHandler] - ==OWN== ownId=15.31#4#01
2019-01-21 08:06:06.389 [DEBUG] [et.handler.OpenWebNetScenarioHandler] - ==OWN:ScenarioHandler== handleMessage() for thing: openwebnet:bus_cen_scenario_control:MH200N:31h4h01
2019-01-21 08:06:06.393 [DEBUG] [et.handler.OpenWebNetScenarioHandler] - ==OWN:ScenarioHandler== updateButtonState() for thing: openwebnet:bus_cen_scenario_control:MH200N:31h4h01
2019-01-21 08:06:06.416 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *17*1*85##
2019-01-21 08:06:06.420 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SCENARIO_PROGRAMMING NOT SUPPORTED, frame=*17*1*85##
2019-01-21 08:06:06.424 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *17*1*85##
2019-01-21 08:06:07.338 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *16*3*123##
2019-01-21 08:06:07.345 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SOUND_SYSTEM_1 IS DEPRECATED and NOT SUPPORTED, frame=*16*3*123##
2019-01-21 08:06:07.349 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *16*3*123##
2019-01-21 08:06:07.354 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *22*21#4#2*5#2#1##
2019-01-21 08:06:07.359 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SOUND_SYSTEM_2 NOT SUPPORTED, frame=*22*21#4#2*5#2#1##
2019-01-21 08:06:07.364 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *22*21#4#2*5#2#1##
2019-01-21 08:06:07.368 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *22*23#4#2*5#2#3##
2019-01-21 08:06:07.374 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SOUND_SYSTEM_2 NOT SUPPORTED, frame=*22*23#4#2*5#2#3##
2019-01-21 08:06:07.378 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *22*23#4#2*5#2#3##
2019-01-21 08:06:07.383 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *22*2#4#2*5#2#3##
2019-01-21 08:06:07.388 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SOUND_SYSTEM_2 NOT SUPPORTED, frame=*22*2#4#2*5#2#3##
2019-01-21 08:06:07.393 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *22*2#4#2*5#2#3##
2019-01-21 08:06:07.461 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *17*2*85##
2019-01-21 08:06:07.465 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SCENARIO_PROGRAMMING NOT SUPPORTED, frame=*17*2*85##
2019-01-21 08:06:07.468 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *17*2*85##
2019-01-21 08:06:08.132 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *22*21#4#2*5#2#3##
2019-01-21 08:06:08.136 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SOUND_SYSTEM_2 NOT SUPPORTED, frame=*22*21#4#2*5#2#3##
2019-01-21 08:06:08.140 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *22*21#4#2*5#2#3##
2019-01-21 08:06:08.372 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *16*3*123##
2019-01-21 08:06:08.377 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SOUND_SYSTEM_1 IS DEPRECATED and NOT SUPPORTED, frame=*16*3*123##
2019-01-21 08:06:08.382 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *16*3*123##
2019-01-21 08:06:08.387 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *22*2#4#2*5#2#3##
2019-01-21 08:06:08.392 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SOUND_SYSTEM_2 NOT SUPPORTED, frame=*22*2#4#2*5#2#3##
2019-01-21 08:06:08.397 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *22*2#4#2*5#2#3##
2019-01-21 08:06:08.502 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *16*3*21##
2019-01-21 08:06:08.507 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SOUND_SYSTEM_1 IS DEPRECATED and NOT SUPPORTED, frame=*16*3*21##
2019-01-21 08:06:08.512 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *16*3*21##
2019-01-21 08:06:08.517 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *#22*3#2#1*12*1*4##
2019-01-21 08:06:08.522 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SOUND_SYSTEM_2 NOT SUPPORTED, frame=*#22*3#2#1*12*1*4##
2019-01-21 08:06:08.527 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *#22*3#2#1*12*1*4##
2019-01-21 08:06:08.542 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *#16*21*1*0##
2019-01-21 08:06:08.547 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SOUND_SYSTEM_1 IS DEPRECATED and NOT SUPPORTED, frame=*#16*21*1*0##
2019-01-21 08:06:08.552 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *#16*21*1*0##
2019-01-21 08:06:08.558 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *#22*3#2#1*1*0##
2019-01-21 08:06:08.567 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SOUND_SYSTEM_2 NOT SUPPORTED, frame=*#22*3#2#1*1*0##
2019-01-21 08:06:08.571 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *#22*3#2#1*1*0##
2019-01-21 08:06:08.600 [INFO ] [.internal.handler.OwBaseThingHandler] - updating thing properties failed: I/O error: exception while reading packet - Read timed out
2019-01-21 08:06:08.821 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *16*13*101##
2019-01-21 08:06:08.825 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SOUND_SYSTEM_1 IS DEPRECATED and NOT SUPPORTED, frame=*16*13*101##
2019-01-21 08:06:08.829 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *16*13*101##
2019-01-21 08:06:08.833 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *#22*2#1*12*0*10##
2019-01-21 08:06:08.843 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SOUND_SYSTEM_2 NOT SUPPORTED, frame=*#22*2#1*12*0*10##
2019-01-21 08:06:08.846 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *#22*2#1*12*0*10##
2019-01-21 08:06:09.471 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *#16*21*1*9##
2019-01-21 08:06:09.476 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SOUND_SYSTEM_1 IS DEPRECATED and NOT SUPPORTED, frame=*#16*21*1*9##
2019-01-21 08:06:09.480 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *#16*21*1*9##
2019-01-21 08:06:09.484 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *#22*3#2#1*1*9##
2019-01-21 08:06:09.489 [DEBUG] [penwebnet.message.OpenMessageFactory] - ##openwebnet## WHO=SOUND_SYSTEM_2 NOT SUPPORTED, frame=*#22*3#2#1*1*9##
2019-01-21 08:06:09.493 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## Malformed/Unsupported OpenMessage: *#22*3#2#1*1*9##
2019-01-21 08:06:11.669 [INFO ] [.internal.handler.OwBaseThingHandler] - updating thing properties failed: I/O error: exception while reading packet - Read timed out
2019-01-21 08:06:14.726 [INFO ] [.internal.handler.OwBaseThingHandler] - updating thing properties failed: I/O error: exception while reading packet - Read timed out
2019-01-21 08:06:15.975 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *#13**22*08*06*33*001*01*21*01*2019##
2019-01-21 08:06:15.979 [DEBUG] [org.openwebnet.OpenGatewayBus ] - ##gw-openwebnet-BUS## handleManagementDimension not processed
2019-01-21 08:06:15.983 [DEBUG] [bnet.handler.OpenWebNetBridgeHandler] - ==OWN== GatewayManagement WHAT = null
this is the test rule:
rule "CEN wc musik test an"
when
Item ACENControlWHERE31401_Button1 received command
then
logInfo("CEN wc musik test", "successfully ACENControlWHERE31401_Button1")
end
Hi Massimo,
yesterday during the tests with Stefan noticed some problems with CEN / CEN +, I hope I can explain myself well.
OH 2.4.0
beta 9-2
1 Problem
.things
Thing bus_cenplus_scenario_control Cenplus_test "Scenario+ Test" @ "Test" [ where="210", buttons="9,10" ]
Thing bus_cen_scenario_control Cen_test "Scenario Test" @ "Test" [ where="26", buttons="9,10" ]
.items
String iLR_cenplus_test9 "CEN+ B9" <network> { channel="openwebnet:bus_cenplus_scenario_control:mybridge:Cenplus_test:button_9" }
String iLR_cenplus_test10 "CEN+ B10" <network> { channel="openwebnet:bus_cenplus_scenario_control:mybridge:Cenplus_test:button_10"}
String iLR_cen_test9 "CEN B9" <network> { channel="openwebnet:bus_cen_scenario_control:mybridge:Cen_test:button_9" }
String iLR_cen_test10 "CEN B10" <network> { channel="openwebnet:bus_cen_scenario_control:mybridge:Cen_test:button_10"}
.sitemaps
Switch item=iLR_cenplus_test9 label="CEN+ B9" mappings=[PRESSED="Scenario (PRESSED)",PRESSED_EXT="Scenario (PRESSED_EXT)"]
Switch item=iLR_cenplus_test10 label="CEN+ B10" mappings=[PRESSED="Scenario (PRESSED)",PRESSED_EXT="Scenario (PRESSED_EXT)"]
Switch item=iLR_cen_test9 label="CEN B9" mappings=[PRESSED="Scenario (PRESSED)",PRESSED_EXT="Scenario (PRESSED_EXT)"]
Switch item=iLR_cen_test10 label="CEN B10" mappings=[PRESSED="Scenario (PRESSED)",PRESSED_EXT="Scenario (PRESSED_EXT)"]
.rules
rule "sktest9"
when
Item iLR_cenplus_test9 changed
then
switch(iLR_cenplus_test9.state ) {
case "PRESSED": {
logInfo("CEN+ B9", "success!" )
Luce_sala.sendCommand(ON)
}
case "PRESSED_EXT": {
logInfo("CEN+ B9 EXT", "success!" )
Luce_sala.sendCommand(ON)
}
}
end
rule "sktest10"
when
Item iLR_cenplus_test10 changed
then
switch(iLR_cenplus_test10.state ) {
case "PRESSED": {
logInfo("CEN+ B10 OFF", "success!" )
Luce_sala.sendCommand(OFF)
}
case "PRESSED_EXT": {
logInfo("CEN+ B10 OFF EXT", "success!" )
Luce_sala.sendCommand(OFF)
}
}
end
rule "sktest9a"
when
Item iLR_cen_test9 changed
then
switch(iLR_cen_test9.state ) {
case "PRESSED": {
logInfo("CEN B9 ON", "success!" )
Luce_sala.sendCommand(ON)
}
case "PRESSED_EXT": {
logInfo("CEN B9 ON EXT", "success!" )
Luce_sala.sendCommand(ON)
}
}
end
rule "sktest10A"
when
Item iLR_cen_test10 changed
then
switch(iLR_cen_test10.state ) {
case "PRESSED": {
logInfo("CEN B10 OFF", "success!" )
Luce_sala.sendCommand(OFF)
}
case "PRESSED_EXT": {
logInfo("CEN B10 OFF EXT", "success!" )
Luce_sala.sendCommand(OFF)
}
}
end
As you can see from the animation when you press (just one click) on PRESSED the binding changes the status:
from RELEADES To PRESSED and then automatically from PRESSED to RELEADES, while with PRESSED_EXT this does not happen.
From physical switches the status changes work correctly, from OH no
The rules start correctly from both OH and physical switches
2 Problem
.things
Thing bus_cenplus_scenario_control Cenplus_test "Scenario+ Test" @ "Test" [ where="210", buttons="9,10,11,12" ]
Thing bus_cen_scenario_control Cen_test "Scenario Test" @ "Test" [ where="26", buttons="9,10,11,12" ]
.items
String iLR_cenplus_test9 "CEN+ B9" <network> { channel="openwebnet:bus_cenplus_scenario_control:mybridge:Cenplus_test:button_9" }
String iLR_cenplus_test10 "CEN+ B10" <network> { channel="openwebnet:bus_cenplus_scenario_control:mybridge:Cenplus_test:button_10"}
String iLR_cenplus_test11 "CEN+ B11" <network> { channel="openwebnet:bus_cenplus_scenario_control:mybridge:Cenplus_test:button_11"}
String iLR_cenplus_test12 "CEN+ B12" <network> { channel="openwebnet:bus_cenplus_scenario_control:mybridge:Cenplus_test:button_12"}
String iLR_cen_test9 "CEN B9" <network> { channel="openwebnet:bus_cen_scenario_control:mybridge:Cen_test:button_9" }
String iLR_cen_test10 "CEN B10" <network> { channel="openwebnet:bus_cen_scenario_control:mybridge:Cen_test:button_10"}
String iLR_cen_test11 "CEN B11" <network> { channel="openwebnet:bus_cen_scenario_control:mybridge:Cen_test:button_11" }
String iLR_cen_test12 "CEN B12" <network> { channel="openwebnet:bus_cen_scenario_control:mybridge:Cen_test:button_12"}
.sitemaps
Switch item=iLR_cenplus_test9 label="CEN+ B9" mappings=[PRESSED="Scenario (PRESSED)",PRESSED_EXT="Scenario (PRESSED_EXT)"]
Switch item=iLR_cenplus_test10 label="CEN+ B10" mappings=[PRESSED="Scenario (PRESSED)",PRESSED_EXT="Scenario (PRESSED_EXT)"]
Switch item=iLR_cenplus_test11 label="CEN+ B11" mappings=[PRESSED="Scenario (PRESSED)",PRESSED_EXT="Scenario (PRESSED_EXT)"]
Switch item=iLR_cenplus_test12 label="CEN+ B12" mappings=[PRESSED="Scenario (PRESSED)",PRESSED_EXT="Scenario (PRESSED_EXT)"]
Switch item=iLR_cen_test9 label="CEN B9" mappings=[PRESSED="Scenario (PRESSED)",PRESSED_EXT="Scenario (PRESSED_EXT)"]
Switch item=iLR_cen_test10 label="CEN B10" mappings=[PRESSED="Scenario (PRESSED)",PRESSED_EXT="Scenario (PRESSED_EXT)"]
Switch item=iLR_cen_test11 label="CEN B11" mappings=[PRESSED="Scenario (PRESSED)",PRESSED_EXT="Scenario (PRESSED_EXT)"]
Switch item=iLR_cen_test12 label="CEN B12" mappings=[PRESSED="Scenario (PRESSED)",PRESSED_EXT="Scenario (PRESSED_EXT)"]
.rules
rule "sktest9"
when
Item iLR_cenplus_test9 changed
then
switch(iLR_cenplus_test9.state ) {
case "PRESSED": {
logInfo("CEN+ B9", "success!" )
Luce_sala.sendCommand(ON)
}
case "PRESSED_EXT": {
logInfo("CEN+ B9 EXT", "success!" )
Luce_sala.sendCommand(ON)
}
}
end
rule "sktest10"
when
Item iLR_cenplus_test10 changed
then
switch(iLR_cenplus_test10.state ) {
case "PRESSED": {
logInfo("CEN+ B10 OFF", "success!" )
Luce_sala.sendCommand(OFF)
}
case "PRESSED_EXT": {
logInfo("CEN+ B10 OFF EXT", "success!" )
Luce_sala.sendCommand(OFF)
}
}
end
rule "sktest11"
when
Item iLR_cenplus_test11 changed
then
switch(iLR_cenplus_test11.state ) {
case "PRESSED": {
logInfo("CEN+ B11", "success!" )
Luce_entrata.sendCommand(ON)
}
case "PRESSED_EXT": {
logInfo("CEN+ B11 EXT", "success!" )
Luce_entrata.sendCommand(ON)
}
}
end
rule "sktest12"
when
Item iLR_cenplus_test12 changed
then
switch(iLR_cenplus_test12.state ) {
case "PRESSED": {
logInfo("CEN+ B12 OFF", "success!" )
Luce_entrata.sendCommand(OFF)
}
case "PRESSED_EXT": {
logInfo("CEN+ B12 OFF EXT", "success!" )
Luce_entrata.sendCommand(OFF)
}
}
end
rule "sktest9a"
when
Item iLR_cen_test9 changed
then
switch(iLR_cen_test9.state ) {
case "PRESSED": {
logInfo("CEN B9 ON", "success!" )
Luce_sala.sendCommand(ON)
}
case "PRESSED_EXT": {
logInfo("CEN B9 ON EXT", "success!" )
Luce_sala.sendCommand(ON)
}
}
end
rule "sktest10A"
when
Item iLR_cen_test10 changed
then
switch(iLR_cen_test10.state ) {
case "PRESSED": {
logInfo("CEN B10 OFF", "success!" )
Luce_sala.sendCommand(OFF)
}
case "PRESSED_EXT": {
logInfo("CEN B10 OFF EXT", "success!" )
Luce_sala.sendCommand(OFF)
}
}
end
rule "sktest11A"
when
Item iLR_cen_test11 changed
then
switch(iLR_cen_test11.state ) {
case "PRESSED": {
logInfo("CEN B11 OFF", "success!" )
Luce_entrata.sendCommand(OFF)
}
case "PRESSED_EXT": {
logInfo("CEN B11 OFF EXT", "success!" )
Luce_entrata.sendCommand(OFF)
}
}
end
rule "sktest12A"
when
Item iLR_cen_test12 changed
then
switch(iLR_cen_test12.state ) {
case "PRESSED": {
logInfo("CEN B12 OFF", "success!" )
Luce_entrata.sendCommand(OFF)
}
case "PRESSED_EXT": {
logInfo("CEN B12 OFF EXT", "success!" )
Luce_entrata.sendCommand(OFF)
}
}
end
Caution
Buttons 9 and 10 are also configured on physical switches
Buttons 11 and 12 are configured ONLY on OH (button virtual)
Press CEN B12
OK Start Rules
OK Exit on Bus, log client
[Ricevuto 21.01.2019 16:05:34] [MONITOR] *15*12#1*26##
[Ricevuto 21.01.2019 16:13:54] [MONITOR] *15*12#3*26##
Press CEN+ B12
OK Start Rules
OK Exit on Bus, log client
[Ricevuto 21.01.2019 16:17:36] [MONITOR] *25*21#12*210##
[Ricevuto 21.01.2019 16:17:38] [MONITOR] *25*22#12*210##
Press CEN+ B11
OK Exit on Bus, log client
[Ricevuto 21.01.2019 16:23:09] [MONITOR] *25*21#11*210##
Rules:
OK Start [ipse.smarthome.model.script.CEN+ B11] - success!
KO Start [ipse.smarthome.model.script.CEN+ B10 OFF] - success!
(this rules should not start)
2019-01-21 16:24:58.247 [INFO ] [ipse.smarthome.model.script.CEN+ B11] - success!
==> /var/log/openhab2/events.log <==
2019-01-21 16:24:58.258 [ome.event.ItemCommandEvent] - Item 'Luce_entrata' received command ON
2019-01-21 16:24:58.267 [nt.ItemStatePredictedEvent] - Luce_entrata predicted to become ON
2019-01-21 16:24:58.351 [vent.ItemStateChangedEvent] - iLR_cenplus_test10 changed from RELEASED to PRESSED
==> /var/log/openhab2/openhab.log <==
2019-01-21 16:24:58.363 [INFO ] [.smarthome.model.script.CEN+ B10 OFF] - success!
==> /var/log/openhab2/events.log <==
2019-01-21 16:24:58.369 [ome.event.ItemCommandEvent] - Item 'Luce_sala' received command OFF
2019-01-21 16:24:58.377 [nt.ItemStatePredictedEvent] - Luce_sala predicted to become OFF
2019-01-21 16:24:58.560 [vent.ItemStateChangedEvent] - iLR_cenplus_test10 changed from PRESSED to RELEASED
2019-01-21 16:24:58.563 [vent.ItemStateChangedEvent] - iLR_cenplus_test11 changed from PRESSED to RELEASED
2019-01-21 16:25:01.037 [ome.event.ItemCommandEvent] - Item 'check_Domotica' received command ON
Press CEN+ B10
Exit on Bus, log client (the output on the bus of the command 11 is incorrect)
[Ricevuto 21.01.2019 16:31:35] [MONITOR] *25*21#11*210##
[Ricevuto 21.01.2019 16:31:36] [MONITOR] *25*21#10*210##
Rules:
KO Start [.smarthome.model.script.CEN+ B10 OFF] - success!
(this rules must start 1 time, from the log we see that part 2 times)
KO Start [ipse.smarthome.model.script.CEN+ B11] - success!
(this rules should not start)
2019-01-21 16:35:14.566 [INFO ] [.smarthome.model.script.CEN+ B10 OFF] - success!
==> /var/log/openhab2/events.log <==
2019-01-21 16:35:14.577 [ome.event.ItemCommandEvent] - Item 'Luce_sala' received command OFF
2019-01-21 16:35:14.589 [nt.ItemStatePredictedEvent] - Luce_sala predicted to become OFF
2019-01-21 16:35:14.705 [vent.ItemStateChangedEvent] - iLR_cenplus_test11 changed from RELEASED to PRESSED
==> /var/log/openhab2/openhab.log <==
2019-01-21 16:35:14.712 [INFO ] [ipse.smarthome.model.script.CEN+ B11] - success!
==> /var/log/openhab2/events.log <==
2019-01-21 16:35:14.718 [ome.event.ItemCommandEvent] - Item 'Luce_entrata' received command ON
2019-01-21 16:35:14.727 [nt.ItemStatePredictedEvent] - Luce_entrata predicted to become ON
2019-01-21 16:35:14.904 [vent.ItemStateChangedEvent] - iLR_cenplus_test10 changed from PRESSED to RELEASED
2019-01-21 16:35:14.911 [vent.ItemStateChangedEvent] - iLR_cenplus_test11 changed from PRESSED to RELEASED
2019-01-21 16:35:15.893 [vent.ItemStateChangedEvent] - iLR_cenplus_test10 changed from RELEASED to PRESSED
==> /var/log/openhab2/openhab.log <==
2019-01-21 16:35:15.898 [INFO ] [.smarthome.model.script.CEN+ B10 OFF] - success!
==> /var/log/openhab2/events.log <==
2019-01-21 16:35:15.904 [ome.event.ItemCommandEvent] - Item 'Luce_sala' received command OFF
2019-01-21 16:35:15.914 [nt.ItemStatePredictedEvent] - Luce_sala predicted to become OFF
2019-01-21 16:35:16.089 [vent.ItemStateChangedEvent] - iLR_cenplus_test10 changed from PRESSED to RELEASED
Is this correct for a sensor? Predicted! Whats that?
2019-01-24 14:41:26.221 [vent.ItemStateChangedEvent] - Rain_Sensor changed from NULL to ON
2019-01-24 14:41:30.355 [ome.event.ItemCommandEvent] - Item 'Rain_Sensor' received command OFF
2019-01-24 14:41:30.365 [nt.ItemStatePredictedEvent] - Rain_Sensor predicted to become OFF
==> /var/log/openhab2/openhab.log <==
2019-01-24 14:41:30.365 [WARN ] [et.handler.OpenWebNetScenarioHandler] - ==OWN:ScenarioHandler== cannot get button number from channel: openwebnet:bus_dry_contact_ir:Screen10:36:sensor. Ignoring command OFF
edit… predicted >>> comes from newer openhab releases?
Hi,
This could be dum question!!
I started to try implement CEN.
I have CEN item and CEN Thing.
When I select pressed in paperUI the CEN runs and I see the CEN pressed and the subsequent actions in the log.
When I select start CEN from the screen 10 panel I dont see anything in the log for CEN but I do see the CEN actions. So, it ran but the binding didn’t detect it and show in log the change.
So, should the binding detect when a CEN is button is pressed on a physical switch (I have tested this yet), Screen10 button, phone app start command (same CEN no show as Screen 10 button)?
Background:
I have some MH202 scenarios executed by CEN. Some of these scenarios have very sensitive timing requirements, sub 1 sec, and I do this by using dummy light MH202 actions which are approx 250ms to execute. I string a few of these dummy actions to get 250 -750ms pauses in the sequences of actions. This did work (its for PIR override) but lately its become unreliable. The timings are affected by activity on the BUS and I wonder if the recent binding improvments have affected BUS acttivity?
Anyhow, I want to move the CEN actions from MH202 to openhab. Openhab has much better ways to control sub 1 second pauses. I have created a rule and it worked first time but to run the rule I really need to detect when the CEN button command was sent from the screen10 panel .
Or maybe I could using a dummy S10 switch instead???
Mark
Yes, it was added to OH2.4.0
YES The binding should see all CEN messages that are notified on the BUS.
You can double check if the CEN message is sent on the BUS when you press the physical button by using then event session in the official Bticino OpenWebNet client (search the main thread you will find info).
If you see a message from the BUS but the binding does not show any change then you should open a new issue and copy the received message, and only the relevant log when the message is received but the binding does not react
I cannot help much if no relevantly log or message examples are given to me to be analyzed
Bye
M
Hi Massimo,
I dont see in the log the actual CEN button press when its done from the screen10 or phone app? I do see it when I use paperUI CEN button is ‘pressed’
I know the CEN was actually sent because I see in the log the switches changing state The CEN I am using starts a MH202 scenario. I dont see the CEN event itself in the log, unless its done from PaperUI and then I do see it in the log.
I will switch debug mode on and check again.
I have not yet tried a physical switch but I have one configured for CEN or maybe its CENplus
i think i have similar problem. trying to get cen work but cen commands are only detected when running from paperui. tried a lot meanwhile, even with discovered cen - nothing works.
actually do make it easy i used a cen-command that is newly and never else used:
things:
Thing bus_cen_scenario_control cen_71_1_2 "cen test" @ "Cen/CenPlus" [ where="71#4#01", buttons="1,2" ]
items:
String icen_71_1_2_an "cen_71 an" <network> { channel="openwebnet:bus_cen_scenario_control:MH200N:cen_71_1_2:button_1" }
String icen_71_1_2_aus "cen_71 aus" <network> { channel="openwebnet:bus_cen_scenario_control:MH200N:cen_71_1_2:button_2" }
.
.
now whey selecting “pressed” in paperui this is the log:
2019-01-30 16:48:46.256 [ome.event.ItemCommandEvent] - Item 'icen_71_1_2_an' received command PRESSED
2019-01-30 16:48:46.276 [nt.ItemStatePredictedEvent] - icen_71_1_2_an predicted to become PRESSED
==> /var/log/openhab2/openhab.log <==
2019-01-30 16:48:46.283 [DEBUG] [ebnet.handler.OpenWebNetThingHandler] - ==OWN:ThingHandler== handleCommand() (command=PRESSED - channel=openwebnet:bus_cen_scenario_control:MH200N:cen_71_1_2:button_1)
2019-01-30 16:48:46.291 [DEBUG] [et.handler.OpenWebNetScenarioHandler] - ==OWN:ScenarioHandler== handleChannelCommand() (command=PRESSED)
2019-01-30 16:48:46.297 [INFO ] [g.openwebnet.bus.MyHomeJavaConnector] - COM SENDING ============>>>>>>>>>>>> *15*01*71#4#01##
==> /var/log/openhab2/events.log <==
2019-01-30 16:48:46.302 [vent.ItemStateChangedEvent] - icen_71_1_2_an changed from RELEASED to PRESSED
==> /var/log/openhab2/openhab.log <==
2019-01-30 16:48:46.372 [INFO ] [g.openwebnet.bus.MyHomeSocketFactory] - COM RECEIVED <<<<<<<<<<<<============ *#*1##
2019-01-30 16:48:46.375 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *15*01*71#4#01##
2019-01-30 16:48:46.383 [DEBUG] [bnet.handler.OpenWebNetBridgeHandler] - ==OWN== ownId=15.71#4#01
2019-01-30 16:48:46.395 [DEBUG] [et.handler.OpenWebNetScenarioHandler] - ==OWN:ScenarioHandler== handleMessage() for thing: openwebnet:bus_cen_scenario_control:MH200N:cen_71_1_2
2019-01-30 16:48:46.401 [DEBUG] [et.handler.OpenWebNetScenarioHandler] - ==OWN:ScenarioHandler== updateButtonState() for thing: openwebnet:bus_cen_scenario_control:MH200N:cen_71_1_2
2019-01-30 16:48:46.881 [DEBUG] [et.handler.OpenWebNetScenarioHandler] - ==OWN:ScenarioHandler== # 71#4#01 sending CEN virtual release...
2019-01-30 16:48:46.885 [INFO ] [g.openwebnet.bus.MyHomeJavaConnector] - COM SENDING ============>>>>>>>>>>>> *15*01#1*71#4#01##
2019-01-30 16:48:46.962 [INFO ] [g.openwebnet.bus.MyHomeSocketFactory] - COM RECEIVED <<<<<<<<<<<<============ *#*1##
2019-01-30 16:48:46.966 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *15*01#1*71#4#01##
2019-01-30 16:48:46.971 [DEBUG] [bnet.handler.OpenWebNetBridgeHandler] - ==OWN== ownId=15.71#4#01
2019-01-30 16:48:46.975 [DEBUG] [et.handler.OpenWebNetScenarioHandler] - ==OWN:ScenarioHandler== handleMessage() for thing: openwebnet:bus_cen_scenario_control:MH200N:cen_71_1_2
2019-01-30 16:48:46.978 [DEBUG] [et.handler.OpenWebNetScenarioHandler] - ==OWN:ScenarioHandler== updateButtonState() for thing: openwebnet:bus_cen_scenario_control:MH200N:cen_71_1_2
2019-01-30 16:48:47.182 [DEBUG] [et.handler.OpenWebNetScenarioHandler] - ==OWN:ScenarioHandler== # 71#4#01 updating state to 'RELEASED'...
==> /var/log/openhab2/events.log <==
2019-01-30 16:48:47.202 [vent.ItemStateChangedEvent] - icen_71_1_2_an changed from PRESSED to RELEASED
additionally this is the log in openwebnet client:
.
.
but when strarting form touchscreen or domotica-app only this is my log:
2019-01-30 16:50:12.868 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *15*01*71#4#01##
2019-01-30 16:50:12.874 [DEBUG] [bnet.handler.OpenWebNetBridgeHandler] - ==OWN== ownId=15.71#4#01
2019-01-30 16:50:12.880 [DEBUG] [et.handler.OpenWebNetScenarioHandler] - ==OWN:ScenarioHandler== handleMessage() for thing: openwebnet:bus_cen_scenario_control:MH200N:cen_71_1_2
2019-01-30 16:50:12.883 [DEBUG] [et.handler.OpenWebNetScenarioHandler] - ==OWN:ScenarioHandler== updateButtonState() for thing: openwebnet:bus_cen_scenario_control:MH200N:cen_71_1_2
additionally this is the log in openwebnet client:
.
.
seems the thing is discovered but not the button, because if i send a cen that is not in things this is the log:
2019-01-30 16:59:51.770 [DEBUG] [bnet.handler.OpenWebNetBridgeHandler] - ==OWN== ownId=15.72#4#01 has NO DEVICE associated, ignoring it
i already wrote with arnaud, for him it works without problems. might be the need of the installation niveau the problem because he does not need it but me?
additionally i want to remark that this problem is only with cen-commands, cenplus seems to work ok.
best stefan
I tried again from the Screen10, this time with debug mode on and now I see CEN56 Thing when initiated from the screen10 button but not the Item.
Item.....
String WestPIRLights4hrs_CEN "West PIR lights 4hrs" <light> ["Lighting"] {channel="openwebnet:bus_cen_scenario_control:Screen10:56:button_0" }
Thing.......
Thing bus_cen_scenario_control 56 "West PIR lights 4hrs" [ where ="56", buttons ="0" ]
Note CEN56 starts a sequence of ON and OFF’s for West PIR light 13. There are also 4 dummy lights, (1015 non existent lights) switched between the ON’s and OFF’s to give sub 1 sec pause between them. I plan on moving that MH202 work around to better pause timing control from openhab.
Screen 10 button
==> /var/log/openhab2/openhab.log <==
2019-01-30 20:28:55.324 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *15*00*56##
2019-01-30 20:28:55.343 [DEBUG] [bnet.handler.OpenWebNetBridgeHandler] - ==OWN== ownId=15.56
2019-01-30 20:28:55.346 [DEBUG] [et.handler.OpenWebNetScenarioHandler] - ==OWN:ScenarioHandler== handleMessage() for thing: openwebnet:bus_cen_scenario_control:Screen10:56
2019-01-30 20:28:55.350 [DEBUG] [et.handler.OpenWebNetScenarioHandler] - ==OWN:ScenarioHandler== updateButtonState() for thing: openwebnet:bus_cen_scenario_control:Screen10:56
2019-01-30 20:28:55.686 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *1*0*13##
2019-01-30 20:28:55.690 [DEBUG] [bnet.handler.OpenWebNetBridgeHandler] - ==OWN== ownId=1.13
2019-01-30 20:28:55.694 [DEBUG] [et.handler.OpenWebNetLightingHandler] - ==OWN:LightingHandler== updateLightState() for thing: openwebnet:bus_on_off_switch:Screen10:13
==> /var/log/openhab2/events.log <==
2019-01-30 20:28:55.708 [vent.ItemStateChangedEvent] - WestPIRLights_Switch changed from ON to OFF
But executing the same CEN 56 from my Atmyhome phone app I dont see it but do see the resultant CEN actions
==> /var/log/openhab2/openhab.log <==
2019-01-30 20:37:14.059 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *25*21#24*210##
2019-01-30 20:37:14.064 [DEBUG] [bnet.handler.OpenWebNetBridgeHandler] - ==OWN== ownId=25.210
2019-01-30 20:37:14.068 [DEBUG] [bnet.handler.OpenWebNetBridgeHandler] - ==OWN== ownId=25.210 has NO DEVICE associated, ignoring it
2019-01-30 20:37:14.410 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *1*0*13##
2019-01-30 20:37:14.415 [DEBUG] [bnet.handler.OpenWebNetBridgeHandler] - ==OWN== ownId=1.13
2019-01-30 20:37:14.418 [DEBUG] [et.handler.OpenWebNetLightingHandler] - ==OWN:LightingHandler== updateLightState() for thing: openwebnet:bus_on_off_switch:Screen10:13
==> /var/log/openhab2/events.log <==
2019-01-30 20:37:14.429 [vent.ItemStateChangedEvent] - WestPIRLights_Switch changed from ON to OFF
Now for Paper UI I see the item (Debug mode off)
2019-01-30 21:20:33.256 [ome.event.ItemCommandEvent] - Item 'WestPIRLights4hrs_CEN' received command PRESSED
2019-01-30 21:20:33.280 [nt.ItemStatePredictedEvent] - WestPIRLights4hrs_CEN predicted to become PRESSED
==> /var/log/openhab2/openhab.log <==
2019-01-30 21:20:33.286 [INFO ] [g.openwebnet.bus.MyHomeJavaConnector] - COM SENDING ============>>>>>>>>>>>> *15*00*56##
2019-01-30 21:20:33.291 [INFO ] [g.openwebnet.bus.MyHomeSocketFactory] - ##gw-openwebnet-socket## Trying openCommandSession() socket.... (192.168.1.41:20000)
==> /var/log/openhab2/events.log <==
2019-01-30 21:20:33.298 [vent.ItemStateChangedEvent] - WestPIRLights4hrs_CEN changed from NULL to PRESSED
==> /var/log/openhab2/openhab.log <==
2019-01-30 21:20:33.307 [INFO ] [g.openwebnet.bus.MyHomeSocketFactory] - ##gw-openwebnet-socket## ... CONNECTED command session 192.168.1.41:20000
2019-01-30 21:20:33.312 [INFO ] [g.openwebnet.bus.MyHomeJavaConnector] - COM SENDING ============>>>>>>>>>>>> *15*00*56##
2019-01-30 21:20:33.344 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *15*00*56##
2019-01-30 21:20:33.344 [INFO ] [g.openwebnet.bus.MyHomeSocketFactory] - COM RECEIVED <<<<<<<<<<<<============ *#*1##
2019-01-30 21:20:33.714 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *1*0*13##
2019-01-30 21:20:33.853 [INFO ] [g.openwebnet.bus.MyHomeJavaConnector] - COM SENDING ============>>>>>>>>>>>> *15*00#1*56##
2019-01-30 21:20:33.893 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *15*00#1*56##
2019-01-30 21:20:33.893 [INFO ] [g.openwebnet.bus.MyHomeSocketFactory] - COM RECEIVED <<<<<<<<<<<<============ *#*1##
==> /var/log/openhab2/events.log <==
2019-01-30 21:20:34.110 [vent.ItemStateChangedEvent] - WestPIRLights4hrs_CEN changed from PRESSED to RELEASED
==> /var/log/openhab2/openhab.log <==
2019-01-30 21:20:34.379 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *1*1*13##
==> /var/log/openhab2/events.log <==
2019-01-30 21:20:34.393 [vent.ItemStateChangedEvent] - WestPIRLights_Switch changed from OFF to ON
Debug mode on
2019-01-30 21:25:44.037 [DEBUG] [ebnet.handler.OpenWebNetThingHandler] - ==OWN:ThingHandler== handleCommand() (command=PRESSED - channel=openwebnet:bus_cen_scenario_control:Screen10:56:button_0)
2019-01-30 21:25:44.043 [DEBUG] [et.handler.OpenWebNetScenarioHandler] - ==OWN:ScenarioHandler== handleChannelCommand() (command=PRESSED)
2019-01-30 21:25:44.047 [INFO ] [g.openwebnet.bus.MyHomeJavaConnector] - COM SENDING ============>>>>>>>>>>>> *15*00*56##
2019-01-30 21:25:44.050 [DEBUG] [g.openwebnet.bus.MyHomeSocketFactory] - ##gw-openwebnet-socket## CANNOT read from socket: read returned -1
==> /var/log/openhab2/events.log <==
2019-01-30 21:25:44.062 [vent.ItemStateChangedEvent] - WestPIRLights4hrs_CEN changed from RELEASED to PRESSED
==> /var/log/openhab2/openhab.log <==
2019-01-30 21:25:44.065 [DEBUG] [g.openwebnet.bus.MyHomeJavaConnector] - ##gw-openwebnet-connector## read returned -1
2019-01-30 21:25:44.068 [DEBUG] [g.openwebnet.bus.MyHomeJavaConnector] - ##gw-openwebnet-connector## let's try with a NEW SESSION...
2019-01-30 21:25:44.072 [INFO ] [g.openwebnet.bus.MyHomeSocketFactory] - ##gw-openwebnet-socket## Trying openCommandSession() socket.... (192.168.1.41:20000)
2019-01-30 21:25:44.101 [INFO ] [g.openwebnet.bus.MyHomeJavaConnector] - COM SENDING ============>>>>>>>>>>>> *15*00*56##
2019-01-30 21:25:44.130 [INFO ] [g.openwebnet.bus.MyHomeSocketFactory] - COM RECEIVED <<<<<<<<<<<<============ *#*1##
2019-01-30 21:25:44.133 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *15*00*56##
2019-01-30 21:25:44.136 [DEBUG] [bnet.handler.OpenWebNetBridgeHandler] - ==OWN== ownId=15.56
2019-01-30 21:25:44.139 [DEBUG] [et.handler.OpenWebNetScenarioHandler] - ==OWN:ScenarioHandler== handleMessage() for thing: openwebnet:bus_cen_scenario_control:Screen10:56
2019-01-30 21:25:44.141 [DEBUG] [et.handler.OpenWebNetScenarioHandler] - ==OWN:ScenarioHandler== updateButtonState() for thing: openwebnet:bus_cen_scenario_control:Screen10:56
2019-01-30 21:25:44.503 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *1*0*13##
2019-01-30 21:25:44.506 [DEBUG] [bnet.handler.OpenWebNetBridgeHandler] - ==OWN== ownId=1.13
2019-01-30 21:25:44.508 [DEBUG] [et.handler.OpenWebNetLightingHandler] - ==OWN:LightingHandler== updateLightState() for thing: openwebnet:bus_on_off_switch:Screen10:13
==> /var/log/openhab2/events.log <==
2019-01-30 21:25:44.521 [vent.ItemStateChangedEvent] - WestPIRLights_Switch changed from ON to OFF
==> /var/log/openhab2/openhab.log <==
2019-01-30 21:25:44.632 [DEBUG] [et.handler.OpenWebNetScenarioHandler] - ==OWN:ScenarioHandler== # 56 sending CEN virtual release...
2019-01-30 21:25:44.635 [INFO ] [g.openwebnet.bus.MyHomeJavaConnector] - COM SENDING ============>>>>>>>>>>>> *15*00#1*56##
2019-01-30 21:25:44.679 [INFO ] [g.openwebnet.bus.MyHomeSocketFactory] - COM RECEIVED <<<<<<<<<<<<============ *#*1##
2019-01-30 21:25:44.680 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *15*00#1*56##
2019-01-30 21:25:44.683 [DEBUG] [bnet.handler.OpenWebNetBridgeHandler] - ==OWN== ownId=15.56
2019-01-30 21:25:44.685 [DEBUG] [et.handler.OpenWebNetScenarioHandler] - ==OWN:ScenarioHandler== handleMessage() for thing: openwebnet:bus_cen_scenario_control:Screen10:56
2019-01-30 21:25:44.687 [DEBUG] [et.handler.OpenWebNetScenarioHandler] - ==OWN:ScenarioHandler== updateButtonState() for thing: openwebnet:bus_cen_scenario_control:Screen10:56
2019-01-30 21:25:44.889 [DEBUG] [et.handler.OpenWebNetScenarioHandler] - ==OWN:ScenarioHandler== # 56 updating state to 'RELEASED'...
==> /var/log/openhab2/events.log <==
2019-01-30 21:25:44.901 [vent.ItemStateChangedEvent] - WestPIRLights4hrs_CEN changed from PRESSED to RELEASED
==> /var/log/openhab2/openhab.log <==
2019-01-30 21:25:45.183 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *1*1*13##
2019-01-30 21:25:45.187 [DEBUG] [bnet.handler.OpenWebNetBridgeHandler] - ==OWN== ownId=1.13
2019-01-30 21:25:45.191 [DEBUG] [et.handler.OpenWebNetLightingHandler] - ==OWN:LightingHandler== updateLightState() for thing: openwebnet:bus_on_off_switch:Screen10:13
==> /var/log/openhab2/events.log <==
2019-01-30 21:25:45.205 [vent.ItemStateChangedEvent] - WestPIRLights_Switch changed from OFF to ON
==> /var/log/openhab2/openhab.log <==
2019-01-30 21:25:45.816 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *1*0*13##
2019-01-30 21:25:45.820 [DEBUG] [bnet.handler.OpenWebNetBridgeHandler] - ==OWN== ownId=1.13
2019-01-30 21:25:45.823 [DEBUG] [et.handler.OpenWebNetLightingHandler] - ==OWN:LightingHandler== updateLightState() for thing: openwebnet:bus_on_off_switch:Screen10:13
==> /var/log/openhab2/events.log <==
2019-01-30 21:25:45.837 [vent.ItemStateChangedEvent] - WestPIRLights_Switch changed from ON to OFF
It tried again from my phone and again saw this
2019-01-30 20:49:57.732 [INFO ] [org.openwebnet.OpenGatewayBus$a ] - MON RECEIVED <<<<<<<<<<< *25*21#24*210##
2019-01-30 20:49:57.737 [DEBUG] [bnet.handler.OpenWebNetBridgeHandler] - ==OWN== ownId=25.210
2019-01-30 20:49:57.741 [DEBUG] [bnet.handler.OpenWebNetBridgeHandler] - ==OWN== ownId=25.210 has NO DEVICE associated, ignoring it
Hallo Mark,
In your log I see *15*00*56##
but it’s a CEN, while from your app. code *25*21#24*210##
is a CEN+
Hallo Stefan,
I tried with some tests, but I can not reproduce the problem.
In the animation, last part, I used the app. openHAB
good morning michele,
yes i know that the same settings do work for you, but sorry they don´t work for me - as you can see in my attached logs.
cen+ is working well but cen doesn´t
best stefan
Hi @bastler
actually when in CEN you press a physical button with a short pressure (<0.5sec) you should see on the OWN client log something like:
MON RECEIVED <<<<<<<<<<<<<< *15*01*71#4#01##
(I call it CEN_PRESSURE)
and then after:
MON RECEIVED <<<<<<<<<<<<<< *15*01#1*71#4#01##
(I call it CEN_RELEASE_SHORT_PRESSURE)
—> Could you test it with a CEN physical button + OWN client? Do the two frames appear when you shortly press a physical button configured for CEN ?
Moreover, apparently this rule is not followed when you activate the CEN on the TouchScreen/domotica-app : in this case in the logs you have only the first message and not the second one. This breaks the current logic of the binding: which is to update the channel only after we are sure whether it is a short pressure or long pressure.
Also looking at this compatibility table at page 24 of the OWN specs , it seems that CEN are not completely supported by some versions of TouchScreens.
Which touchscreen is yours and which firmware version?
M
@massi
yes this is correct, if i activate from paperui or a physical button i have both lines in the log like:
but if i send command from touchscreen h4890 (firmware 4.0.15, hardware 2.0.0, pic 14.49.2) or from multimedia touchscreen mh4893 (firmware 2.1.30, hardware 2.1.30) the second line is missing.
strange because scenarios in mh200n i can start from everywhere.