I always take a look at the documentation before posting…
Instead of pointing someone to the documentation it would be nice to get a description for a solution. and this is not really answering the question if manipulation on channel-side is possible…
Well I think you need to elaborate your goal a bit more. Every item usually has a state and a displayState, and the displayState is e.g. the state after a transformaion or a profile has been applied.
Why exactly do you need as the item.state string in the main UI widget, you can also manipulate the displayed value in the widget itself or apply a transformation?
Sorry for that. I missed the point that you were looking for a solution on MainUI/ widget.
The solution in the linked docs was for the display on a sitemap🤷♂️
Just to circle around to the original question which I don’t think was clearly answered.
Yes you can change the value at the Channel level. But only sometimes (as @hafniumzinc tried to get across). But only if the binding supports it. Usually, only like level bindings like MQTT and HTTP support it at the Channel.
You can also apply a transform at the Link between the Channel and the Item using a Profile.
But if what you really care about is how it’s displayed, you should focus on the State Description Item metadata.
And I strongly suggest that anyone sticking to text based configs, at heart familiarize yourself with the MainUI way of configuring stuff. Many settings are self explanatory in MainUI that require carful reading if the docs to understand otherwise. You can create a config there, look at the code tab and translate that to a text config.
I already thought that this would only be possible where the binding’s configuration is able to get channels edited by the user like the mqtt binding
Funny that I completely missed the availability of the displayState option - never used it with sitemaps so this way was completely new to me …one never stops learning