ym88659208ym87991671
Function vacuum_cleaner_command | Documentation for developers

vacuum_cleaner_command

Last updated on June 17, 2024

Data type: ENUM.

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

Purpose: device management command:

  • start — start cleaning.
  • pause — pause cleaning.
  • return_to_dock — return to the base.
  • resume — resume cleaning.

When describing the device model, the list of available commands can be reduced.

If the cleaning command vacuum_cleaner_command is used, but the program (vacuum_cleaner_program) and cleaning type (vacuum_cleaner_cleaning_type) are not selected, the Smart Home uses the program and type that the user selected in the Salyut application or on the device with the Salyut assistant. If nothing is preinstalled in the application or on the device, the smart program is used: cleaning in automatic mode according to the device’s algorithm.

Devices with this function

vacuum_cleaner — vacuum cleaners.

Examples of voice commands

— Салют, включи пылесос (Salute, turn on the vacuum cleaner)

— Салют, верни пылесос на базу (Salute, return the vacuum cleaner to the base)

Function description for a device model

The function must be added to the model descriptions of all devices that support it.

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

Function state description example

The example describes the device to which the command to return to the base was transmitted.

{
"states": [
{
"key": "vacuum_cleaner_command",
"value": {
"type": "ENUM",
"enum_value": "return_to_dock"
}
}
]
}
Sber process cookies only to personalize services according to Cookies Usage Policy. You can prevent the processing of cookies in your browser settings.