Way to many decimal places in UI for tasmota color temp items

  • Platform information:
    • Hardware: rpi 3 b

    • OS: Openhabian

    • openHAB version: 2.5.5

  • Issue of the topic: The Sliders for color temperature items have way too many decimal places in paper/basic ui.

Items were added through paper UI as a generic Mqtt thing. The channels min/max was set to 153/500 in order to work with the tasmota color temperature commands.

There is probably a simple solution but I’m not seeing it and I couldn’t find it in the forum. Is there a way to tramsform it on the sitemap?

Sitemap: Slider item=SmartBulb2Office_ColourTemperature icon=“light” label=“CT”
Thanks for reading!

Try the following:

Slider item=SmartBulb2Office_ColourTemperature icon="light" label="CT [%.1f]"

or if it’s a percentage:

Slider item=SmartBulb2Office_ColourTemperature icon="light" label="CT [%d %%]"

That’s it!

Thanks!