Skip to content

Recall the Scene Color

Manage v4.4 and above, and Sensor Firmware version v5.13.x or higher supports this API.

This API recalls the lighting scene color for Tunable White fixtures before the lights went off. The lights will return with the last scene color temperature instead of the maximum color temperature.

Each set of light level and color intensity settings for a fixture is called a Scene. When fixtures are configured for Tunable White, the color temperature describes how warm (yellow or orange) or cool (white or blue) the light appears.

When the API parameter, onOffStickyColor, is set to 'True', the API configures the lights to return with the last scene color temperature before the lights went off.

For example, during a presentation, lights in a conference room are configured for 4000k color temperature and to dim to 2000k after 15 minutes. If, after the presentation, the user turns the lights off and on again with the Enlighted Room Control (ERC) switch, the lights will return with the scene color temperature of 2000k instead of the maximum 4000k color temperature when onOffStickyColor is 'True.'

When the ovrStickyColor is set to 'True', the API configures the lights to return with the last scene color temperature after the Override period is expired. The Override period is 60 minutes for any manual adjustments to a fixture's light or color profile settings.

Refer to the Override Light Levels/Color Temporarily for a description of temporarily overriding the light profile settings.

Request

POST https://{em_ip_address_or_hostname}/ems/api/org/switch/{switch_id}/editAndApplyChanges

Parameters

Name Description
Request
em_ip_address_or_hostname Manage’s IP address or hostname
switch_id Switch Identifier. Switch Identifier. The Switch ID returned in the Get Switch Groups API
onOffStickyColor Recall the last Scene color before the fixture was switched off. Set the value to True.
ovrStickyColor Recall the last scene color after the Override color duration. Set the value to True
Response
onOffStickyColor True – Success; The fixtures will recall the last scene color when they are turned on using the ERC switch.
False – Failure; the lighting scene color is not recalled; the lights are turned to full maximum color when the lights are turned on.
ovrStickyColor True – Success; the fixtures will recall the last scene color when they are turned on using the ERC switch after the Override period.
False – Failure; the lighting scene color is not recalled; the lights are turned to full maximum color level by default when the lights are turned on.

Sample Request

To use this API call, you will need to know the Switch Group ID of the switch that controls the fixtures and the Floor ID. Use the following two API calls to find the Floor ID and the Switch Group ID.

Get All Floors - Provides the list of all floors in a building. Identify the Floor ID of the floor on which the Switch is installed.

Get Switch Groups - Using the Floor ID, obtain the Switch Group ID for the switch that controls the fixture.

 POST https://10.8.1.90/ems/api/org/switch/2/editAndApplyChanges
{
    "onOffStickyColor": true,
    "ovrStickyColor": true
}

Sample Response

{
    "id": "3",
    "name": "Sensor00c017",
    "floorid": "2",
    "campusid": "2",            
    "xaxis": "2895",
    "yaxis": "2895",       
    "modetype": "0",
    "initialsceneactivetime": "0",
    "extendsceneactivetime": "0",
    "operationmode": "0",
    "forceAutoMode": "0",
    "onOffStickyColor": "true",
    "ovrStickyColor": "true"
},

Effect of Circadian Lighting when Enabled

When you use the Configure Recall Scene Lighting Scene Color API for fixtures with the Circadian option, the Circadian option takes precedence. Therefore, it will indefinitely override the Recall Last lighting Scene API for the fixtures.

Community

Connect and Collaborate with Industrial Professionals and Join the Community!

Click to load comments