I am running OpenHAB2 on Raspbian.
I have a thing which prints “0” or “1” (through MQTT) for it’s state. No write commands possible (read-only state).
I would like to see this on my sitemap with the “” icon showing in green if it is 1 and red if it 0 (~off).
If I configure my sitemap entry as switch this works really fine. Exept if offers to change the value (which will not have any effect because it is r/o). It would be perfect to have a switch configured which does not allow to change values.
How can I get to this?