[BTicino/OpenWebNet] New openHAB2 binding ready for testing

Massi,

Here you are the Log code after try to switch mode from off to manual and set temp from 21.5 to 23.
The only one thing that i can do from Paper UI is swich off the Fancoil.
Thanks

2018-12-18 21:41:39.270 [ome.event.ItemCommandEvent] - Item 'iTStudio_setMode' received command MANUAL

==> /var/log/openhab2/openhab.log <==

2018-12-18 21:41:39.271 [DEBUG] [ebnet.handler.OpenWebNetThingHandler] - ==OWN:ThingHandler== handleCommand() (command=MANUAL - channel=openwebnet:bus_thermostat:mybridge:TStudio_thermostat:setMode)

2018-12-18 21:41:39.275 [DEBUG] [er.OpenWebNetThermoregulationHandler] - ==OWN:ThermoHandler== handleModeCommand() (command=MANUAL)

2018-12-18 21:41:39.279 [DEBUG] [er.OpenWebNetThermoregulationHandler] - ==OWN:ThermoHandler== handleModeCommand() modeWhat=MANUAL_GENERIC

2018-12-18 21:41:39.288 [INFO ] [g.openwebnet.bus.MyHomeJavaConnector] - COM SENDING   ============>>>>>>>>>>>> *4*310*#5##

2018-12-18 21:41:39.311 [DEBUG] [g.openwebnet.bus.MyHomeSocketFactory] - ##gw-openwebnet-socket## CANNOT read from socket: read returned -1

==> /var/log/openhab2/events.log <==

2018-12-18 21:41:39.311 [vent.ItemStateChangedEvent] - iTStudio_setMode changed from OFF to MANUAL

==> /var/log/openhab2/openhab.log <==

2018-12-18 21:41:39.318 [DEBUG] [g.openwebnet.bus.MyHomeJavaConnector] - ##gw-openwebnet-connector## read returned -1

2018-12-18 21:41:39.321 [DEBUG] [g.openwebnet.bus.MyHomeJavaConnector] - ##gw-openwebnet-connector## let's try with a NEW SESSION...

2018-12-18 21:41:39.325 [INFO ] [g.openwebnet.bus.MyHomeSocketFactory] - ##gw-openwebnet-socket## Trying openCommandSession() socket....  (192.168.0.8:20000)

2018-12-18 21:41:39.335 [DEBUG] [org.openwebnet.bus.MyHomeConnection ] - ##gw-openwebnet-conn## ... starting HANDSHAKE ... 

2018-12-18 21:41:39.339 [DEBUG] [org.openwebnet.bus.MyHomeConnection ] - COM RECEIVED   <<<<<<====== *#*1##

2018-12-18 21:41:39.342 [DEBUG] [org.openwebnet.bus.MyHomeConnection ] - COM SENDING    ======>>>>>> *99*0##

2018-12-18 21:41:39.347 [DEBUG] [org.openwebnet.bus.MyHomeConnection ] - COM RECEIVED   <<<<<<====== *#*1##

2018-12-18 21:41:39.350 [INFO ] [g.openwebnet.bus.MyHomeSocketFactory] - ##gw-openwebnet-socket## ... CONNECTED command session 192.168.0.8:20000

2018-12-18 21:41:39.353 [INFO ] [g.openwebnet.bus.MyHomeJavaConnector] - COM SENDING   ============>>>>>>>>>>>> *4*310*#5##

2018-12-18 21:41:39.363 [INFO ] [g.openwebnet.bus.MyHomeSocketFactory] - COM RECEIVED  <<<<<<<<<<<<============ *#*0##

2018-12-18 21:41:40.408 [DEBUG] [org.openwebnet.bus.MyHomeConnection ] - ##gw-openwebnet-conn## sending MON keepalive ACK

2018-12-18 21:41:40.410 [DEBUG] [org.openwebnet.bus.MyHomeConnection ] - MON SENDING    ======>>>>>> *#*1##

==> /var/log/openhab2/events.log <==

2018-12-18 21:41:44.296 [ome.event.ItemCommandEvent] - Item 'iTStudio_setpointTemp' received command 23 ℃

