Variables
BRIGHTNESS (Brightness)
Sets the brightness and switches "COLOR_MODE" to HSV.
Type: | Integer |
---|
Readable: | Yes |
---|
Writeable: | Yes |
---|
Minimum Value: | 0 |
---|
Maximum Value: | 100 |
---|
Default Value: | 0 |
---|
COLOR_MODE (Color mode)
The currently selected color mode. "ct" => white, "hs" => HSV, "effects" => animation.
Type: | Enumeration |
---|
Readable: | Yes |
---|
Writeable: | No |
---|
Default Value: | 0 |
---|
Values: | |
---|
COLOR_TEMPERATURE (Color temperature)
Switches "COLOR_MODE" to white ("ct"). Sets the temperature of the white light.
Type: | Integer |
---|
Readable: | Yes |
---|
Writeable: | Yes |
---|
Minimum Value: | 1200 |
---|
Maximum Value: | 6500 |
---|
Default Value: | 1200 |
---|
EFFECT (Effect)
Shows the currently selected effect or sets it.
Type: | String |
---|
Readable: | Yes |
---|
Writeable: | Yes |
---|
EFFECTS_LIST (Effect list)
Array with all installed effect names. These names can be used to set "EFFECT".
Type: | Array |
---|
Readable: | Yes |
---|
Writeable: | No |
---|
EFFECTS_RAW_JSON (Effect JSON)
You can place raw JSON effect commands here. E. g.: {"write":{"command": "add", "animName": "bla", "animType": "static", "animData": "5 15 1 255 0 0 0 1 169 1 0 255 0 0 1 121 1 0 0 255 0 1 186 1 255 0 255 0 1 221 1 255 255 0 0 1", "loop" : false}}. See http://forum.nanoleaf.me/docs/openapi for more information.
Type: | String |
---|
Readable: | No |
---|
Writeable: | Yes |
---|
HUE (Hue)
Sets the hue and switches "COLOR_MODE" to HSV.
Type: | Integer |
---|
Readable: | Yes |
---|
Writeable: | Yes |
---|
Minimum Value: | 0 |
---|
Maximum Value: | 360 |
---|
Default Value: | 0 |
---|
PANEL_LAYOUT (Panel layout)
Returns a structure with the current panel layout.
Type: | Struct |
---|
Readable: | Yes |
---|
Writeable: | No |
---|
PEER_ID (Peer ID)
The ID of the peer. This variable is only needed for compatability reasons.
Type: | Integer |
---|
Readable: | Yes |
---|
Writeable: | Yes |
---|
SATURATION (Saturation)
The saturation of the current color. Switches "COLOR_MODE" to HSV ("hs").
Type: | Integer |
---|
Readable: | Yes |
---|
Writeable: | Yes |
---|
Minimum Value: | 0 |
---|
Maximum Value: | 100 |
---|
Default Value: | 0 |
---|
STATE (State)
Switches the light on using the last settings or off.
Type: | Boolean |
---|
Readable: | Yes |
---|
Writeable: | Yes |
---|