Is it possible to set displayState (pattern) in .items file?

hi! I’m using OH3 and want to display formatted dates on main UI.
Is the only option to do that is specifying pattern in Item Metadata → State description?


Switch itemName "itemLabel" [Point] { channel="channelName" [profile="system:hysteresis", lower="80 °C", upper="83 °C"], stateDescription=""[pattern="%s", readOnly="true"]}

2 Likes