hello to all!
after some days of tries with different solutions reported on the forum, i’ve decided to write here because i can’t understand what’s happening.
i have an item created in UI with its energy consumption value calculated from a rule.
i’ve set metadata/state description/pattern as:
%.3f kWh
to show only 3 decimal digits, and enabled “Readonly” button.
the result is this one:
i just would like to see the value for this item cut with 3 or 4 decimals, because when i see the UI from mobile, this number takes 2 lines
the strange thing is, that another item based on month calculation instead of the day, when i set the pattern, seems to work (but ONLY in items menu view and NOT in UI).
What are you using to display the state? item.displayState should show the formatted value while item.state should show the full value as I understand it.