Hi,
How to transform and display an item state on pages?
I want to display the presence state as “Present/Not Present” instead of “ON/OFF”.
In Openhab 2 I would do the following:
Item:
Switch Presence_Ralf "Ralf [MAP(presence.map):%s]" { channel="XXX:online" }
Sitemap:
Text item=Presence_Ralf
Over here in Chapter 8 “Expressions” are mentioned. How could expressions be used for this usecase?
I’m also interested how to achieve the same in the default auto-generated page “Home Page”. I do not see any option to change the item label. Is there an option to make this configuration on item level?