After a reboot I witness the same behaviour:
- two items with identical configuration
- one is configured using and items-file, one added via UI
- MQTT-Thing and Channels are added via UI
file-item:
Number StatusWaschmaschine "Betriebszustand der Waschmaschine" <washingmachine> { stateDescription=" "[ pattern="%d", options="3.0=fertig,2.0=wäscht,1.0=Standby,0.0=Aus,3=fertig,2=wäscht,1=Standby,0=Aus,NULL=keine Daten,-=keine Daten" ] }
UI-item:
value: " "
config:
options: 3.0=fertig,2.0=wäscht,1.0=Standby,0.0=Aus,3=fertig,2=wäscht,1=Standby,0=Aus,NULL=keine Daten,-=keine Daten
pattern: "%d"
MQTT-Thing/Channels configuration:
label: MQTT Waschmaschine
thingTypeUID: mqtt:topic
configuration:
payloadNotAvailable: Offline
payloadAvailable: On
bridgeUID: mqtt:broker:synology
channels:
- id: Betriebsart
channelTypeUID: mqtt:number
label: Betriebsart
description: Betriebsart Waschmaschine
configuration:
commandTopic: pl12/waschmaschine/betriebsart
postCommand: true
retained: true
qos: 2
- id: TestStatusWaMa
channelTypeUID: mqtt:number
label: Test Status WaMa
description: ""
configuration:
commandTopic: pl12/waschmaschine/betriebsart
postCommand: true
retained: true
qos: 2
If I link the “TestNewItem” item to the “TestStatusWaMa”-channel via “follow”, I get the MQTT-state changes:
2022-07-22 15:11:11.870 [DEBUG] [qtt.generic.AbstractMQTTThingHandler] - Successfully published value 1 to topic pl12/waschmaschine/betriebsart
2022-07-22 15:11:11.831 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'TestNewItem' received command 1
2022-07-22 15:11:11.844 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'TestNewItem' predicted to become 1
2022-07-22 15:11:11.855 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'TestNewItem' changed from 2 to 1
If I link the “StatusWaschmaschine” item to the “Betriebsart”-channel via “follow”, I don’t get anything.
2022-07-22 15:10:30.316 [TRACE] [.MqttChannelStateDescriptionProvider] - Providing state description for channel mqtt:topic:synology:Spuelmaschine:Power
2022-07-22 15:10:31.993 [INFO ] [openhab.event.ItemCommandEvent ] - Item 'StatusWaschmaschine' received command 1
2022-07-22 15:10:31.997 [INFO ] [penhab.event.ItemStatePredictedEvent] - Item 'StatusWaschmaschine' predicted to become 1
2022-07-22 15:10:32.001 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'StatusWaschmaschine' changed from 0 to 1
What do I miss?