Hi,
I usually created my items in config files. Now for a new instance at work I created some items via GUI.
The item is a Power item from an energy meter and is represented in W. I would like it to be displayed in kW.
In my config file I would add “%.3f kW” I believe. I tried to edit my item in GUI and entered %.3f in the partern field of state description (chatgpt suggested this ) but I can’t seem to get it working. Is there an easy way of doing this? I don’t want to write a rule for it, seems a bit cumbersome. If I read the docs it’s mostly about the configuration via .items files. But since I created these items in the GUI I wanted to see if there’s an easy way of changing the format, any advice?
So, now that you have that working I’ll throw in a little wrinkle.
The UIs will show kW but the Item’s state will still be W and therefore the charts will still show the value as W and in your rules you’ll get the state as W.
If you really only want kW and you want kW everywhere, add the unit metadata to the Item and set that to “kW”. Then the value stored by the Item will always be in kW. If a rule or the binding sends the Item a value in W, it will be automatically converted to kW before updating the Item.