ym88659208ym87991671
Device vacuum_cleaner | Documentation for developers

vacuum_cleaner

Last updated on September 24, 2023

Vacuum cleaner.

Available device functions

The device can have all the functions listed below or some of them. E.g. If the vacuum cleaner does not support different types of cleaning, it is not necessary to include the function vacuum_cleaner_cleaning_type in the description of its model.

The online function must be described.

FunctionMandatory?Description
battery_percentageBatter charge level
vacuum_cleaner_cleaning_typeCleaning type: dry, wet, dry and wet
vacuum_cleaner_commandCommand: start cleaning, pause cleaning, return to base, resume cleaning
vacuum_cleaner_programCleaning program: perimeter cleaning, spiral cleaning, cleaning of the entire available area, cleaning along a random route
vacuum_cleaner_statusDevice status: cleaning, pause, return to dock, docked
online✔︎Device availability: offline or online

Vacuum cleaner model description example

The model shall be described in accordance with the model structure. The example describes a vacuum cleaner with all supported functions.

In addition, the model's allowed values for the vacuum_cleaner_program function have been changed: it supports only three cleaning programs. The random_route program is not supported and has been deleted.

{
"id": "QWERTY124",
"manufacturer": "Xiaqara",
"model": "SM1123456789",
"hw_version": "3.1",
"sw_version": "5.6",
"description": "Smart vacuum cleaner Xiaqara",
"category": "vacuum_cleaner",
"features": [
"battery_percentage",
"child_lock",
"vacuum_cleaner_cleaning_type",
"vacuum_cleaner_command",
"vacuum_cleaner_program",
"vacuum_cleaner_status",
"online",
],
"allowed_values": {
"vacuum_cleaner_program": {
"type": "ENUM",
"enum_values": {
"values": [
"perimeter",
"spot",
"smart",
]
}
}
}
}

User's vacuum cleaner description example

The device shall be describe in accordance with the device structure. The example contains no vacuum cleaners model description as we believe that models are described independently and the model ID will be enough (in this case, QWERTY124).

{
"id": "ABCD_004",
"name": "My vacuum cleaner",
"default_name": "Smart vacuum cleaner",
"nicknames": ["Hoover", "Controlled cleaner"],
"home": "My home",
"room": "Living room",
"groups": ["Sweeping",],
"model_id": "QWERTY124",
"hw_version": "3.1",
"sw_version": "5.6",
"partner_meta": {
"internal-id": 1234,
"specificity": "microchip 2A"
},
}
Sber process cookies only to personalize services according to Cookies Usage Policy. You can prevent the processing of cookies in your browser settings.