Group Switch Question

Hi There!

I’m experimenting with presence detection, and created group switch that doesn’t turn until all the phones have disconnected from wifi. I noticed that by adding [%d] to the label, it displays not only the on/off status, but also the number of devices that are currently connected. I’m wondering if anyone can tell me if it’s possible to access that number in a rule?

Group:Switch:OR(ON, OFF) gPhones "gphones [%d]" <switch> (gSystem)


I didn’t know that about the %d.

You can get the number if members of the group with


You can get the total number of switches that are on with

MyGroup.members.filter[s| s.state == ON].size

Perfect! Thanks!