[OpenWebNet/BTicino] BTicino MyHOME binding for openHAB

Hi all,
I have been using this binding for more than an year without issues.
Now after updating to 4.2 I cannot see the status of some items and I cannot control other items.
I am using MHS1 + 3x BMSW1005 + 1x BMSW1003

Here my things file:

Bridge openwebnet:bus_gateway:mybridge "MyHOMEServer1" [ host="192.168.88.253", passwd="****", port=20000, discoveryByActivation=false ] {
   
//D46
      bus_on_off_switch             s01         "s01"     [ where="01" ] 
      bus_on_off_switch             s02         "s02"     [ where="02" ]
      bus_on_off_switch             s03         "s03"     [ where="03" ]
      bus_on_off_switch             s04         "s04"     [ where="04" ]
      bus_on_off_switch             s05         "s05"     [ where="05" ]
      bus_on_off_switch             s06         "s06"     [ where="06" ]
      bus_on_off_switch             s07         "s07"     [ where="07" ]
      bus_on_off_switch             s08         "s08"     [ where="08" ]

//D44
      bus_on_off_switch             s11         "s11"     [ where="09" ]
      bus_on_off_switch             s12         "s12"     [ where="0010" ]
      bus_on_off_switch             s13         "s13"     [ where="0011" ]
      bus_on_off_switch             s14         "s14"     [ where="0012" ]
      bus_on_off_switch             s15         "s15"     [ where="0013" ]
      bus_on_off_switch             s16         "s16"     [ where="0014" ]
      bus_on_off_switch             s17         "s17"     [ where="0015" ]
      bus_on_off_switch             s18         "s18"     [ where="10" ]

//D48
      bus_on_off_switch             s21         "s21"     [ where="11" ]
      bus_on_off_switch             s22         "s22"     [ where="12" ]
      bus_on_off_switch             s23         "s23"     [ where="13" ]
      bus_on_off_switch             s24         "s24"     [ where="14" ]
      bus_on_off_switch             s25         "s25"     [ where="15" ]
      bus_on_off_switch             s26         "s26"     [ where="16" ]
      bus_on_off_switch             s27         "s27"     [ where="17" ]
      bus_on_off_switch             s28         "s28"     [ where="18" ]

//25E
      bus_on_off_switch             s31         "s31"     [ where="0114" ]
      bus_on_off_switch             s32         "s32"     [ where="0110" ]
      bus_on_off_switch             s33         "s33"     [ where="0111" ]
      bus_on_off_switch             s34         "s34"     [ where="0112" ]

//      bus_on_off_switch             s41         "s41"     [ where="41" ]

      bus_energy_meter              e1          "e1"      [ where="51" ]	
      bus_energy_meter              e2          "e2"      [ where="52" ]	
      bus_energy_meter              e3          "e3"      [ where="53" ]	
      bus_energy_meter              e4          "e4"      [ where="54" ]	
      bus_energy_meter              e5          "e5"      [ where="55" ]	
	  
} 

And my items file:

Group gbTicino (gAll)

Group:Switch:OR(ON,OFF)  gbTicinoLuci (gbTicino)
Group:Switch:OR(ON,OFF)  gbTicinoLuciForSitemap (gbTicino)

Group:Switch:OR(ON,OFF)  gbTicinoLuciInterno (gbTicinoLuci)
Group:Switch:OR(ON,OFF)  gbTicinoLuciEsterno (gbTicinoLuci)
Group:Switch  gbTicinoPump (gbTicino)
Group gbTicinoSpare (gbTicino) 
Group:Number gbTicinoEnergy (gbTicino)
Group:Number:Power:SUM gbTicinoPower (gbTicino,gMQTTpublish)  {unit="W"}

Group:Number:Power:SUM	gbTicinoSUMTriPower "Instant Full Power [%.2f kW]" (gbTicinoPower) {unit="W"}
Group:Number:Power:SUM	gbTicinoSUMBackupPower "Instant Full Power [%.2f kW]" (gbTicinoPower)  {unit="W"}
Group:Number:Power:SUM	gbTicinoSUMPDCPower "Instant Full Power [%.2f kW]" (gbTicinoPower)  {unit="W"}

