dankr3
(Daniel K.)
July 30, 2025, 4:54pm
1
Hi guys,
I face a strange behaviour in my openHAB system regarding group items and my sitemap.
The group item is definded as follows:
Group:Switch:OR(ON,OFF) Lights "Active Lights [%d]" // e.g. ON and "2"
When I use it without the “mappings”-feature, it shows the value as expected:
Switch item=Lights
But when I use the “mappings”, it didn’t show the value anymore (here: 2)
Switch item=Lights mappings=[OFF="aus", ON="an"]
I’m currently on docker installation with the newest 5.0 version. I’m sure that it was visible in my last 4.2 version.
Do you have a similar behaviour?
Any hind what I can change or is this a bug?
How about adding
label="Active Lights [%d]"
to
Switch item=Lights mappings=[OFF="aus", ON="an"]
i. e.
Switch item=Lights label="Active Lights [%d]" mappings=[OFF="aus", ON="an"]
There seems to have been some changes with the variable label display recently, also the other way round - showing when not wanted, then requiring and empty variable tag
label="Lights []"
Lolodomo
(Lolodomo)
July 30, 2025, 5:14pm
3
I remember It changed that but it is already a long tim ago, that I w not in 5.0.
Lolodomo
(Lolodomo)
July 30, 2025, 5:17pm
4
It was changed in May 2024 and released in OH 4.2.
https://github.com/openhab/openhab-webui/pull/2579