[openWebNet/BTicino] openHAB4 ... old thread

The problem does seem to be in the Units. Here is an extract from the log when I change the setpoint temperature

2023-11-05 09:16:09.887 [INFO ] [openhab.event.ItemCommandEvent      ] - Item 'ThermoOffice_SetpointTemperature' received command 24
2023-11-05 09:16:09.890 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'ThermoOffice_SetpointTemperature' predicted to become 24
2023-11-05 09:16:09.893 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'ThermoOffice_SetpointTemperature' changed from 23 Ā°C to 24 Ā°C

The Setpoint receives the command 24 not 24 Ā°C. The predicted value is also 24 not 24 Ā°C. The state change event is correct however with 24 Ā°C. If this is the problem, how do I correct it?

PJG

my sensors dont have that wheel to change the temperature, so i do not have this issue.

how did you set your items, text-based? if yes, check if you have uom configured. my item for example looks like:

Number:Temperature iBuero_Heizung "BĆ¼ro Ist-Temperatur[%.1f %unit%]" <temperature> (iG_Heizung) { unit="Ā°C", channel="openwebnet:bus_thermo_zone:bticino:Buero_Heizung:temperature" }

this unit i had to add some times ago because i had warnings in my log that are gone now. not sure if it might help in your case.

If the problem is not with units of measure (see also @bastler suggestion), then the DEBUG level log is required.
The log you posted above is INFO and does not help.
See my link above on how to set log correctly for both the openwebnet binding and the openwebnet4j lib.

Massimo

I have set up logging as you suggested. Here is the result for attempting to change setpoint to 22C

