Missing "value" in sitemap with active "mappings"

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

image

But when I use the “mappings”, it didn’t show the value anymore (here: 2)

Switch item=Lights mappings=[OFF="aus", ON="an"]

image

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 []"

I remember It changed that but it is already a long tim ago, that I w not in 5.0.

It was changed in May 2024 and released in OH 4.2.

https://github.com/openhab/openhab-webui/pull/2579