The API returns the existing and applicable profiles that can be assigned to the sensor. The list of applicable profiles displayed is derived from the profile template as the existing profile. The profile group ID returned is used as the primary identifier in other API calls.
Request
GET https:/{em_ip_address_or_hostname}/ems/api/org/fixture/v1/getFixtureApplicableProfiles/{fixture_id}
Parameters
Request | |
em_ip_address or hostname | The Enlighted Manage (EM) IP address or hostname |
fixture_id | Fixture or sensor identifier. Use the Fixture ID returned by the Get Sensor Details by Floor API or in EM, select Facility > Floor in the left panel, Floor Plan tab, and double-click the fixture icon in the floor plan to obtain the Fixture ID. |
Response | |
id | The fixture or sensor identifier |
name | Sensor name. For example, Sensorxxxxxx |
currentProfile | Displays the name of the existing profile assigned to the sensor. |
groupId** | Profile group identifier. The ID of the profile associated with the fixture. (**used as the primary identifier in other API calls) |
applicableProfiles | Lists profiles derived from the same profile template as the current profile. |
Sample Code
Using the Fixture ID returned by the Get Sensor Details by Floor API, request the profile name assigned to the sensor. As shown in the response below, Open Office Max 35 is the profile assigned to fixture with ID ‘28’. In addition to the profile assigned to the fixture, the API also returns the list of applicable profiles and the corresponding profile Group ID derived from Open Office Max 35. The Group ID is used as the primary identifier in other API calls.
Get https:/192.80.3.2/ems/api/org/fixture/v1/getFixtureApplicableProfiles/28 |
Comments
Article is closed for comments.