Skip to main content

LightGet

Properties

NameTypeRequiredDescription
type_strType of the supported resources
id_strUnique identifier representing a specific resource instance
id_v1strClip v1 resource identifier
ownerResourceIdentifier
metadataLightGetMetadataDeprecated, use metadata on device level
onOn
dimmingLightGetDimming
color_temperatureLightGetColorTemperature
colorLightGetColor
dynamicsLightGetDynamics
alertdictTODO
signalingLightGetSignalingFeature containing signaling properties.
modeLightGetMode
gradientLightGetGradient
effectsLightGetEffectsBasic feature containing effect properties.
timed_effectsLightGetTimedEffectsBasic feature containing timed effect properties.
powerupLightGetPowerupFeature containing properties to configure powerup behaviour of a lightsource.

LightGetMetadata

Deprecated, use metadata on device level

Properties

NameTypeRequiredDescription
namestrHuman readable name of a resource
archetypeLightArchetypeLight archetype
fixed_miredintA fixed mired value of the white lamp

LightGetDimming

Properties

NameTypeRequiredDescription
brightnessfloatBrightness percentage. value cannot be 0, writing 0 changes it to lowest possible brightness
min_dim_levelfloatPercentage of the maximum lumen the device outputs on minimum brightness

LightGetColorTemperature

Properties

NameTypeRequiredDescription
mirekintcolor temperature in mirek or null when the light color is not in the ct spectrum
mirek_validboolIndication whether the value presented in mirek is valid
mirek_schemaMirekSchema

MirekSchema

Properties

NameTypeRequiredDescription
mirek_minimumintminimum color temperature this light supports
mirek_maximumintmaximum color temperature this light supports

LightGetColor

Properties

NameTypeRequiredDescription
xyGamutPositionCIE XY gamut position
gamutGamutColor gamut of color bulb. Some bulbs do not properly return the Gamut information. In this case this is not present.
gamut_typeGamutTypeThe gammut types supported by hue – A Gamut of early Philips color-only products – B Limited gamut of first Hue color products – C Richer color gamut of Hue white and color ambiance products – other Color gamut of non-hue products with non-hue gamuts resp w/o gamut

Gamut

Color gamut of color bulb. Some bulbs do not properly return the Gamut information. In this case this is not present.

Properties

NameTypeRequiredDescription
redGamutPositionCIE XY gamut position
greenGamutPositionCIE XY gamut position
blueGamutPositionCIE XY gamut position

GamutType

The gammut types supported by hue – A Gamut of early Philips color-only products – B Limited gamut of first Hue color products – C Richer color gamut of Hue white and color ambiance products – other Color gamut of non-hue products with non-hue gamuts resp w/o gamut

Properties

NameTypeRequiredDescription
Astr"A"
Bstr"B"
Cstr"C"
OTHERstr"other"

LightGetDynamics

Properties

NameTypeRequiredDescription
statusSupportedDynamicStatusCurrent status of the lamp with dynamics.
status_valuesList[SupportedDynamicStatus]Statuses in which a lamp could be when playing dynamics.
speedfloatspeed of dynamic palette or effect. The speed is valid for the dynamic palette if the status is dynamic_palette or for the corresponding effect listed in status. In case of status none, the speed is not valid
speed_validboolIndicates whether the value presented in speed is valid

LightGetSignaling

Feature containing signaling properties.

Properties

NameTypeRequiredDescription
signal_valuesList[SupportedSignals]
estimated_endintTimestamp indicating when the active signal is expected to end. Value is not set if there is no_signal
colorsList[Color]Colors that were provided for the active effect.

LightGetMode

Properties

NameTypeRequiredDescription
NORMALstr"normal"
STREAMINGstr"streaming"

LightGetGradient

Properties

NameTypeRequiredDescription
pointsList[Color]Collection of gradients points. For control of the gradient points through a PUT a minimum of 2 points need to be provided.
modeSupportedGradientModeMode in which the points are currently being deployed. If not provided during PUT/POST it will be defaulted to interpolated_palette
points_capableintNumber of color points that gradient lamp is capable of showing with gradience.
mode_valuesList[SupportedGradientMode]Modes a gradient device can deploy the gradient palette of colors
pixel_countintNumber of pixels in the device

