Yeah - just check my whole config and I don’t have a single Text widget using mappings - so I guess it is either a bug or an omission. The same technique of using a virtual String item which you update via a rule would work (but is far less elegant of course!).
Yeah mappings are only sor Switch or Selection items.
Are you expecting people/users to want to press the switch mapping but not want them to actually change anything?
If so, you could use a proxy switch item and a rule that updates the proxy switch state (and thus the mapping), but doesn’t do anything when the proxy item state is changed via the sitemap proxy switch item.
I’m not expecting users to press the switch at all - it’s just there for display purposes. The netatmo binding uses switch type to report presence, not to set presence. I would usually use a number type for something like that.
I will try a proxy item with a rule - all I need is to show different words “Home” and “Away” instead of “ON” and “OFF”…
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?
Hello Guys,
I have a simple problem which I want to solve with as little code as possible.
Problem: my KNX switch item is actually not a switch but a logical status.
Doing this:
So I dont want and need the actual switch button but only the text and the icon. The icon change itself is working out of the box. I want to avoid rules if possible to achieve this.
You will need to replace the Group element with the individual items. Putting them in a Block will give the same visual appearance as a Group element, and using Text elements should give the effect you want for the items.
Text label="Rauchmelder" {
Text item=OG_Eltern_Batterie
Text item=OG_Tim_Batterie
Text item=Rauchmelder_OG_Tim_Alarm
}
Hi @Udo_Hartmann, maybe you can solve my problem: I want the text displayed to depend on the sitemap (I use one sitemap per language I support). For this, I would really have liked mappings for Text as they reside in the sitemap and I could have simply sent an integer… Any clever trick? I could use a selection but that looks stupid as the item is read-only…