HABApp
HABApp copied to clipboard
Group state aggregation not supported
Current implementation doesn't support group state aggregation. For example, this group item
Group:Switch:OR(ON, OFF) StudyRoom_Light "Study Room Light" <light> (gAutoOffLight)
And calling this method
self.get_item(“StudyRoom_Light”).is_on()
Would yield a python error stating that the object doesn't have a is_on() method.
Also encountered this. Is it a habapp limitation or there's a solution I'm not seeing?
It's just not (yet) implemented and I am unsure what a good method is.
One way would be like with items that the group type has to be accessed by the get_group function.