ym88659208ym87991671
Function open_percentage | Documentation for developers
Skip to main content

open_percentage

Last updated on August 26, 2022

Data type: INTEGER(0, 100).

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

Purpose: manages the device's opening It takes values from the range of 0-100% at an interval of 5%. 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

— Салют, распахни ворота на 90% (Salute, open the gate at 90%)

— Салют, раздвинь шторы наполовину (Salute, open the half of the curtains)

— Салют, опусти рулонные шторы на две трети (Salute, close roller blinds at two thirds)

Function description for a device model

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

Function state description example

In this example, the device is opened at 30%.

{
"states": [
{
"key": "open_percentage",
"value": {
"type": "INTEGER",
"integer_value": "30"
}
}
]
}