==> /var/log/openhab2/openhab.log <==

2018-12-18 21:41:44.299 [DEBUG] [ebnet.handler.OpenWebNetThingHandler] - ==OWN:ThingHandler== handleCommand() (command=23 ℃ - channel=openwebnet:bus_thermostat:mybridge:TStudio_thermostat:setpointTemperature)

2018-12-18 21:41:44.304 [DEBUG] [er.OpenWebNetThermoregulationHandler] - ==OWN:ThermoHandler== handleSetpointCommand() (command=23 ℃)

2018-12-18 21:41:44.309 [DEBUG] [.openwebnet.message.Thermoregulation] - ====TEMPERATURE 23.0 --> : <0230>

2018-12-18 21:41:44.316 [INFO ] [g.openwebnet.bus.MyHomeJavaConnector] - COM SENDING   ============>>>>>>>>>>>> *#4*5*#14*0230*3##

==> /var/log/openhab2/events.log <==

2018-12-18 21:41:44.339 [vent.ItemStateChangedEvent] - iTStudio_setpointTemp changed from 21.5 ℃ to 23 ℃

==> /var/log/openhab2/openhab.log <==

2018-12-18 21:41:44.347 [INFO ] [g.openwebnet.bus.MyHomeSocketFactory] - COM RECEIVED  <<<<<<<<<<<<============ *#*0##

2018-12-18 21:42:30.938 [DEBUG] [g.openwebnet.bus.MyHomeJavaConnector] - ##gw-openwebnet-connector## readMonitoring() SocketTimeoutException: Read timed out

2018-12-18 21:42:30.941 [DEBUG] [org.openwebnet.OpenGatewayBus$a     ] - ##gw-openwebnet-BusReceiveThread## SocketTimeoutException on readMonitoring: Read timed out

2018-12-18 21:42:30.944 [DEBUG] [org.openwebnet.OpenGatewayBus$a     ] - ##gw-openwebnet-BusReceiveThread## ^^^ sending CMD message to see if gw is still reachable...

2018-12-18 21:42:30.949 [INFO ] [g.openwebnet.bus.MyHomeJavaConnector] - COM SENDING   ============>>>>>>>>>>>> *#13**15##

2018-12-18 21:42:30.952 [DEBUG] [g.openwebnet.bus.MyHomeSocketFactory] - ##gw-openwebnet-socket## CANNOT read from socket: read returned -1

2018-12-18 21:42:30.962 [DEBUG] [g.openwebnet.bus.MyHomeJavaConnector] - ##gw-openwebnet-connector## read returned -1

2018-12-18 21:42:30.965 [DEBUG] [g.openwebnet.bus.MyHomeJavaConnector] - ##gw-openwebnet-connector## let's try with a NEW SESSION...

2018-12-18 21:42:30.969 [INFO ] [g.openwebnet.bus.MyHomeSocketFactory] - ##gw-openwebnet-socket## Trying openCommandSession() socket....  (192.168.0.8:20000)

2018-12-18 21:42:30.977 [DEBUG] [org.openwebnet.bus.MyHomeConnection ] - ##gw-openwebnet-conn## ... starting HANDSHAKE ... 

2018-12-18 21:42:30.982 [DEBUG] [org.openwebnet.bus.MyHomeConnection ] - COM RECEIVED   <<<<<<====== *#*1##

2018-12-18 21:42:30.987 [DEBUG] [org.openwebnet.bus.MyHomeConnection ] - COM SENDING    ======>>>>>> *99*0##

2018-12-18 21:42:30.991 [DEBUG] [org.openwebnet.bus.MyHomeConnection ] - COM RECEIVED   <<<<<<====== *#*1##

2018-12-18 21:42:30.994 [INFO ] [g.openwebnet.bus.MyHomeSocketFactory] - ##gw-openwebnet-socket## ... CONNECTED command session 192.168.0.8:20000

2018-12-18 21:42:30.997 [INFO ] [g.openwebnet.bus.MyHomeJavaConnector] - COM SENDING   ============>>>>>>>>>>>> *#13**15##