Group:Switch:OR(ON,OFF) gbTicinoLuciPool (gbTicinoLuciEsterno)
Group:Switch:OR(ON,OFF) gbTicinoLuciGarden (gbTicinoLuciEsterno)
Group:Switch:OR(ON,OFF) gbTicinoLuciFacciata (gbTicinoLuciEsterno)
Group:Switch:OR(ON,OFF) gbTicinoLuciGarage (gbTicinoLuciEsterno)
Group:Switch:OR(ON,OFF) gbTicinoAO (gbTicinoLuci)
Group:Switch:OR(ON,OFF) gbTicinoAOinHome (gbTicinoLuci)
Group:Switch:OR(ON,OFF) gbTicino44 (gbTicino)
Group:Switch:OR(ON,OFF) gbTicino46 (gbTicino)
Group:Switch:OR(ON,OFF) gbTicino48 (gbTicino)
Group:Switch:OR(ON,OFF) gbTicino5E (gbTicino)
Group:Switch:OR(ON,OFF) gbTicinoATT1 (gbTicino)

// Scenari
Number nLightBTicinoScene (gbTicino) {expire="1s,state=0"}

Switch      synchPoolLights  "Synch Pool"           (gbTicino)                      {expire="1s,OFF"}
Switch      changePoolLights "Change Pool lights"   (gbTicino)                      {expire="1s,OFF"}

Switch      bs01            "Pool"                  (gbTicino46,gbTicinoLuciPool,gbTicinoLuciForSitemap)   { channel="openwebnet:bus_on_off_switch:mybridge:s01:switch", ga="Light" }
Switch      bs02            "Segnapasso piscina"    (gbTicino46,gbTicinoLuciPool,gbTicinoLuciForSitemap)   { channel="openwebnet:bus_on_off_switch:mybridge:s02:switch", ga="Light" }
Switch      bs03            "Piante"                (gbTicino46,gbTicinoLuciGarden,gbTicinoLuciForSitemap) { channel="openwebnet:bus_on_off_switch:mybridge:s03:switch", ga="Light" }
Switch      bs04            "Alloro"                (gbTicino46,gbTicinoLuciGarden,gbTicinoLuciForSitemap)   { channel="openwebnet:bus_on_off_switch:mybridge:s04:switch", ga="Light" }
Switch      bs05            "Faro chiesa"           (gbTicino46,gbTicinoLuciGarden,gbTicinoLuciForSitemap)   { channel="openwebnet:bus_on_off_switch:mybridge:s05:switch", ga="Light" }
Switch      bs06            "Natale"                (gbTicino46,gbTicinoLuciGarden,gbTicinoLuciForSitemap)   { channel="openwebnet:bus_on_off_switch:mybridge:s06:switch", ga="Light" }
Switch      bs07            "Frutteto"              (gbTicino46,gbTicinoLuciGarden,gbTicinoLuciForSitemap) { channel="openwebnet:bus_on_off_switch:mybridge:s07:switch", ga="Light" }
//Switch      bs08            "Light0-8"              (gbTicino46,gbTicinoSpare)  { channel="openwebnet:bus_on_off_switch:mybridge:s08:switch", ga="Light" }

Switch      bs11            "Segnapasso scale"      (gbTicino44,gbTicinoLuciGarden,gbTicinoLuciForSitemap,gbTicinoAOinHome)  	{ channel="openwebnet:bus_on_off_switch:mybridge:s11:switch", ga="Light" }
Switch      bs12            "Facciata Est"          (gbTicino44,gbTicinoLuciFacciata,gbTicinoLuciForSitemap)  		{ channel="openwebnet:bus_on_off_switch:mybridge:s12:switch", ga="Light" }
Switch      bs13            "Facciata Ovest"        (gbTicino44,gbTicinoLuciFacciata,gbTicinoLuciForSitemap)  		{ channel="openwebnet:bus_on_off_switch:mybridge:s13:switch", ga="Light" }
Switch      bs14            "Facciata A/O"          (gbTicino44,gbTicinoLuciFacciata,gbTicinoLuciForSitemap,gbTicinoAO) 	{ channel="openwebnet:bus_on_off_switch:mybridge:s14:switch", ga="Light" }
Switch      bs15            "Facciata Cucina"       (gbTicino44,gbTicinoLuciFacciata,gbTicinoLuciForSitemap, gbTicinoAOinHome)  { channel="openwebnet:bus_on_off_switch:mybridge:s15:switch", ga="Light" }
Switch      bs16            "Segnapasso rampa"      (gbTicino44,gbTicinoLuciGarage,gbTicinoLuciForSitemap,gbTicinoAO)  	{ channel="openwebnet:bus_on_off_switch:mybridge:s16:switch", ga="Light" }
Switch      bs17            "Lampioni Est"          (gbTicino44,gbTicinoLuciGarden,gbTicinoLuciForSitemap)    		{ channel="openwebnet:bus_on_off_switch:mybridge:s17:switch", ga="Light" }
Switch      bs18            "Lampioni Ovest"        (gbTicino44,gbTicinoLuciGarden,gbTicinoLuciForSitemap, gbTicinoAOinHome)    { channel="openwebnet:bus_on_off_switch:mybridge:s18:switch", ga="Light" }