LightGetEffects

Basic feature containing effect properties.

Properties

NameTypeRequiredDescription
statusSupportedEffects
status_valuesList[SupportedEffects]Possible status values in which a light could be when playing an effect.
effectSupportedEffects
effect_valuesList[SupportedEffects]Possible status values in which a light could be when playing an effect.

LightGetTimedEffects

Basic feature containing timed effect properties.

Properties

NameTypeRequiredDescription
effectSupportedTimedEffectsCurrent status values the light is in regarding timed effects
effect_valuesList[SupportedTimedEffects]Possible timed effect values you can set in a light
statusSupportedTimedEffectsCurrent status values the light is in regarding timed effects
status_valuesList[SupportedTimedEffects]Possible status values in which a light could be when playing a timed effect.
durationintDuration is mandatory when timed effect is set except for no_effect. Resolution decreases for a larger duration. e.g Effects with duration smaller than a minute will be rounded to a resolution of 1s, while effects with duration larger than an hour will be arounded up to a resolution of 300s. Duration has a max of 21600000 ms.

LightGetPowerup

Feature containing properties to configure powerup behaviour of a lightsource.

Properties

NameTypeRequiredDescription
presetPowerupPreset1When setting the custom preset the additional properties can be set. For all other presets, no other properties can be included.
configuredboolIndicates if the shown values have been configured in the lightsource.
onPowerupOn1
dimmingPowerupDimming1

PowerupPreset_1

When setting the custom preset the additional properties can be set. For all other presets, no other properties can be included.

Properties

NameTypeRequiredDescription
SAFETYstr"safety"
POWERFAILstr"powerfail"
LAST_ON_STATEstr"last_on_state"
CUSTOMstr"custom"

PowerupOn_1

Properties

NameTypeRequiredDescription
modeOnMode1State to activate after powerup. On will use the value specified in the “on” property. When setting mode “on”, the on property must be included. Toggle will alternate between on and off on each subsequent power toggle. Previous will return to the state it was in before powering off.
onOn

OnMode_1

State to activate after powerup. On will use the value specified in the “on” property. When setting mode “on”, the on property must be included. Toggle will alternate between on and off on each subsequent power toggle. Previous will return to the state it was in before powering off.

Properties

NameTypeRequiredDescription
ONstr"on"
TOGGLEstr"toggle"
PREVIOUSstr"previous"

PowerupDimming_1

Properties

NameTypeRequiredDescription
modeDimmingMode1Dimming will set the brightness to the specified value after power up. When setting mode “dimming”, the dimming property must be included. Previous will set brightness to the state it was in before powering off.
dimmingDimming
colorDimmingColor1

DimmingMode_1

Dimming will set the brightness to the specified value after power up. When setting mode “dimming”, the dimming property must be included. Previous will set brightness to the state it was in before powering off.

Properties

NameTypeRequiredDescription
DIMMINGstr"dimming"
PREVIOUSstr"previous"

DimmingColor_1

Properties

NameTypeRequiredDescription
modeColorMode1State to activate after powerup. Availability of “color_temperature” and “color” modes depend on the capabilities of the lamp. Colortemperature will set the colortemperature to the specified value after power up. When setting color_temperature, the color_temperature property must be included Color will set the color tot he specified value after power up. When setting color mode, the color property must be included Previous will set color to the state it was in before powering off.
color_temperatureColorColorTemperature1

ColorMode_1

State to activate after powerup. Availability of “color_temperature” and “color” modes depend on the capabilities of the lamp. Colortemperature will set the colortemperature to the specified value after power up. When setting color_temperature, the color_temperature property must be included Color will set the color tot he specified value after power up. When setting color mode, the color property must be included Previous will set color to the state it was in before powering off.

Properties

NameTypeRequiredDescription
COLOR_TEMPERATUREstr"color_temperature"
COLORstr"color"
PREVIOUSstr"previous"

ColorColorTemperature_1

Properties

NameTypeRequiredDescription
mirekintcolor temperature in mirek or null when the light color is not in the ct spectrum
colorColor

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →