openhab / openhab-webui

Web UIs of openHAB
Eclipse Public License 2.0
224 stars 242 forks source link

Consider sub-equipment for glance badges in model cards #749

Open lgusewski opened 3 years ago

lgusewski commented 3 years ago

The problem

I define the semantic model (with .item files) and want the best logic. Referring to the documentation a equipment can have sub-equipment. This is logic. In my example I have a Philips Hue Outdoor Motion Detector. This device / equipment have also a (Temperature)-Sensor and a Batterie.

I defined three equipment (groups) and put the items in these groups. All items (points) will shown in the location view of openHAB 3 and also in the header in the overview. I can see there the Lux-value and the Temperature-Value beside the location name.

Then i found it more logical, to nest the Equipment, so that the Batterie and the Temperature-Sensor are Sub-Equipment from the Motion Detector. This was shown perfectly in the Model View of the Administration Section of openHAB 3, but in the location view, the temperature was no longer shown beside the header (and the name of the location) and also, when you tap on the location, both values / items where no longer shown in connection with these location.

But both items/values where shown in the Device and Properties section of the UI.

Expected behavior

Nesting of Equipment should not hide the properties of Sub-Equipment from the location view.

Steps to reproduce

See above example of the Hue Outdoor Motion Detector.

Your environment

Ubuntu 20.04 LTS with openHAB 3.0.0

Browser console

No errors.

Browser network traffic

Additional information

MathiasVDA commented 2 years ago

I came across a related issue as topic starter when I started doing the semantic model of my home. I had the idea to make an equipment of all my windows. Each window has a open/closed property, an interior blind and/or exterior blind. There could be multiple windows per room so I though it would make the model easiest if I grouped the window state and the controls (blinds/shutters) per window. I also thought it would be good to have my Blinds tagged as equipment so that they show up groups in the blinds equipment card.

It seems that the popups in the overview locations cards doesn't show the subequipment at all. Here is a simple setup (made with the GUI from a fresh install): image

The resulting popup window looks like this: image

So the subequipment is missing. I also made a community forum post about this: https://community.openhab.org/t/locations-card-sub-equipment-not-showing/130694