ym88659208ym87991671
Function light_colour | Documentation SmartMarket
Skip to main content

light_colour

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: 0–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

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

Function state description example

The example describes a device emitting blue-colored light.

{
"states": [
{
"key": "light_colour",
"value": {
"type": "COLOUR",
"colour_value": { "h": 240, "s": 100, "v": 100 }
}
}
]
}
Last updated on August 26, 2022