OH5.0.1 UI: light badge no longer visible in location card when equipment contains multiple light points

Since I upgraded to OH5.0 my location cards no longer show the light badge when lights are turned on. I asume this is related to the changes in the semantic tagging, but can not figure out what I am doing wrong.

Semantic equipment: LightSource→Lightbulb

Contains a switch item

Semantic Point: Control→Switch
Semantic Property: Light

According to the info found in Semantic Model | openHAB , this should be correct.

Any help would be gratefull.

Found it.

Equipment can only contain one light.

When multiple lights are defined, the badge wont work.
See openhab-webui/bundles/org.openhab.ui/web/src/components/cards/glance/location/status-badge.vue at main · openhab/openhab-webui · GitHub

This is a wrong assumption to my opinion, since equiment could have multiple light points which can be controlled seperatly.

Please see the discussion here..

https://github.com/openhab/openhab-webui/issues/3325

To be more specific if an Equipment contains (say) an Item with “Switch+Light” and another Item with “Control+Brighness” then the framework doesn’t know if that is one entry on the Location card or two. So it takes whichever it considers to be the first one. The solution for your case is to put the two lights in different equipments.

I see.

Previously, I used Property_Light on all items (switch, dimmer, color) which I wanted the “lights” badge to notice.
If a specific thing had multiple channels (example: color + brightness), I ensured that only one item had the Property_Light tag, so the badge would not double count.

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.