2018-12-18 21:42:31.022 [INFO ] [g.openwebnet.bus.MyHomeSocketFactory] - COM RECEIVED  <<<<<<<<<<<<============ *#13**15*200##

2018-12-18 21:42:31.067 [INFO ] [g.openwebnet.bus.MyHomeSocketFactory] - COM RECEIVED  <<<<<<<<<<<<============ *#*1##

2018-12-18 21:42:31.369 [DEBUG] [org.openwebnet.OpenGatewayBus$a     ] - ##gw-openwebnet-BUSReceiveThread## ^^^ ... CMD was answered, gw is still reachable!

2018-12-18 21:42:31.370 [INFO ] [org.openwebnet.OpenGatewayBus$a     ] - MON RECEIVED  <<<<<<<<<<< *#13**15*200##

2018-12-18 21:42:31.372 [DEBUG] [org.openwebnet.OpenGatewayBus       ] - ##gw-openwebnet-BUS## server MODEL=MyHOMEServer1 / MH202 / F455

2018-12-18 21:42:31.374 [DEBUG] [bnet.handler.OpenWebNetBridgeHandler] - ==OWN==  GatewayManagement WHAT = null

2018-12-18 21:43:10.408 [DEBUG] [org.openwebnet.bus.MyHomeConnection ] - ##gw-openwebnet-conn## sending MON keepalive ACK

2018-12-18 21:43:10.410 [DEBUG] [org.openwebnet.bus.MyHomeConnection ] - MON SENDING    ======>>>>>> *#*1##

Michele Thank you for the suggestion! I have done what you said!

Ok created a new topic. Title: Bticino-somfy-netatmo-alexa integration via OWN. Not sure how I can “mention” you to let you in. Hope you can find it. I can’t find an easy way to move a post from one topic to another.

Hi Massimo (@massi)

now I have the raspberry working and have installed the MHServer1. I have used Myhome_up to set up the system. MHS1 has been recognized and installed the new firmware. There is nothing else on the scs bus at the moment.

I’ve tried to discover MHS1 through PaperUI & Inbox to no avail (OWN beta8). This is something under testing, if I remember well. Can I be of help with this?

I have used the OWN client as you suggested far above and I was able to open an event.

  1. Install beta9
  2. Active debugging-and-log-files
  3. In Inbox press icon + and click Openwebnet to start the procedure for discovery, if you do not find anything, publish the log.

So Massimo has the idea of what happens in java

Here it is!! It seems that upnp correctly discover it

Merry Xmas

2018-12-25 02:23:00.923 [DEBUG] [ery.OpenWebNetBridgeDiscoveryService] - ==OWN:BridgeDiscovery== getSupportedThingTypes()

2018-12-25 02:23:00.965 [INFO ] [overy.BusGatewayDiscoveryParticipant] - ================================================

2018-12-25 02:23:00.969 [INFO ] [overy.BusGatewayDiscoveryParticipant] - ==OWN:UPnP== DISCOVERED DEVICE: (RemoteDevice) Identity: (RemoteDeviceIdentity) UDN: uuid:pnp-myhomeserver1-2_2-00:03:50:A4:69:C9, Descriptor: http://192.168.1.114:49152/, Root: true

2018-12-25 02:23:00.972 [INFO ] [overy.BusGatewayDiscoveryParticipant] - =FRIENDLY NAME: MyHomeSERVER1

2018-12-25 02:23:00.980 [INFO ] [overy.BusGatewayDiscoveryParticipant] - =BASE URL : null

2018-12-25 02:23:00.984 [INFO ] [overy.BusGatewayDiscoveryParticipant] - =SERIAL # : 00:03:50:A4:69:C9

2018-12-25 02:23:00.988 [INFO ] [overy.BusGatewayDiscoveryParticipant] - =UPC :

2018-12-25 02:23:00.992 [INFO ] [overy.BusGatewayDiscoveryParticipant] - =ID.DESC URL : http://192.168.1.114:49152/

2018-12-25 02:23:00.996 [INFO ] [overy.BusGatewayDiscoveryParticipant] - =ID.MAX AGE : 500