Switch      bs21            "Faro Cortile"          (gbTicino48,gbTicinoLuciFacciata,gbTicinoLuciForSitemap)  	{ channel="openwebnet:bus_on_off_switch:mybridge:s21:switch", ga="Light" }
Switch      bs22            "Faro Est"              (gbTicino48,gbTicinoLuciFacciata,gbTicinoLuciForSitemap)  	{ channel="openwebnet:bus_on_off_switch:mybridge:s22:switch", ga="Light" }
Switch      bs23            "Faro Sud"              (gbTicino48,gbTicinoLuciFacciata,gbTicinoLuciForSitemap)  	{ channel="openwebnet:bus_on_off_switch:mybridge:s23:switch", ga="Light" }
Switch      bs24            "Faro Ovest"            (gbTicino48,gbTicinoLuciFacciata,gbTicinoLuciForSitemap)  	{ channel="openwebnet:bus_on_off_switch:mybridge:s24:switch", ga="Light" }
Switch      bs25            "Luce fronte box"       (gbTicino48,gbTicinoLuciGarage,gbTicinoLuciForSitemap)    	{ channel="openwebnet:bus_on_off_switch:mybridge:s25:switch", ga="Light" }
//Switch      bs26            "Light2-6"              (gbTicino48,gbTicinoSpare)     				{ channel="openwebnet:bus_on_off_switch:mybridge:s26:switch", ga="Light" }
//Switch      bs27            "Light2-7"           (gbTicino48,gbTicinoSpare)     					{ channel="openwebnet:bus_on_off_switch:mybridge:s27:switch", ga="Light" }
Switch      bs28            "Luce scale"            (gbTicino48,gbTicinoLuciInterno,gbTicinoLuciForSitemap,gbTicinoAO) { channel="openwebnet:bus_on_off_switch:mybridge:s28:switch", ga="Light" }

Switch      bs31            "Pump Auto/Timer"       (gbTicino5E,gbTicinoPump)   { channel="openwebnet:bus_on_off_switch:mybridge:s31:switch", ga="Light" }
Switch      bs32            "Pool Pump"             (gbTicino5E,gbTicinoPump)   { channel="openwebnet:bus_on_off_switch:mybridge:s32:switch", ga="Light" }
Switch      bs33            "Clorinatore"           (gbTicino5E,gbTicinoPump)   { channel="openwebnet:bus_on_off_switch:mybridge:s33:switch", ga="Light" }
//Switch      bs34            "Light3-4"              (gbTicino5E,gbTicinoSpare)  { channel="openwebnet:bus_on_off_switch:mybridge:s34:switch", ga="Light" }

//Switch      bs41            "Luce notte"            (gbTicinoATT1,gbTicinoLuciInterno)  { channel="openwebnet:bus_on_off_switch:mybridge:s41:switch", ga="Light" }

Number:Power be1            "Fase 1 [%.2f %unit%]"  (gbTicinoSUMTriPower) { unit="W", channel="openwebnet:bus_energy_meter:mybridge:e1:power" }
Number:Power be2            "Fase 2 [%.2f %unit%]"  (gbTicinoSUMTriPower) { unit="W", channel="openwebnet:bus_energy_meter:mybridge:e2:power" }
Number:Power be3            "Fase 3 [%.2f %unit%]"  (gbTicinoSUMTriPower) { unit="W", channel="openwebnet:bus_energy_meter:mybridge:e3:power" } 
Number:Power be4            "Backup [%.2f %unit%]"  (gbTicinoSUMBackupPower) { unit="W", channel="openwebnet:bus_energy_meter:mybridge:e4:power" } 
Number:Power be5            "PdC [%.2f %unit%]"  (gbTicinoSUMPDCPower) { unit="W", channel="openwebnet:bus_energy_meter:mybridge:e5:power" } 

