HABApp icon indicating copy to clipboard operation
HABApp copied to clipboard

Group state aggregation not supported

Open goodfore opened this issue 6 years ago • 2 comments

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.

goodfore avatar Aug 30 '19 07:08 goodfore

Also encountered this. Is it a habapp limitation or there's a solution I'm not seeing?

dafzor avatar Sep 05 '20 00:09 dafzor

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.

spacemanspiff2007 avatar Sep 10 '20 05:09 spacemanspiff2007