vacuum_cleaner_program
Data type: ENUM.
Usage method: stores the device state and can change it.
Purpose: manages the cleaning program:
perimeter
— cleaning around the perimeter of the room. The device moves along the walls without cleaning in the center of the room.spot
— cleaning in a spiral. The device starts cleaning at the start point and moves in an expanding spiral.smart
— cleaning in automatic mode according to the algorithm of the device. Usually in this mode the device removes the entire available area of the room.random_route
— cleaning on a random route. The device moves according to the simplest algorithm that does not track the previously cleaned area. Cleaning usually continues until the battery is discharged to the threshold value set by the manufacturer, after which the device returns to the dock.
When describing the device model, the list of available programs can be reduced.
Devices with this function
vacuum_cleaner — vacuum cleaners.
Examples of voice commands
— Салют, включи функцию «Авто» на пылесосе (Salute, turn on the "Auto" function on the vacuum cleaner)
— Салют, установи режим «Спираль» на пылесосе (Salute, set the "Spiral" mode on the vacuum cleaner)
— Салют, сделай режим «Случайный маршрут» на пылесосе (Salute, make a "Random route" mode on the vacuum cleaner)
— Салют, поставь режим «Периметр» на пылесосе (Salute, put the "Perimeter" mode on the vacuum cleaner)
Function description for a device model
The function must be added to the model descriptions of all devices that support it.
"features": [
"vacuum_cleaner_program",
// ...
]
Function state description example
The example describes a device with an automatic work program.
{
"states": [
{
"key": "vacuum_cleaner_program",
"value": {
"type": "ENUM",
"enum_value": "smart"
}
}
]
}