Issue with MQTT-settings after upgrading from OH5.0.3 to 5.10
All,
I have a lot of power switches running via MQTT using the internal MQTT-broker.
Until before the upgrade, the (manually created channels) all had this setting:
version: 1
things:
mqtt:topic:Avatar-04-Tischlampe:
bridge: mqtt:broker:RaspiMosquitto
label: Avatar-04
location: Schlafzimmer
channels:
Avatar-04-switch:
type: switch
label: Avatar-04-switch
config:
stateTopic: stat/avatar-04/RESULT
commandTopic: cmnd/avatar-04/POWER
transformationPattern:
- JSONPATH:$.POWER
qos: 1
retained: true
postCommand: true
"on": "on"
"off": "off"your code goes here
After upgrading to 5.1, all switches started repeatedly switching on/off once triggered an could only be stopped by removing the power. The next command started the behaviour again.
Aftter much trial and error, the issue could be solved by changing this setting to:
postCommand: false
There seems to have been an undocumented breaking change in the 5.1 release?