In my Indigo 2022.1 setup I've configured for each room a virtual device containing all of the physical devices in that room. Each of my rooms has multiple devices. I'm trying to figure out if those virtual devices might expose a property telling me how many of the physical devices in that group are on. I'm looking for an elegant way to answer the question *how many devices are on in the ______* so I can potentially trigger actions based on that number.
Failing that, I wonder if *folders* might help me get at this elusive number. Maybe I could make a folder for each *room*, put all the devices into their corresponding folder, and run some kind of nested loops to iterate first through the collection of folders, then through the devices within that folder?
I now somebody has an elegant idea for this !