ym88659208ym87991671
Function light_brightness | Documentation SmartMarket
Skip to main content

light_brightness

Data type: INTEGER(10,1000).

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

Purpose: determines the light intensity. It takes values from the range of 10-1,000 at an interval of 1. When describing the device model, the range and interval of values taken by the function can be changed.

Devices with this function

Examples of voice commands

— Салют, увеличь яркость лампы (Salute, increase the light intensity of the lamp)

— Салют, убавь яркость люстры на 30% (Salute, reduce the chandelier brightness by 30%)

— Салют, сделай яркость ночной подсветки на минимум (Salute, reduce the night light intensity to the minimum level)

If the user’s command indicates a percentage, the brightness (light intensity) value needs to be calculated based on the fact that 1% is equal to 10 brightness units. Thus, for example:

  • The command «Салют, убавь яркость люстры на 30%» ("Salute, reduce the chandelier brightness by 30%") must reduce the brightness by 300.
  • The command «Салют, сделай яркость люстры на 50%» ("Salute, set the chandelier brightness at 50%") must set the brightness at 500.

Function description for a device model

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

Function state description example

The example describes a device with the light intensity at 50% of the maximum level.

{
"states": [
{
"key": "light_brightness",
"value": {
"type": "INTEGER",
"integer_value": "500"
}
}
]
}
Last updated on August 26, 2022