Groups used for lighting control are called switch groups. This API returns all switch groups on a floor in the building. The response includes the Switch Group ID and Switch name for each switch group. The Switch name is used as the primary identifier in other API calls.
|em_ip_address or hostname||The Enlighted Manage (EM) IP address or hostname.|
|facility||The facility type can be either a floor or a company.|
|fid||Company or Floor ID. By default, the Company ID is always ‘1’. For Floor ID, use the Floor ID returned in the Get All Floors API or in EM, select Facility > Floor > in the left panel, and click the Settings tab to obtain the Floor ID.|
|id||Switch Group identifier in EM|
|name**||Switch name (**used as the primary identifier in other API calls)|
Using the Floor ID returned in the Get All Floors API, request for the list of all switch groups on the floor. The Switch Group ID and Switch name for all switch groups on Floor 1 is returned. For example, if Floor 1 has two switch groups, the Switch Group ID and Switch name are returned as shown below. The Switch name is used as the primary identifier in other API calls.