Hi all,
I’m still in the process of migrating my OH2 instance to OH3. Along with the semantics, I’ve restructured the item groups accordingly.
In OH2, my groups were mostly used to display aggregated values (e.g. Average, Sum, And/Or) in the UI. In OH3, all items are already in the semantic groups, meaning all items, especially e.g. all temperature sensors, are somewhere in the gHome group (or subgroups of gHome).
I was thus wondering if it possible to show e.g. the average of all temperature-items in a group with a widget in MainUI?
As an ideal solution, I’d image a generic widget:
Input parameters:
- a group item
- an aggregation type (AVG/SUM/AND/OR/…)
- a tag/item type to filter(Temperature/Humidity/Pressure/…)
Output:
- a single value dynamically calculated based on the parameters
Of course, I could add additional groups for that again, but it seems so redundant as all location/metadata information is already available.
I’m not afraid of writing my own widget, but couldn’t find any information about doing aggregation on groups in widgets so far. Similar functionality is already available in the predefined location-widgets, where e.g. the average temperature of all sensors is shown, so it seems to be possible in general.
Is there anybody who could help me implementing this in a custom widget?
Thanks in advance,
Chris