open_set
Data type: ENUM.
Usage method: does not store the device state but can change it.
Purpose: manages the device's opening:
open
– open.close
– close.stop
– stop.
When describing the device model, the list of available operation modes of a function can be shortened.
Devices with this function
- curtain – curtains.
- gate – gates.
- valve – motorized valves.
- window_blind – louvered blinds, roll blinds.
Examples of voice commands
— Салют, открой ворота (Salute, open the gate)
— Салют, закрой ворота (Salute, close the gate)
— Салют, раздвинь шторы (Salute, open the curtains)
— Салют, подними жалюзи (Salute, raise the blinds)
— Салют, останови ворота (Salute, stop the gate)
— Салют, останови поднятие жалюзи (Salute, stop raising the blinds)
— Салют, не закрывай шторы (Salute, don't close the curtains)
— Салют, ворота – стоп (Salute, gate – stop)
— Салют, закрой воду в кладовой (Salute, close the water in the pantry)
Function description for a device model
The function must be added to the model descriptions of all devices that support it.
"features": [
"open_set",
// ...
]
Function state description example
The example describes a device whose state is open.
{
"states": [
{
"key": "open_set",
"value": {
"type": "ENUM",
"enum_value": "open"
}
}
]
}