From 635b69a2bc8950a1ba5b482398ba0ee959fc10dd Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Tue, 4 Jul 2023 11:40:32 +0200 Subject: [PATCH] Update vacuum dev docs (#1827) --- docs/core/entity/vacuum.md | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/docs/core/entity/vacuum.md b/docs/core/entity/vacuum.md index 95112347..b150b5fa 100644 --- a/docs/core/entity/vacuum.md +++ b/docs/core/entity/vacuum.md @@ -40,6 +40,8 @@ Properties should always only return information from memory and not do I/O (lik Supported features are defined by using values in the `VacuumEntityFeature` enum and are combined using the bitwise or (`|`) operator. +Note that all vacuum entity platforms derived from `homeassistant.components.vacuum.StateVacuumEntity` +must set the `VacuumEntityFeature.STATE` flag. | Value | Description | | -------------- | ---------------------------------------------------- | @@ -48,15 +50,12 @@ and are combined using the bitwise or (`|`) operator. | `FAN_SPEED` | The vacuum supports setting fan speed. | | `LOCATE` | The vacuum supports locating. | | `MAP` | The vacuum supports retrieving its map. | -| `PAUSE` | Pause the vacuum. | -| `RETURN_HOME` | Return to the dock. | +| `PAUSE` | The vacuum supports the pause command. | +| `RETURN_HOME` | The vacuum supports the return to the dock command. | | `SEND_COMMAND` | The vacuum supports sending a command to the vacuum. | | `START` | The vacuum supports the start command. | -| `STATE` | The vacuum supports returning it state. | -| `STATUS` | The vacuum supports returning it status. | -| `STOP` | Stop the vacuum and return to the dock. | -| `TURN_OFF` | The vacuum turns off. | -| `TURN_ON` | The vacuum turns on. | +| `STATE` | The vacuum supports returning its state. | +| `STOP` | The vacuum supports the stop command. | ## Methods @@ -68,6 +67,10 @@ Perform a spot clean-up. Locate the vacuum cleaner. +### `pause` or `async_pause` + +Pause the cleaning task. + ### `return_to_base` or `async_return_to_base` Set the vacuum cleaner to return to the dock. @@ -80,14 +83,10 @@ Send a command to a vacuum cleaner. Set the fan speed. +### `start` or `async_start` + +Start or resume the cleaning task. + ### `stop` or `async_stop` Stop the vacuum cleaner, do not return to base. - -### `turn_on` or `async_turn_on` - -Turn the vacuum on and start cleaning. - -### `turn_off` or `async_turn_off` - -Turn the vacuum off stopping the cleaning and returning home.