2018-12-25 02:23:01.000 [INFO ] [overy.BusGatewayDiscoveryParticipant] - =MANUFACTURER : BTicino S.p.A.

2018-12-25 02:23:01.004 [INFO ] [overy.BusGatewayDiscoveryParticipant] - =MODEL : MyHomeServer1 | MYHOMESERVER1 | 2.2

2018-12-25 02:23:01.008 [INFO ] [overy.BusGatewayDiscoveryParticipant] - ================================================

2018-12-25 02:23:01.048 [DEBUG] [ery.OpenWebNetBridgeDiscoveryService] - ==OWN:BridgeDiscovery== getSupportedThingTypes()

2018-12-25 02:23:01.055 [INFO ] [ery.OpenWebNetBridgeDiscoveryService] - ==OWN:BridgeDiscovery== ------ startScan() - SEARCHING for bridges…

2018-12-25 02:23:01.057 [DEBUG] [ery.OpenWebNetBridgeDiscoveryService] - ==OWN:BridgeDiscovery:Dongle== … trying to connect dongle …

2018-12-25 02:23:01.060 [DEBUG] [org.openwebnet.OpenGatewayZigBee ] - ##gw-openwebnet## Finding serial ports…

2018-12-25 02:23:01.066 [DEBUG] [org.openwebnet.OpenGatewayZigBee ] - ##gw-openwebnet## … found serial port /dev/ttyAMA0

2018-12-25 02:23:01.069 [DEBUG] [org.openwebnet.OpenGatewayZigBee ] - ##gw-openwebnet## … trying to connect USB dongle on serial port /dev/ttyAMA0 …

2018-12-25 02:23:01.081 [INFO ] [org.openwebnet.OpenGatewayZigBee ] - SERIAL SENDING >>>>>>>>>>>>>>>>>>>>>>>> 1360*##

2018-12-25 02:23:01.081 [INFO ] [org.openwebnet.OpenGatewayZigBee$a ] - ##gw-openwebnet-ReceiveThread## USB RECEIVING on port: /dev/ttyAMA0

2018-12-25 02:23:03.098 [DEBUG] [org.openwebnet.OpenGatewayZigBee$a ] - ##gw-openwebnet-ReceiveThread## STOPPED receive thread on port: /dev/ttyAMA0

2018-12-25 02:23:03.180 [DEBUG] [org.openwebnet.OpenGatewayZigBee ] - ##gw-openwebnet## no response received from port: /dev/ttyAMA0

2018-12-25 02:23:03.184 [DEBUG] [org.openwebnet.OpenGatewayZigBee ] - ##gw-openwebnet## --NO USB ZigBee dongle FOUND–

2018-12-25 02:23:03.190 [DEBUG] [ery.OpenWebNetBridgeDiscoveryService] - ==OWN:BridgeDiscovery== getSupportedThingTypes()

2018-12-25 02:23:03.192 [INFO ] [ery.OpenWebNetBridgeDiscoveryService] - ==OWN:BridgeDiscovery== no serial ports found

Under Configuration - Things, do you find the gateway bus?

No, Things is empty. I was just saying that MHS1 responded to upnp protocol (see the debug).

We must wait @massi

Augh!

We must go to bed :-):clock3::christmas_tree::christmas_tree:

Hallo,
a new release of the OpenWebNet biding is available: beta9-1.

