For some reason, the sitemap doesnt display the correct status using:
Text item=Gate_status label="Rear Gate []" icon="garage"
When I add %s instead of [], it shows Alarm which is different to its status in the console, or OK if theres no alarm. Even adding Alarm=OPEN and OK=CLOSED in the map doesnt appear to do it
No, a Switch Item state is ON or OFF.
This is about presentation.
Why, where did you put it? You havenāt shown us.
You can define some [state presentation] in your Item definition label.
You can also define a different [state presentation] in your sitemap widget. This will override that of the Item definition.
So in your orginal post, [ ] overrides [MAP(door1.map)], resulting in no display.
In your original test attempt, [%s] overrides [MAP(door1.map)], and %s displays the default state options suggested by the binding. That seems like a nuisance to me, but I donāt know a way to get rid of the suggested options apart from making your own MAP.
Any such MAP will work off the Item raw state, not the binding suggested options.
Now we donāt know what your doing.
If you want the Item state shown with the [state presentation] in your Item definition, donāt put any [state presentation] at all in your sitemap widget.
or
put the [state presentation] (e.g.MAP) in the widget.
Glad to see you got it working. OPEN=ALARM translates OPEN to ALARM, not ALARM to OPEN so if the unit states were ALARM and OK, as per your earlier post, it still would not have worked, hence my question on what you posted.