The chat responses are generated using Generative AI technology for intuitive search and may not be entirely accurate. They are not intended as professional advice. For full details, including our use rights, privacy practices and potential export control restrictions, please refer to our Generative AI Service Terms of Use and Generative AI Service Privacy Information. As this is a test version, please let us know if something irritating comes up. Like you get recommended a chocolate fudge ice cream instead of an energy managing application. If that occurs, please use the feedback button in our contact form!
Skip to content
Enlighted

The Enlighted lighting solution optimizes energy savings while enhancing occupant productivity, well-being, and security.

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

NameDescription
Request
em_ip_address_or_hostnameThe Enlighted Manage (EM) IP address or hostname
fixture_idThe 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_idEach light profile is assigned to a unique group identifier. The profile group identifier is returned in the Get Sensor Profiles API.
Response
status0 – Profile assigned successfully to the sensor
-1 – Profile not assigned to the sensor
MsgError 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"
}