This version of the API shipped with Indigo 6.0.8 - check the API Version Chart to see what version of the API is available in which Indigo versions.
getGroupList()
method to indigo.device command space to retrieve an ID list of all devices in a group. The argument can be any device ID or device instance in the group. The returned list is ordered, with the main/root device ID being first.Examples |
---|
groupList = indigo.device.getGroupList(devIdOrInstance) rootDevice = indigo.devices[groupList[0]] indigo.server.log("battery level is: " + str(rootDevice.batteryLevel)) |