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.

Apply Scene¶

Apply a scene to a group of fixtures controlled by a Switch. Each set of light level settings for fixtures is called a scene. For example, in a conference room, default scenes include

  • Scene 1: Lights off (All Off) when a projector is used.
  • Scene 2: Lights on (All On) during a meeting.

Execute the Get Switch Scenes API to get the Scene ID number for the scene you want to apply.

Request¶

POST https://{em_ip_address_or_hostname}/ems/api/org/switch/v1/op/applyScene/{switch_id}/{scene_id}

Parameters¶

NameDescription
Request
em_ip_address_or_hostnameManage’s IP address or hostname
switch_idSwitch identifier (returned in Get Switch Scenes API).
scene_idScene identifier (returned in Get Switch Scenes API).
Response
idScene identifier
status0 – Success; Other than ‘0’– Failure
Failure codes:
1 – Switch not available
2 – Switch group not available
3 – Fixtures and plugloads not available in the switch group
4 – List of associated fixtures and plugloads in the switch group empty
-1 – Failure condition

Sample Request¶

Retrieve the Switch ID and Scene ID (returned in Get Switch Scenes API). Use the Scene ID number for the scene you want to apply. For example, apply the scene 'All Off' with Scene ID ‘158’ associated with Switch with ID '7'. The response ‘0’ indicates that the 'All Off' scene was applied to the switch successfully.

POST https://192.80.3.2/ems/api/org/switch/v1/op/applyScene/1/158

Sample Response¶

{
  "status": "0"
}