Assign Profile¶
Assigns a light profile to the fixture. The fixture will operate with the new behavior.
Request¶
POST https://{em_ip_address_or_hostname}/ems/api/org/fixture/v1/op/assignProfile/{fixture_id}/{group_id}
Parameters¶
Name | Description |
---|---|
Request | |
em_ip_address_or_hostname | The Enlighted Manage (EM) IP address or hostname |
fixture_id | The fixture or sensor identifier. Use the Fixture ID returned in 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. |
group_id | Each light profile is assigned to a unique group identifier. The profile group identifier is returned in the Get Sensor Profiles API. |
Response | |
status | 0 – Profile assigned successfully to the sensor |
-1 – Profile not assigned to the sensor | |
Msg | Error message description. For example, “either fixture or group does not exist. Please provide valid inputs”. |
Sample Request¶
The sample code shows how to assign a profile to a fixture. Assign a new profile to the fixture using the Fixture ID returned by the Get Sensor Details by Floor and Profile Group ID returned by the Get Sensor Profiles.
For example, apply the light profile Open Office Max 70 with GroupId ‘27’ returned in the Get Sensor Profiles to the fixture with ID ‘28’.
The response indicates that the profile has been assigned successfully to the fixture.
POST https://192.80.3.2/ems/api/org/fixture/v1/op/assignProfile/28/27
Sample Response¶
{
"status": "0"
}