This is from openhab.log and from a subscription to the relevant topic for switch19:
2022-03-01 19:44:42.433 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'switch19_Finestra' received command UP
2022-03-01 19:44:42.445 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'switch19_Finestra' predicted to become UP
2022-03-01 19:44:42.453 [INFO ] [openhab.event.ItemStateEvent ] - Item 'switch19_Finestra' updated to UP
2022-03-01 19:44:42.457 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'switch19_Finestra' changed from 100 to 0
2022-03-01 19:44:42.626 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Transformation '{"POWER2":"OFF"}' returned null on 'REGEX', discarding message
2022-03-01 19:44:42.626 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Transformation '{"POWER2":"OFF"}' returned null on 'REGEX', discarding message
2022-03-01 19:44:42.644 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Transformation '{"POWER1":"ON"}' returned null on 'REGEX', discarding message
2022-03-01 19:44:42.644 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Transformation '{"POWER1":"ON"}' returned null on 'REGEX', discarding message
2022-03-01 19:44:42.666 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Transformation '{"ShutterPosition1":0}' returned null on 'REGEX', discarding message
2022-03-01 19:44:42.666 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Transformation '{"ShutterPosition1":0}' returned null on 'REGEX', discarding message
2022-03-01 19:44:42.669 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Transformation '{"Shutter1":{"Position":100,"Direction":1,"Target":0}}' returned null on 'REGEX', discarding message
2022-03-01 19:44:42.677 [INFO ] [openhab.event.ItemStateEvent ] - Item 'switch19_Finestra' updated to 100
2022-03-01 19:44:42.681 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'switch19_Finestra' changed from 0 to 100
2022-03-01 19:44:42.861 [INFO ] [openhab.event.ItemStateEvent ] - Item 'switch19_Finestra' updated to 97
2022-03-01 19:44:42.866 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'switch19_Finestra' changed from 100 to 97
2022-03-01 19:44:43.842 [INFO ] [openhab.event.ItemStateEvent ] - Item 'switch19_Finestra' updated to 83
2022-03-01 19:44:43.845 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'switch19_Finestra' changed from 97 to 83
2022-03-01 19:44:44.866 [INFO ] [openhab.event.ItemStateEvent ] - Item 'switch19_Finestra' updated to 69
2022-03-01 19:44:44.870 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'switch19_Finestra' changed from 83 to 69
2022-03-01 19:44:45.845 [INFO ] [openhab.event.ItemStateEvent ] - Item 'switch19_Finestra' updated to 55
2022-03-01 19:44:45.853 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'switch19_Finestra' changed from 69 to 55
2022-03-01 19:44:46.872 [INFO ] [openhab.event.ItemStateEvent ] - Item 'switch19_Finestra' updated to 40
2022-03-01 19:44:46.879 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'switch19_Finestra' changed from 55 to 40
2022-03-01 19:44:47.832 [INFO ] [openhab.event.ItemStateEvent ] - Item 'switch19_Finestra' updated to 26
2022-03-01 19:44:47.838 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'switch19_Finestra' changed from 40 to 26
2022-03-01 19:44:48.868 [INFO ] [openhab.event.ItemStateEvent ] - Item 'switch19_Finestra' updated to 11
2022-03-01 19:44:48.871 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'switch19_Finestra' changed from 26 to 11
2022-03-01 19:44:49.693 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Transformation '{"POWER1":"OFF"}' returned null on 'REGEX', discarding message
2022-03-01 19:44:49.695 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Transformation '{"POWER1":"OFF"}' returned null on 'REGEX', discarding message
2022-03-01 19:44:50.214 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Transformation '{"Shutter1":{"Position":0,"Direction":0,"Target":0}}' returned null on 'REGEX', discarding message
2022-03-01 19:44:50.217 [INFO ] [openhab.event.ItemStateEvent ] - Item 'switch19_Finestra' updated to 0
2022-03-01 19:44:50.220 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'switch19_Finestra' changed from 11 to 0
----------------------------------
mosquitto_sub -d -t switch19/stat/RESULT
Client (null) sending CONNECT
Client (null) received CONNACK (0)
Client (null) sending SUBSCRIBE (Mid: 1, Topic: switch19/stat/RESULT, QoS: 0, Options: 0x00)
Client (null) received SUBACK
Subscribed (mid: 1): 0
Client (null) received PUBLISH (d0, q0, r0, m0, 'switch19/stat/RESULT', ... (16 bytes))
{"POWER2":"OFF"}
Client (null) received PUBLISH (d0, q0, r0, m0, 'switch19/stat/RESULT', ... (15 bytes))
{"POWER1":"ON"}
Client (null) received PUBLISH (d0, q0, r0, m0, 'switch19/stat/RESULT', ... (22 bytes))
{"ShutterPosition1":0}
Client (null) received PUBLISH (d0, q0, r0, m0, 'switch19/stat/RESULT', ... (54 bytes))
{"Shutter1":{"Position":100,"Direction":1,"Target":0}}
Client (null) received PUBLISH (d0, q0, r0, m0, 'switch19/stat/RESULT', ... (108 bytes))
{"Shutter1":{"Position":97,"Direction":1,"Target":0},"Shutter2":{"Position":100,"Direction":0,"Target":100}}
Client (null) received PUBLISH (d0, q0, r0, m0, 'switch19/stat/RESULT', ... (108 bytes))
{"Shutter1":{"Position":83,"Direction":1,"Target":0},"Shutter2":{"Position":100,"Direction":0,"Target":100}}
Client (null) received PUBLISH (d0, q0, r0, m0, 'switch19/stat/RESULT', ... (108 bytes))
{"Shutter1":{"Position":69,"Direction":1,"Target":0},"Shutter2":{"Position":100,"Direction":0,"Target":100}}
Client (null) received PUBLISH (d0, q0, r0, m0, 'switch19/stat/RESULT', ... (108 bytes))
{"Shutter1":{"Position":55,"Direction":1,"Target":0},"Shutter2":{"Position":100,"Direction":0,"Target":100}}
Client (null) received PUBLISH (d0, q0, r0, m0, 'switch19/stat/RESULT', ... (108 bytes))
{"Shutter1":{"Position":40,"Direction":1,"Target":0},"Shutter2":{"Position":100,"Direction":0,"Target":100}}
Client (null) received PUBLISH (d0, q0, r0, m0, 'switch19/stat/RESULT', ... (108 bytes))
{"Shutter1":{"Position":26,"Direction":1,"Target":0},"Shutter2":{"Position":100,"Direction":0,"Target":100}}
Client (null) received PUBLISH (d0, q0, r0, m0, 'switch19/stat/RESULT', ... (108 bytes))
{"Shutter1":{"Position":11,"Direction":1,"Target":0},"Shutter2":{"Position":100,"Direction":0,"Target":100}}
Client (null) received PUBLISH (d0, q0, r0, m0, 'switch19/stat/RESULT', ... (16 bytes))
{"POWER1":"OFF"}
Client (null) received PUBLISH (d0, q0, r0, m0, 'switch19/stat/RESULT', ... (52 bytes))
{"Shutter1":{"Position":0,"Direction":0,"Target":0}}
Looking now to the same info for switch21 we have:
tail -f /var/log/openhab/openhab.log | grep -e switch20_Finestra -e .mqtt.
2022-03-01 19:55:00.628 [DEBUG] [ing.mqtt.internal.action.MQTTActions] - MQTT publish to OH2/DEVICESLIST performed
2022-03-01 19:55:26.888 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'switch20_Finestra' received command UP
2022-03-01 19:55:26.901 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'switch20_Finestra' predicted to become UP
2022-03-01 19:55:26.908 [INFO ] [openhab.event.ItemStateEvent ] - Item 'switch20_Finestra' updated to UP
2022-03-01 19:55:26.917 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'switch20_Finestra' changed from 100 to 0
2022-03-01 19:55:27.020 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Transformation '{"POWER1":"ON"}' returned null on 'REGEX', discarding message
2022-03-01 19:55:27.038 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Transformation '{"ShutterPosition1":0}' returned null on 'REGEX', discarding message
2022-03-01 19:55:27.055 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Transformation '{"Shutter1":{"Position":100,"Direction":1,"Target":0}}' returned null on 'REGEX', discarding message
2022-03-01 19:55:27.413 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Transformation '{"Shutter1":{"Position":96,"Direction":1,"Target":0}}' returned null on 'REGEX', discarding message
2022-03-01 19:55:28.404 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Transformation '{"Shutter1":{"Position":81,"Direction":1,"Target":0}}' returned null on 'REGEX', discarding message
2022-03-01 19:55:29.388 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Transformation '{"Shutter1":{"Position":67,"Direction":1,"Target":0}}' returned null on 'REGEX', discarding message
2022-03-01 19:55:30.392 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Transformation '{"Shutter1":{"Position":53,"Direction":1,"Target":0}}' returned null on 'REGEX', discarding message
2022-03-01 19:55:31.397 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Transformation '{"Shutter1":{"Position":39,"Direction":1,"Target":0}}' returned null on 'REGEX', discarding message
2022-03-01 19:55:32.398 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Transformation '{"Shutter1":{"Position":24,"Direction":1,"Target":0}}' returned null on 'REGEX', discarding message
2022-03-01 19:55:33.392 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Transformation '{"Shutter1":{"Position":10,"Direction":1,"Target":0}}' returned null on 'REGEX', discarding message
2022-03-01 19:55:34.086 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Transformation '{"POWER1":"OFF"}' returned null on 'REGEX', discarding message
2022-03-01 19:55:34.623 [DEBUG] [ab.binding.mqtt.generic.ChannelState] - Transformation '{"Shutter1":{"Position":0,"Direction":0,"Target":0}}' returned null on 'REGEX', discarding message
----------------------------------
mosquitto_sub -d -t switch20/stat/RESULT
Client (null) sending CONNECT
Client (null) received CONNACK (0)
Client (null) sending SUBSCRIBE (Mid: 1, Topic: switch20/stat/RESULT, QoS: 0, Options: 0x00)
Client (null) received SUBACK
Subscribed (mid: 1): 0
Client (null) received PUBLISH (d0, q0, r0, m0, 'switch20/stat/RESULT', ... (15 bytes))
{"POWER1":"ON"}
Client (null) received PUBLISH (d0, q0, r0, m0, 'switch20/stat/RESULT', ... (22 bytes))
{"ShutterPosition1":0}
Client (null) received PUBLISH (d0, q0, r0, m0, 'switch20/stat/RESULT', ... (54 bytes))
{"Shutter1":{"Position":100,"Direction":1,"Target":0}}
Client (null) received PUBLISH (d0, q0, r0, m0, 'switch20/stat/RESULT', ... (53 bytes))
{"Shutter1":{"Position":96,"Direction":1,"Target":0}}
Client (null) received PUBLISH (d0, q0, r0, m0, 'switch20/stat/RESULT', ... (53 bytes))
{"Shutter1":{"Position":81,"Direction":1,"Target":0}}
Client (null) received PUBLISH (d0, q0, r0, m0, 'switch20/stat/RESULT', ... (53 bytes))
{"Shutter1":{"Position":67,"Direction":1,"Target":0}}
Client (null) received PUBLISH (d0, q0, r0, m0, 'switch20/stat/RESULT', ... (53 bytes))
{"Shutter1":{"Position":53,"Direction":1,"Target":0}}
Client (null) received PUBLISH (d0, q0, r0, m0, 'switch20/stat/RESULT', ... (53 bytes))
{"Shutter1":{"Position":39,"Direction":1,"Target":0}}
Client (null) received PUBLISH (d0, q0, r0, m0, 'switch20/stat/RESULT', ... (53 bytes))
{"Shutter1":{"Position":24,"Direction":1,"Target":0}}
Client (null) received PUBLISH (d0, q0, r0, m0, 'switch20/stat/RESULT', ... (53 bytes))
{"Shutter1":{"Position":10,"Direction":1,"Target":0}}
Client (null) received PUBLISH (d0, q0, r0, m0, 'switch20/stat/RESULT', ... (16 bytes))
{"POWER1":"OFF"}
Client (null) received PUBLISH (d0, q0, r0, m0, 'switch20/stat/RESULT', ... (52 bytes))
{"Shutter1":{"Position":0,"Direction":0,"Target":0}}
It seems that the same MQTT messages on the topic are decoded for switch19 but not for switch20.
Maybe I’m not seeing something obvious …