ym88659208ym87991671
Function light_colour | Documentation for developers

light_colour

Last updated on June 17, 2024

Data type: COLOUR.

Usage method: stores the device state and can change it.

Purpose: manages the lighting colour. Colours are transmitted according to the HSV colour model. Allowed value:

  • h: 0–360
  • s: 0–1000
  • v: 100–1000

Devices with this function

Examples of voice commands

— Салют, поменяй цвет лампы на синий (Salute, make the lamp light blue)

— Салют, измени цвет ночной подсветки на фиолетовый (Salute, make the night light violet)

Function description for a device model

The function must be added to the model descriptions of all devices that support it.

"features": [
"light_colour",
// ...
]

Function state description example

The example describes a device glowing red with maximum brightness and saturation.

{
"states": [
{
"key": "light_colour",
"value": {
"type": "COLOUR",
"colour_value": { "h": 360, "s": 1000, "v": 1000 }
}
}
]
}
Sber process cookies only to personalize services according to Cookies Usage Policy. You can prevent the processing of cookies in your browser settings.