MQTT Send Number Problem - thing sends empty message


I have a problem with MQTT. I created a generic mqtt-thing via GUI. I want to send a temperature to an MQTT-device. If I manipulate the linked Item (Dimmer), the thing ist sending an empty MQTT-message. Other Chanels for Switches or receiving temperatures are working well.

This is the code of the channel.

  - id: sollTemp
    channelTypeUID: mqtt:number
    label: Soll Temperatur
    description: ""
      commandTopic: Garten/poolsolarctrl/Temps/soll
      step: 0.5
      min: 20
      formatBeforePublish: "%.1f"
      max: 35

I hope anyone has an idea why it doesn’t work.

thank you!

I don’t think a Dimmer can be linked to a mqtt:number channel. I’m pretty sure it only works with an mqtt:dimmer Channel which will have different settings.

Note that a 0.5 step makes no sense with a Dimmer since it can only be an integer value between 0 and 100.