//FOR WEMOS
Number      bn01            "Pool"                  (gMQTTpublish)  { channel="openwebnet:bus_on_off_switch:mybridge:s01:switch", ga="Light" [profile="transform:MAP", function="switch_binary.map"]}
Number      bn02            "Segnapasso piscina"    (gMQTTpublish)  { channel="openwebnet:bus_on_off_switch:mybridge:s02:switch", ga="Light" [profile="transform:MAP", function="switch_binary.map"]}
Number      bn03            "Piante"                (gMQTTpublish)  { channel="openwebnet:bus_on_off_switch:mybridge:s03:switch", ga="Light" [profile="transform:MAP", function="switch_binary.map"]}
Number      bn04            "Alloro"                (gMQTTpublish)  { channel="openwebnet:bus_on_off_switch:mybridge:s04:switch", ga="Light" [profile="transform:MAP", function="switch_binary.map"]}
Number      bn05            "Faro chiesa"           (gMQTTpublish)  { channel="openwebnet:bus_on_off_switch:mybridge:s05:switch", ga="Light" [profile="transform:MAP", function="switch_binary.map"]}
Number      bn06            "Natale"                (gMQTTpublish)  { channel="openwebnet:bus_on_off_switch:mybridge:s06:switch", ga="Light" [profile="transform:MAP", function="switch_binary.map"]}
Number      bn07            "Frutteto"              (gMQTTpublish)  { channel="openwebnet:bus_on_off_switch:mybridge:s07:switch", ga="Light" [profile="transform:MAP", function="switch_binary.map"]}
//Number      bn08            "Light0-8"              (gMQTTpublish)  { channel="openwebnet:bus_on_off_switch:mybridge:s08:switch", ga="Light" [profile="transform:MAP", function="switch_binary.map"]}

Number      bn11            "Segnapasso scale"      (gMQTTpublish)  { channel="openwebnet:bus_on_off_switch:mybridge:s11:switch", ga="Light" [profile="transform:MAP", function="switch_binary.map"]}
Number      bn12            "Facciata Est"          (gMQTTpublish)  { channel="openwebnet:bus_on_off_switch:mybridge:s12:switch", ga="Light" [profile="transform:MAP", function="switch_binary.map"]}
Number      bn13            "Facciata Ovest"        (gMQTTpublish)  { channel="openwebnet:bus_on_off_switch:mybridge:s13:switch", ga="Light" [profile="transform:MAP", function="switch_binary.map"]}
Number      bn14            "Facciata A/O"          (gMQTTpublish)  { channel="openwebnet:bus_on_off_switch:mybridge:s14:switch", ga="Light" [profile="transform:MAP", function="switch_binary.map"]}
Number      bn15            "Facciata Cucina"       (gMQTTpublish)  { channel="openwebnet:bus_on_off_switch:mybridge:s15:switch", ga="Light" [profile="transform:MAP", function="switch_binary.map"]}
Number      bn16            "Segnapasso rampa"      (gMQTTpublish)  { channel="openwebnet:bus_on_off_switch:mybridge:s16:switch", ga="Light" [profile="transform:MAP", function="switch_binary.map"]}
Number      bn17            "Lampioni Est"          (gMQTTpublish)  { channel="openwebnet:bus_on_off_switch:mybridge:s17:switch", ga="Light" [profile="transform:MAP", function="switch_binary.map"]}
Number      bn18            "Lampioni Ovest"        (gMQTTpublish)  { channel="openwebnet:bus_on_off_switch:mybridge:s18:switch", ga="Light" [profile="transform:MAP", function="switch_binary.map"]}

Number      bn21            "Faro Cortile"          (gMQTTpublish)  { channel="openwebnet:bus_on_off_switch:mybridge:s21:switch", ga="Light" [profile="transform:MAP", function="switch_binary.map"]}
Number      bn22            "Faro Est"              (gMQTTpublish)  { channel="openwebnet:bus_on_off_switch:mybridge:s22:switch", ga="Light" [profile="transform:MAP", function="switch_binary.map"]}
Number      bn23            "Faro Sud"              (gMQTTpublish)  { channel="openwebnet:bus_on_off_switch:mybridge:s23:switch", ga="Light" [profile="transform:MAP", function="switch_binary.map"]}
Number      bn24            "Faro Ovest"            (gMQTTpublish)  { channel="openwebnet:bus_on_off_switch:mybridge:s24:switch", ga="Light" [profile="transform:MAP", function="switch_binary.map"]}
Number      bn25            "Luce fronte box"       (gMQTTpublish)  { channel="openwebnet:bus_on_off_switch:mybridge:s25:switch", ga="Light" [profile="transform:MAP", function="switch_binary.map"]}
//Number      bn26            "Light2-6"              (gMQTTpublish)  { channel="openwebnet:bus_on_off_switch:mybridge:s26:switch", ga="Light" [profile="transform:MAP", function="switch_binary.map"]}
//Number      bn27            "Light2-7"              (gMQTTpublish)  { channel="openwebnet:bus_on_off_switch:mybridge:s27:switch", ga="Light" [profile="transform:MAP", function="switch_binary.map"]}
Number      bn28            "Luce scale"            (gMQTTpublish)  { channel="openwebnet:bus_on_off_switch:mybridge:s28:switch", ga="Light" [profile="transform:MAP", function="switch_binary.map"]}

