I have a use case for this feature (mappings for a sitemap Text entry)
I have Switch Items controlling lights, motion triggered etc. They can also be controlled from Sitemap buttons normally.
However, the lights can also be controlled from wall switches. I have rules to detect that, and set an associated manual mode Item (one for each lighting zone). While manual mode is in effect, I disable motion control and also want to disable UI buttons for that zone. The user on the wallswitch is in charge!
So I have two lines in sitemap for each light zone, one a normal Switch with buttons, one a Text version of the same item without buttons, and select between them using visibility controlled by the manual-mode Item.
So far so good, working as wanted and displaying ON and OFF as required.
But for informative reasons, I would like to change the Text display of the light zone switch state from e.g. “ON” to “Manual mode ON”.
I can’t do that in sitemap, Text not allowed mappings.
I don’t want to do that in the Switch Item, because I want it to display normally when not in manual mode.
Cannot think of a mapping based solution here, and not only do I not want to create a dozen more dummy items and rules just to get this effect, it simply doesn’t seem like the correct approach when this is just what mappings are intended for?