This new release brings new features:

  • [FIX #6] and [FIX #33] Initial support for WHO=15/25 CEN/CEN+ for receiving events from BUS Scenario Control devices/buttons (for example Scenario Control: HC/HD/HS/L/N/NT4680) and sending virtual pressure commands to activate BUS scenarios from openHAB. Use discovery by activation to discover CEN/CEN+ scenario control devices. Further buttons/channels are discovered by pressing the corresponding physical button after the device has been added from Inbox
  • [FIX #9] Support for WHO=25 Dry Contact interfaces and IR Sensors on BUS, with discovery
  • [FIX #11] Initial support for WHO=18 Energy Management on BUS, with discovery. Currently supported: Energy Management Central Unit (F521) power measures
  • [FIX #29] Added support for command translation (1000# ) for Automation
  • [FIX #27] Device Discovery by Activation for Lighting and CEN/CEN+: if a BUS physical device is not found in Inbox during a Scan, activate the device to discover it

Installation and Upgrade

To install/upgrade to the new version, follow the instructions in the README.

JAR File: https://github.com/mvalla/openhab2-addons/releases/download/own-beta9-1/org.openhab.binding.openwebnet-2.4.0-b9-1.jar

The binding is also published on the Eclipse IoT Marketplace.
(If you cannot find the binding in the search, probably you have an issue with certificates in your Java environment, that must be updated. Follow this solution to add the required certificates to access all bindings on the Marketplace).

This binding version has been tested with OH 2.3.0 and 2.4.0.

The next release will be linked to openHAB 2.5.0 development.

For any help/issue on the new binding, write here in this thread.

As always a special thanks goes to those who helped testing! (see README for a list).

Ciao!
MASSI

Hi,

Setup:
Openhab 2.5 Snapshot / Openwebnet Binding 9

I have a question. In my systems i have a “All Lights OFF”
In my Log tail it looks light that
“2018-12-27 23:12:40.420 [DEBUG] [bnet.handler.OpenWebNetBridgeHandler] - ==OWN== ownId=0 has NO THING associated, ignoring it”
So all lights are off and my openhab don’t recognize it -> because of the “All Lights OFF” Switch.

Have i forgot something? or isn’t it integrated yet?
Thank you guys for your great work and affort.
bg Patrick

Sorry but I do not think I understood your problem well, if you intend to use AMB, GR and GEN (Environment, Groups and General) are not implemented.
If you have a scene module (MH200N , MH202, ecc. )then you can create a scene with CEN + activation and configure the command to OH, but you have to binding beta9-1 and follow this example.
Or publish the configuration part, .things and .items

Hello all
I have a problem with heating sitemap
Logs:
2018-12-28 09:25:27.339 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item ‘gC_SdB_thermo’ for widget org.eclipse.smarthome.model.sitemap.Text

2018-12-28 09:25:27.343 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item ‘gC_SdB_thermo’ for widget org.eclipse.smarthome.model.sitemap.Text

2018-12-28 09:25:27.346 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.Text

2018-12-28 09:25:27.351 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.Text

My items:
Group gC_SdB_Thermo

Number:Temperature tC_SdB_temp “SdB RdJ [%.1f °C]” (gC_SdB_Thermo, Temperatures) { channel=“openwebnet:bus_thermostat:mybridge:BtSdB_RdJ_Th:temperature” }
String tC_SdB_offset “Offset” (gC_SdB_Thermo) { channel=“openwebnet:bus_thermostat:mybridge:BtSdB_RdJ_Th:localMode” }
Switch tC_SdB_heating “Heating is” (gC_SdB_Thermo) { channel=“openwebnet:bus_thermostat:mybridge:BtSdB_RdJ_Th:heating” }
Switch tC_SdB_cooling “Cooling is” (gC_SdB_Thermo) { channel=“openwebnet:bus_thermostat:mybridge:BtSdB_RdJ_Th:cooling” }
Number:Temperature tC_SdB_targetTemp “Target [%.1f °C]” (gC_SdB_Thermo) { channel=“openwebnet:bus_thermostat:mybridge:BtSdB_RdJ_Th:targetTemperature” }
String tC_SdB_activeMode “Mode Actuel” (gC_SdB_Thermo) { channel=“openwebnet:bus_thermostat:mybridge:BtSdB_RdJ_Th:activeMode” }
String tC_SdB_heatcool “HeatingCoolingMode” (gC_SdB_Thermo) { channel=“openwebnet:bus_thermostat:mybridge:BtSdB_RdJ_Th:heatingCoolingMode” }
Number:Temperature tC_SdB_setpointTemp “Setpoint Temperature [%.1f °C]” (gC_SdB_Thermo) { channel=“openwebnet:bus_thermostat:mybridge:BtSdB_RdJ_Th:setpointTemperature” }
String tC_SdB_setMode “Reglage Mode” (gC_SdB_Thermo) { channel=“openwebnet:bus_thermostat:mybridge:BtSdB_RdJ_Th:setMode”}

My Sitemap:
Frame label=“Thermoregulation” {

Text item=gC_SdB_thermo label=“Thermostat SdB RdJ” icon=“heating”
{
Default item=tC_SdB_temp label=“Temperature” icon=“temperature”
Default item=tC_SdB_targetTemp label=“Temperature Reglee” icon=“temperature”
Default item=tC_SdB_offset icon=“heating” visibility=[tC_sdB_offset != “NORMAL”]
Text item=tC_SdB_heatcool icon=“fire” label=“Chauffage Actif” labelcolor=[“red”] visibility=[tC_SdB_heating==“ON”]
Text item=tC_SdB_heatcool icon=“climate” label=“Refroidissement Actif” labelcolor=[“blue”] visibility=[tC_SdB_cooling==“ON”]
Default item=tC_SdB_activeMode icon=“radiator” valuecolor=[AUTO=“green”, MANUAL=“orange”, PROTECTION=“blue”, OFF=“red”]
Selection item=tC_SdB_setMode icon=“heating” mappings=[AUTO=“Auto”, MANUAL=“Manuel”, PROTECTION=“Hors-Gel”, OFF=“Off”]
Setpoint item=tC_SdB_setpointTemp label=“Reglage Temp [%.1f °C]” minValue=12 maxValue=25 step=0.5
}
}

or i’m wrong ?

Thermo cental logs:
2018-12-28 09:32:22.272 [WARN ] [penwebnet.message.OpenMessageFactory] - ##openwebnet## unsupported WHAT 1101 from frame 41101*#0##

2018-12-28 09:32:22.326 [WARN ] [penwebnet.message.OpenMessageFactory] - ##openwebnet## unsupported WHAT 21 from frame 421*#0##
it’s normal ?

Best regards,
Arnaud_

may be your items is
gC_SdB_Thermo (big letter “T”)
and your sitemap is
gC_SdB_thermo
?

Opps, I did not see the syntax error
It’s Works
Thank you Stefan :wink:

Can we choose 1,2,3, summer, winter programs on the 3550 plant?

Currently “active mode” displays only the state “Off and anti freeze” not the state “auto or manual”

2018-12-28 09: 55: 36.786 [WARN] [penwebnet.message.openMessageFactory] - ## openwebnet ## unsupported WHAT 1101 from frame * 4 * 1101 * # 0 ##

2018-12-28 09: 55: 36.830 [WARN] [penwebnet.message.OpenMessageFactory] - ## openwebnet ## unsupported WHAT 21 from frame * 4 * 21 * # 0 ##

2018-12-28 09: 55: 39.937 [WARN] [penwebnet.message.openMessageFactory] - ## openwebnet ## unsupported WHAT 22 from frame * 4 * 22 * # 0 ##

2018-12-28 09: 55: 36.860 [WARN] [penwebnet.message.OpenMessageFactory] - ## openwebnet ## unsupported WHAT 23 from frame * 4 * 23 * # 0 ##

Hi Patrick (@k0nti),
this issue has been raised already see here: OpenWebNet: group commands [WHERE=#n ?].
Feedbacks from group WHEREs (#0) events are not supported yet in the binding.

At least someone has to file a new issue, or it will never be tracked (and solved).

bye
M

Hi Arnaud (@tagada),
there are 2 separate issues:

activeMode

this has been already reported by some users, I suggest you file a new Issue with some relevant and well formatted log when this happens, or it will not be tracked.

programs

Programs are not supported yet, and for example this Heating Program 01 message is not handled:
2018-12-28 09: 55: 36.786 [WARN] [penwebnet.message.openMessageFactory] - ## openwebnet ## unsupported WHAT 1101 from frame *4*1101*#0##

Again here a new issue should be added, or it will not be tracked.

The rest of unsupported messages: WHAT=21,22,23 are not relevant and useful here.

bye
M

@tagada @k0nti @massi
I created the issues:


1 Like

Hi everyone,
If we want Massimo to help us with the implementation or corrections of problems, we have to write an issue here , once certain of the problem.
There are no other ways

Thanks to everyone for the collaboration