==> /var/log/openhab/openhab.log <==
2023-11-05 11:24:38.431 [DEBUG] [ernal.handler.OpenWebNetThingHandler] - handleCommand() (command=22 Ā°C - channel=openwebnet:bus_thermo_zone:MyHomeGateway:1:setpointTemperature)
2023-11-05 11:24:38.433 [DEBUG] [penwebnet4j.message.Thermoregulation] - ====TEMPERATURE 22.0 --> : <0220>
2023-11-05 11:24:38.434 [INFO ] [nwebnet4j.communication.FrameChannel] - -FC-BUS-CMD -------> *#4*1#1*#14*0220*1##
2023-11-05 11:24:38.435 [INFO ] [j.communication.BUSConnector.message] - BUS-CMD ====>>>> `*#4*1#1*#14*0220*1##`
2023-11-05 11:24:38.436 [DEBUG] [nwebnet4j.communication.FrameChannel] - -FC-BUS-CMD |<--     NO DATA (size=0)
2023-11-05 11:24:38.437 [INFO ] [j.communication.BUSConnector.message] - BUS-CMD <<<<==== X [no frames]
2023-11-05 11:24:38.438 [DEBUG] [nwebnet4j.communication.BUSConnector] - ##BUS-conn## Exception: Received null frame while reading responses to command
2023-11-05 11:24:38.438 [INFO ] [nwebnet4j.communication.BUSConnector] - ##BUS-conn## trying NEW CMD connection...
2023-11-05 11:24:38.439 [DEBUG] [nwebnet4j.communication.BUSConnector] - ##BUS-conn## Establishing CMD connection to BUS Gateway on 10.0.0.90:20000...
2023-11-05 11:24:38.441 [DEBUG] [nwebnet4j.communication.BUSConnector] - ##BUS-conn## CMD socket connected
2023-11-05 11:24:38.442 [DEBUG] [nwebnet4j.communication.BUSConnector] - (HS) starting HANDSHAKE on channel BUS-CMD...
2023-11-05 11:24:38.443 [DEBUG] [communication.BUSConnector.handshake] - (HS) ... STEP-1: receive ACK from GW
2023-11-05 11:24:38.446 [INFO ] [nwebnet4j.communication.FrameChannel] - -FC-BUS-CMD <------- [*#*1##]
2023-11-05 11:24:38.447 [INFO ] [communication.BUSConnector.handshake] - (HS) BUS-CMD <<<<==HS `*#*1##`
2023-11-05 11:24:38.447 [DEBUG] [communication.BUSConnector.handshake] - (HS) ... STEP-1: first ACK received
2023-11-05 11:24:38.448 [DEBUG] [communication.BUSConnector.handshake] - (HS) ... STEP-2: send session request *99*0## ...
2023-11-05 11:24:38.449 [INFO ] [nwebnet4j.communication.FrameChannel] - -FC-BUS-CMD -------> *99*0##
2023-11-05 11:24:38.450 [INFO ] [communication.BUSConnector.handshake] - (HS) BUS-CMD HS==>>>> `*99*0##`
2023-11-05 11:24:38.451 [INFO ] [nwebnet4j.communication.FrameChannel] - -FC-BUS-CMD <------- [*#*1##]
2023-11-05 11:24:38.452 [INFO ] [communication.BUSConnector.handshake] - (HS) BUS-CMD <<<<==HS `*#*1##`
2023-11-05 11:24:38.452 [DEBUG] [communication.BUSConnector.handshake] - (HS) ... STEP-2: NO_AUTH: second ACK received, GW has no pwd ==HANDSHAKE COMPLETED==
2023-11-05 11:24:38.453 [INFO ] [nwebnet4j.communication.BUSConnector] - ##BUS-conn## ============ CMD CONNECTED ============
2023-11-05 11:24:38.454 [INFO ] [nwebnet4j.communication.FrameChannel] - -FC-BUS-CMD -------> *#4*1#1*#14*0220*1##
2023-11-05 11:24:38.455 [INFO ] [j.communication.BUSConnector.message] - BUS-CMD ====>>>> `*#4*1#1*#14*0220*1##` [ REOPEN ]
2023-11-05 11:24:38.496 [INFO ] [nwebnet4j.communication.FrameChannel] - -FC-BUS-CMD <------- [*#*0##]
2023-11-05 11:24:38.497 [DEBUG] [.openwebnet4j.communication.Response] - ``*#4*1#1*#14*0220*1##``   <<add   ``*#*0##``
2023-11-05 11:24:38.498 [DEBUG] [.openwebnet4j.communication.Response] - now: ``*#4*1#1*#14*0220*1##``   <<==    `[`*#*0##`]`
2023-11-05 11:24:38.499 [DEBUG] [j.communication.BUSConnector.message] - BUS-CMD   <<==   `*#*0##`
2023-11-05 11:24:38.499 [INFO ] [j.communication.BUSConnector.message] - BUS-CMD <<<<==== [`*#*0##`]
2023-11-05 11:24:38.500 [DEBUG] [nwebnet4j.communication.BUSConnector] - ##BUS-conn## ^^^^^^^^ USED NEW    CONNECTION    ^^^^^^^^

I did not understand Bastlers reply. All the setpoint temperatures are created as items automatically in the model

Hope this helps

PJG

this line means the command to change temperature sent by the OpenWebNet binding is not accepted/understood by your gateway.

  • Can you send the Thing configuration? If itā€™s configured using WebUI then go to the Thing settings, then copy what is in the Code tab
  • what is the model of the BTicino gateway to which OH is connected ?
  • can you confirm that your thermostats are in ā€œstandaloneā€ mode, that means there is no 99-zone nor a 4-zone Thermo central unit in your BTicino system?

This the Thing configuration from the WebUI

UID: openwebnet:bus_gateway:MyHomeGateway
label: BUS Gateway
thingTypeUID: openwebnet:bus_gateway
configuration:
  host: 10.0.0.90
  discoveryByActivation: false
  dateTimeSynch: false
  passwd: "12345"
  port: 20000
location: Laundry

My BTinico Gateway is an F454 Open WebNet

All the 3 thermostats operate stand alone. There is no central controller, 99 nor 4 zone.

PJG

On reflection, this must be an issue relating to the changes from 3.2 to 4, probably the new Java engine. Since the hardware has not changed and it all worked before, I assume that OH is no longer sending the same string of commands. My system is running with OpenHabian on a raspberry pi4. If it would help, I could try re-installing 3.2 on my pc to see what commands are sent with that version.

PJG

What is needed is the Thing configuration for one of the 3 thermostats Things, better the one you already tested in the previous test.
What you pasted here is the bridge Thing (maybe delete and correct the message)

This part in fact has been updated from OH 3, so what I am suspecting is a wrong configurationā€¦

Here is the code for the office thermostat

UID: openwebnet:bus_thermo_zone:MyHomeGateway:1
label: Thermo Office
thingTypeUID: openwebnet:bus_thermo_zone
configuration:
  where: 1#1
  standAlone: true
bridgeUID: openwebnet:bus_gateway:MyHomeGateway

The other thermostats are configured as 2#1 and 3#1. I think I remember that I had to change these from 1, 2 or 3 which were the default values by adding the #1 manually to each configuration for it to work under OH 3.3

I have tried deleting the Office Thermostat and re-installing it. The default configuration is now 1, but OH will no longer connect to it giving an UNKNOWN message.

PJG

PJG

I have also used the MyHome Suite software to check each thermostat to ensure that they are still set to the correct zones 1,2 and 3 which they are.

PJG

The right configuration should be now (since OH 4) where=1 for Zone 1 for standalone thermostats.
Can you try it?
Deleting the Thing and re-discovery it should also work, but then you have to be sure the same Thing UID is used, otherwise the Item will not be connected anymore and you will have to link again the Item to the Thing channel.

I tried changing the 1#1 to 1 in the properties page, but the device went UNKNOWN when I saved it. Changing back to 1#1 left the device still UNKNOWN so I have lost all the data from the thermostat. I will start again tomorrow reinstalling the thermostats and copying the logs.

PJG

I have managed to get one of the thermostat setpoint functions working with just the configuration 2, rather than 2#1. Great. For your info, I have attached the log file section as it does seem to throw an exception when it first tries to send the command, but then seems to re-establish a connection which then works. Is this a problem or is it what you would expect?

Thanks for the help in getting things going again.

PJG

==> /var/log/openhab/openhab.log <==
2023-11-07 07:51:14.310 [DEBUG] [ernal.handler.OpenWebNetThingHandler] - handleCommand() (command=24 Ā°C - channel=openwebnet:bus_thermo_zone:MyHomeGateway:2:setpointTemperature)
2023-11-07 07:51:14.312 [DEBUG] [penwebnet4j.message.Thermoregulation] - ====TEMPERATURE 24.0 --> : <0240>
2023-11-07 07:51:14.313 [INFO ] [nwebnet4j.communication.FrameChannel] - -FC-BUS-CMD -------> *#4*2*#14*0240*1##
2023-11-07 07:51:14.314 [INFO ] [j.communication.BUSConnector.message] - BUS-CMD ====>>>> `*#4*2*#14*0240*1##`
2023-11-07 07:51:14.315 [DEBUG] [nwebnet4j.communication.FrameChannel] - -FC-BUS-CMD |<--     NO DATA (size=0)
2023-11-07 07:51:14.316 [INFO ] [j.communication.BUSConnector.message] - BUS-CMD <<<<==== X [no frames]
2023-11-07 07:51:14.317 [DEBUG] [nwebnet4j.communication.BUSConnector] - ##BUS-conn## Exception: Received null frame while reading responses to command
2023-11-07 07:51:14.318 [INFO ] [nwebnet4j.communication.BUSConnector] - ##BUS-conn## trying NEW CMD connection...
2023-11-07 07:51:14.318 [DEBUG] [nwebnet4j.communication.BUSConnector] - ##BUS-conn## Establishing CMD connection to BUS Gateway on 10.0.0.90:20000...
2023-11-07 07:51:14.320 [DEBUG] [nwebnet4j.communication.BUSConnector] - ##BUS-conn## CMD socket connected
2023-11-07 07:51:14.321 [DEBUG] [nwebnet4j.communication.BUSConnector] - (HS) starting HANDSHAKE on channel BUS-CMD...
2023-11-07 07:51:14.323 [DEBUG] [communication.BUSConnector.handshake] - (HS) ... STEP-1: receive ACK from GW
2023-11-07 07:51:14.325 [INFO ] [nwebnet4j.communication.FrameChannel] - -FC-BUS-CMD <------- [*#*1##]
2023-11-07 07:51:14.326 [INFO ] [communication.BUSConnector.handshake] - (HS) BUS-CMD <<<<==HS `*#*1##`
2023-11-07 07:51:14.326 [DEBUG] [communication.BUSConnector.handshake] - (HS) ... STEP-1: first ACK received
2023-11-07 07:51:14.327 [DEBUG] [communication.BUSConnector.handshake] - (HS) ... STEP-2: send session request *99*0## ...
2023-11-07 07:51:14.328 [INFO ] [nwebnet4j.communication.FrameChannel] - -FC-BUS-CMD -------> *99*0##
2023-11-07 07:51:14.329 [INFO ] [communication.BUSConnector.handshake] - (HS) BUS-CMD HS==>>>> `*99*0##`
2023-11-07 07:51:14.330 [INFO ] [nwebnet4j.communication.FrameChannel] - -FC-BUS-CMD <------- [*#*1##]
2023-11-07 07:51:14.331 [INFO ] [communication.BUSConnector.handshake] - (HS) BUS-CMD <<<<==HS `*#*1##`
2023-11-07 07:51:14.332 [DEBUG] [communication.BUSConnector.handshake] - (HS) ... STEP-2: NO_AUTH: second ACK received, GW has no pwd ==HANDSHAKE COMPLETED==
2023-11-07 07:51:14.333 [INFO ] [nwebnet4j.communication.BUSConnector] - ##BUS-conn## ============ CMD CONNECTED ============
2023-11-07 07:51:14.334 [INFO ] [nwebnet4j.communication.FrameChannel] - -FC-BUS-CMD -------> *#4*2*#14*0240*1##
2023-11-07 07:51:14.335 [INFO ] [j.communication.BUSConnector.message] - BUS-CMD ====>>>> `*#4*2*#14*0240*1##` [ REOPEN ]
2023-11-07 07:51:14.427 [INFO ] [nwebnet4j.communication.FrameChannel] - -FC-BUS-CMD <------- [*#*1##]
2023-11-07 07:51:14.427 [DEBUG] [.openwebnet4j.communication.Response] - ``*#4*2*#14*0240*1##``   <<add   ``*#*1##``
2023-11-07 07:51:14.428 [DEBUG] [.openwebnet4j.communication.Response] - now: ``*#4*2*#14*0240*1##``   <<==    `[`*#*1##`]`
2023-11-07 07:51:14.428 [DEBUG] [j.communication.BUSConnector.message] - BUS-CMD   <<==   `*#*1##`
2023-11-07 07:51:14.428 [INFO ] [j.communication.BUSConnector.message] - BUS-CMD <<<<==== [`*#*1##`]
2023-11-07 07:51:14.428 [DEBUG] [nwebnet4j.communication.BUSConnector] - ##BUS-conn## ^^^^^^^^ USED NEW    CONNECTION    ^^^^^^^^
2023-11-07 07:51:14.497 [INFO ] [nwebnet4j.communication.FrameChannel] - -FC-BUS-MON <------- [*#4*2*12*0240*3##]
2023-11-07 07:51:14.497 [INFO ] [unication.BUSConnector.message.event] - BUS-MON <<<<<<<< `*#4*2*12*0240*3##`
2023-11-07 07:51:14.498 [DEBUG] [rnal.handler.OpenWebNetBridgeHandler] - ownIdFromMessage(`*#4*2*12*0240*3##`) --> 4.2
2023-11-07 07:51:14.499 [DEBUG] [er.OpenWebNetThermoregulationHandler] - @@@@ Thermo.handleMessage(): `*#4*2*12*0240*3##`{THERMOREGULATION-COMPLETE_PROBE_STATUS,w:2,dimValues=[0240, 3]}
2023-11-07 07:51:14.517 [INFO ] [nwebnet4j.communication.FrameChannel] - -FC-BUS-MON <------- [*4*1*2##]
2023-11-07 07:51:14.517 [INFO ] [unication.BUSConnector.message.event] - BUS-MON <<<<<<<< `*4*1*2##`
2023-11-07 07:51:14.518 [DEBUG] [rnal.handler.OpenWebNetBridgeHandler] - ownIdFromMessage(`*4*1*2##`) --> 4.2
2023-11-07 07:51:14.519 [DEBUG] [er.OpenWebNetThermoregulationHandler] - @@@@ Thermo.handleMessage(): `*4*1*2##`{THERMOREGULATION-HEATING,w:2}
2023-11-07 07:51:14.542 [INFO ] [nwebnet4j.communication.FrameChannel] - -FC-BUS-MON <------- [*#4*2*0*0217##]
2023-11-07 07:51:14.543 [INFO ] [unication.BUSConnector.message.event] - BUS-MON <<<<<<<< `*#4*2*0*0217##`
2023-11-07 07:51:14.544 [DEBUG] [rnal.handler.OpenWebNetBridgeHandler] - ownIdFromMessage(`*#4*2*0*0217##`) --> 4.2
2023-11-07 07:51:14.544 [DEBUG] [er.OpenWebNetThermoregulationHandler] - @@@@ Thermo.handleMessage(): `*#4*2*0*0217##`{THERMOREGULATION-TEMPERATURE,w:2,dimValues=[0217]}

your code goes here

Great that the thermostat now works with the correct configuration.
In fact this was a required configuration change from OH 3.x to OH 4 in the case of standalone thermostats.

Re-establish of the command connection is perfectly normal since the binding closes the connection after a while if no command is sent.

Good evening everyone, my configuration is Raspberry 4, openhab 4.01 and MH201. I have about 80 switches and 10 zone probes; I also have the 3550 control panel with 99 zones. Iā€™ve been using OH for 4 years now and have never had any major problems. there is one thing I canā€™t fix in my sitemaps graphics; if the zone probe has a local setting other than 0 the graph has a strange trend when the weekly program settings change.


come posso correggere?

I just published on the Marketplace a new 4.1.0.beta2 version with further improved handling general/area events for lights.

@m4rk , @the-ninth and @marchino can you check?

Configuration and working example animation follows.

NOTES

  • For thos who have defined General/Area/Group things using bus_on_off_switch, now the new bus_light_group thing type must be used
  • this does not fix handling of GEN / AREA events for Automations (WHO=2). If the approach works, I will extend it also to automations

Related GitHub issue

Sample configuration

bus_light_group               ALL_lights           "All lights"             [ where="0" ]
bus_light_group               LR_area              "Living Room Area 5"     [ where="5" ]
bus_on_off_switch             LR_switch            "Living Room Light 5.1"  [ where="51" ]

GIF 19-11-2023 12-37-35

Ciao Massi,

I will try during the next week, but I need some clarification to better understand how and what to test.

I have always used OH groups to manage a set of lights:

Group:Switch:OR(ON,OFF)	GLuci	"Gruppo Luci"	<if:fxemoji:lightbulb> 	(GCasa)		"Equipment"]							

The problem was that the Area/General messages of scenarios or physical devices did not update the status of OH elements. The previous beta version you shared solved this behaviour and OH was able to update itself and have the correct light status.

Group command was not optimised and although all lights could be switched on/off, the command was sent for each element.

If I change the configuration using bus_light_group thing and item, instead of sending a command for each element the Area/General message will be used. Is this correct? This thing should be the one to be covered by test?

this is solved in both beta1 and beta2 versions

correct, now if you send a ON command to a bus_light_group thing configured for an Area like in my Sample configuration, the command is sent only once to the BUS and the area thing/item is also updated correctly

  • which local setting has the zone probe? which zone number?
  • which setpoint has configured your weekly program?
  • which item/channel is plotted in your graph which has a strange behavior?

ciao Massi.
The local probe in this case was -3; but this behavior also applies with +3,+2,+1,-2, -1 and protection/antifreeze.
The setpoint (impostata) changes as the time changes and is set on the control unit with TiThermo.
In my graph the problem is on the ā€œThermo_Zone_WHERE5_Temperatura_impostataā€.
Naturally it behaves this way with all similar items.