Properties should always only return information from memory and not do I/O (like network requests). Implement
async_update() to fetch data.
|name||string||Required||Name of the device.|
|state||string||Required||One of the states listed in the states section.|
|battery_level||int||Current battery level.|
|battery_icon||string||function||Battery icon to show in UI.|
|cleaning_mode||string||The current cleaning mode.|
|cleaning_mode_list||list||List of available fan speeds and cleaning modes.|
|error||string||Required with ||An error message if the vacuum is in |
|The vacuum is currently cleaning.|
|The vacuum is currently docked, it is assumed that docked can also mean charging.|
|The vacuum was cleaning but was paused without returning to the dock.|
|The vacuum is not paused, not docked and does not have any errors.|
|The vacuum is done cleaning and is currently returning to the dock, but not yet docked.|
|The vacuum encountered an error while cleaning, the error can be specified as a property on the entity.|
Turn the vacuum on and start cleaning.
Turn the vacuum off stopping the cleaning and returning home.
Set the vacuum cleaner to return to the dock.
Stop the vacuum cleaner, do not return to base.
Perform a spot clean-up.
Locate the vacuum cleaner.
Set the cleaning mode.
Send a command to a vacuum cleaner.