OH Items can be groupped together.
As I understand it, there are 2 main situations.
The first one is the way OH represents Things. For example, a power outlet will be represented by a Switch type Group Item with an On/Off switch, a voltage measure Item, current measure Item, power measure Item.
That kind of Groups is what OH creates when using ‘Add Items from Thing’.
The other kind of Groups is to globally manage similar Items, for example, regroupping several switch Items to switch on or off all the corridor’s lights.
OH enforces a status to the Group Items.
This seems logicall and obvious for Groups of similar Items.
But as a beginner, the first Groups I have been dealing with are Things Item Groups.
And from the beginning, I have been disturbed by the global status of the Groups. I spent ages fiddling the Aggregation values without ever resulting in a logical and reliable status.
I was naively thinking that only the Items of same type as the group were taken in account.
Today, I think that a global status for a mixed types Group has no sense the way it exists.
For a switch Group the Aggregation function has possible values ‘None’, 'All On (or Off) → Status ’ and 'One On (or Off) → Status '.
What doesit mean for a power outlet Group with an On/Off swith Item that goes ON and OFF and a Voltage Item that always show 223 V.
This is like adding apples and rabbits expecting to get a bycicle.
OH itself is not logical: when going to the Equipment tab from the Main UI and then to the Poweroutlets, one can see the status of all the Poweroutlets, and it is a pity that the status is generally wrong (Can be OFF when the PO in ON, can be UNDEF…).
Sometimes, not being able to have a reliable status of the group, I had to create additionnal Groups for the Items I needed.
But then, another problem arises: The OH semantic model doesn’t allow an Item to be defined in more than ONE Group.
There are several people who reported the same difficulties and misunderstanding as what I describe.
All is related to the Group status, and thus the Aggregation function.
So, is there a possibility to improve the Aggration function ?
- Add the option to only consider the children Items of the same type as the Group.
For example, for switch Items Groups only consider switch children. - At least add the option to have NO (not None, NO) Aggregation function so that the Group status can be controlled by rules.
This is not possible today, because for Groups OH systematically enforces the Group status from the children status.
Thank you for you comments.
Regards.


