One of the strengths of openHAB3’s new WebUI is the automatic generation of UI elements like the cards for locations, equipment etc.
Like many others I started over with semantic modeling my stuff to benefit from the automatic generation of UI parts.
The Problem
Unfortunately, if some equipment in a certain location has lots of points, the location card gets cluttered by it. This leads to very long list of points which damages the clarity of that card.
Yannick said, that he is aware of that and is considering some improvement on that maybe for 3.1:
In the meantime I found a way that suits my needs to limit the list of points to only the most relevant. The less important points will be revealed only after a details switch has switched to ON
. This keeps the less important point still accessible via the model cards after enabling the details view (instead of simply removing the less relevant items from the model completely).
Interim solution
To keep the clarity of a model card, I’ve introduced a dummy point (switch item) per equipment. The visibility
of the less important points will be switched on/off
by that item.
Example
This is the wall charger equipment in my garage:
As you see, there is a switch item with label Details
added to the equipment Tesla Wallcharger
. This item has no channel linked to it, just the expire metadata
set which switches the item back to OFF
after two minutes after switched to ON
.
All less relevant points get a Default List Item Widget
assigned to have the option to configure their visibility ON
and OFF
:
With this applied, we get a limited list of points when opening the model card for the location:
… and the long list after enabling Details
:
I’m quite sure, Yannick will come with a much sleeker solution once he tackled the equipment rendering again.
But for now, I can live with it