I’m designing groups / items structure in my OpenHAB system.
Following the guide about group definition, I defined two parallel tree of groups. One from a physical view and the other one from a logical point of view.
So, for example, I created the gGroundFloor group which contains gKitchen and gLivingRoom. Then I created gSensor group which contains gTemperature group.
In this way I can get the average temperature of entire home, using the value stored in gTemperature group.
But, how can I get the average temperature of the ground floor? I have to define a group called gGroundFloorTemperature or there is a more elegant way?
Creating a ground floor group IS the elegant way I’m afraid. This is why I don’t personally see the benefit of creating such a rigorous hierarchy of Groups for my whole home automation. Instead I create these Groups as I need them. As you can see, you number of needed groups is going to explode and you may actually user less than half of them.
I do support the dual hierarchies though. Just don’t go too far out of your way implementing everything until you have a need to.