When a switch is created, a virtual switch is added to the floor plan, which controls the light levels of the selected fixtures. Each set of light level settings for fixtures is called a scene. A maximum of six scenes can be created. Each fixture in a scene can have different light levels to achieve the desired effect.
The API returns the scene light levels for the group of fixtures controlled by the scene.
Request
GET https://{em_ip_address_or_hostname}/ems/api/org/scene/v1/list/getSceneLevels/{sceneid}
Parameters
Request | |
em_ip_address or hostname | The Enlighted Manage (EM) IP address or hostname. |
sceneid | Scene identifier. Returned in Get Switch Scenes API. |
Response | |
id | For internal use. |
switchid | Switch identifier. |
sceneid | Scene identifier. Up to a maximum of six scenes can be defined. |
fixtureid | Fixture identifier of the fixture for which the scene applies. |
lightlevel | Returns the light level (0-100%) for each fixture for the scene. 0% - Light level is set to off. 100% - Light level is set to full-on. |
scenecolor | Current color temperature value in Kelvin degrees |
Sample Code
Using the Scene ID '157' returned by the Get Switch Scenes API, request the scene light levels for the fixtures. The API returns the light levels for the scene controlled by the scene with ID ‘157’.
Get https://192.80.3.2/ems/api/org/scene/v1/list/getSceneLevels/157 |
Comments
Article is closed for comments.