ym88659208ym87991671
Function open_state | Documentation for developers
Skip to main content

open_state

Last updated on August 26, 2022

Data type: ENUM.

Usage method: stores the device state without changing it.

Purpose: shows the device's opening status:

  • open – opened.
  • close – closed.
  • opening – is opening.
  • closing – is closing.

When describing the device model, the list of available operation modes of a function can be shortened.

Devices with this function

Examples of voice commands

— Салют, что со шторами? (Salute, what's up with the curtains?)

— Салют, в каком положении ворота? (Salute, what is the position of the gate?)

— Салют, подняты ли жалюзи? (Salute, are the louvered blinds open?)

Function description for a device model

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

Function state description example

The example describes a device whose state is open.

{
"states": [
{
"key": "open_state",
"value": {
"type": "ENUM",
"enum_value": "open"
}
}
]
}