Skip to Content
🚀 We just launched! Please star us on Github!

Light Channel

Channel Category: light

Controls lighting devices, supporting brightness, color temperature, and color adjustments.


Required Properties

PropertyData TypeRangeUnitPermissions
onBooltrue/false-RW (Read/Write)

Property Details

on

Indicates the on/off state of the light:

  • true: The light is on.
  • false: The light is off.

Optional Properties

PropertyData TypeRangeUnitPermissions
brightnessUchar0–100%RW (Read/Write)
color_redUchar0–255-RW (Read/Write)
color_greenUchar0–255-RW (Read/Write)
color_blueUchar0–255-RW (Read/Write)
color_whiteUchar0–255-RW (Read/Write)
color_temperatureUshort2,700–6,500KRW (Read/Write)
hueUshort0–360degreesRW (Read/Write)
saturationUchar0–100%RW (Read/Write)

Property Details

brightness

Represents the perceived level of brightness:

  • Expressed as a percentage (0–100%) of the maximum supported brightness.

color_red, color_green, color_blue

Define the RGB color values:

  • Must be defined together for accurate color selection.

color_white

Represents the intensity of white light in the RGB spectrum.

color_temperature

Describes the color temperature of the light:

  • Measured in Kelvin (K).
  • Range: 2,700–6,500 Kelvin.

hue

Represents the hue or shade of color:

  • Range: 0–360 degrees on the color wheel.

saturation

Indicates the color saturation:

  • Expressed as a percentage (0–100%).

[!Notes]: The color_red, color_green, and color_blue properties must be defined together to set the RGB color accurately. This channel also supports hue and saturation. Both hue and saturation must be configured together for proper operation.

Last updated on