Number      bn31            "Pump Auto/Timer"       (gMQTTpublish)  { channel="openwebnet:bus_on_off_switch:mybridge:s31:switch", ga="Light" [profile="transform:MAP", function="switch_binary.map"]}
Number      bn32            "Pool Pump"             (gMQTTpublish)  { channel="openwebnet:bus_on_off_switch:mybridge:s32:switch", ga="Light" [profile="transform:MAP", function="switch_binary.map"]}
Number      bn33            "Clorinatore"           (gMQTTpublish)  { channel="openwebnet:bus_on_off_switch:mybridge:s33:switch", ga="Light" [profile="transform:MAP", function="switch_binary.map"]}
//Number      bn34            "Light3-4"              (gMQTTpublish)  { channel="openwebnet:bus_on_off_switch:mybridge:s34:switch", ga="Light" [profile="transform:MAP", function="switch_binary.map"]}

//Number      bn41            "Luce notte"            (gMQTTpublish)  { channel="openwebnet:bus_on_off_switch:mybridge:s41:switch", ga="Light" [profile="transform:MAP", function="switch_binary.map"]}

The ones that are not working properly are the ones with WHERE between “01” and “10”.
I have two different types of errors:

  1. WHERE=“01” to “09” the error is “Could not get get channel state”
  2. WHERE=10 error is “OpenWebNet Address (where) parameter in configuration is null or invalid”
    From bTicino application H+C everything works properly.

Error 1:
From OH I can command the switches (turn on/off the light works), but the status in OH is not updated.
Here’s the log:

2024-08-15 19:39:42.297 [INFO ] [openhab.event.ItemCommandEvent      ] - Item 'bs03' received command ON
2024-08-15 19:39:42.298 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'bs03' predicted to become NULL
==> /var/log/openhab/openhab.log <==
2024-08-15 19:39:42.299 [DEBUG] [ernal.handler.OpenWebNetThingHandler] - handleCommand() (command=ON - channel=openwebnet:bus_on_off_switch:mybridge:s03:switch)
2024-08-15 19:39:42.299 [DEBUG] [al.handler.OpenWebNetLightingHandler] - handleSwitchCommand() (command=ON - channel=openwebnet:bus_on_off_switch:mybridge:s03:switch)
2024-08-15 19:39:42.394 [TRACE] [rnal.handler.OpenWebNetBridgeHandler] - RECEIVED <<<<< `*1*1*03##`
2024-08-15 19:39:42.395 [DEBUG] [al.handler.OpenWebNetLightingHandler] - handleMultipleMessage `*1*1*03##`

Error 2:
I cannot send the command to turn the lights ON opr OFF.
Tested with the OpenWebNet Client sending the command manually and all is working (example with WHERE=10):



So the light is properly addressed and working using WHERE=10, but when I try to send the command with OH4 it gives the following error and do not command the light:

2024-08-15 19:37:25.292 [INFO ] [openhab.event.ItemCommandEvent      ] - Item 'bs18' received command ON
2024-08-15 19:37:25.293 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'bs18' predicted to become NULL
==> /var/log/openhab/openhab.log <==
2024-08-15 19:37:25.295 [DEBUG] [ernal.handler.OpenWebNetThingHandler] - handleCommand() (command=ON - channel=openwebnet:bus_on_off_switch:mybridge:s18:switch)
2024-08-15 19:37:25.295 [INFO ] [ernal.handler.OpenWebNetThingHandler] - Cannot handle ON command for openwebnet:bus_on_off_switch:mybridge:s18: 'where' parameter is not configured or is invalid
2024-08-15 19:37:26.943 [TRACE] [rnal.handler.OpenWebNetBridgeHandler] - RECEIVED <<<<< `*#18*54*113*180##`
2024-08-15 19:37:26.943 [DEBUG] [rnal.handler.OpenWebNetBridgeHandler] - ownIdFromMessage(`*#18*54*113*180##`) --> 18.54

I tried to reset the MHS1 and all the actuators rebuilding the system from zero, but I still get the same problem.

Any idea of what it could be?