mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-24 01:36:32 +00:00

* Update lawn-mower.md with returning state * Update lawn-mower.md sentence improvement * add blog post * Text update Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Text update from suggestion Co-authored-by: G Johansson <goran.johansson@shiftit.se> * Text update from suggestion Co-authored-by: G Johansson <goran.johansson@shiftit.se> * add link to documentation * move url and make relative * change date to today * address the nitpick --------- Co-authored-by: Martin Hjelmare <marhje52@gmail.com> Co-authored-by: G Johansson <goran.johansson@shiftit.se>
1.8 KiB
1.8 KiB
title, sidebar_label
title | sidebar_label |
---|---|
Lawn mower entity | Lawn mower |
Derive entity platforms from homeassistant.components.lawn_mower.LawnMowerEntity
Properties
:::tip
Properties should always only return information from memory and not do I/O (like network requests). Implement update()
or async_update()
to fetch data.
:::
Name | Type | Default | Description |
---|---|---|---|
activity | LawnMowerActivity | None |
None |
Current activity. |
Activities
Activity | Description |
---|---|
MOWING |
The lawn mower is currently mowing. |
DOCKED |
The lawn mower is done mowing and is currently docked. |
PAUSED |
The lawn mower was active and is now paused. |
RETURNING |
The lawn mower is returning to the dock. |
ERROR |
The lawn mower encountered an error while active and needs assistance. |
Supported features
Supported features are defined by using values in the LawnMowerEntityFeature
enum
and are combined using the bitwise or (|
) operator.
Value | Description |
---|---|
START_MOWING |
The lawn mower supports the start mowing command. |
PAUSE |
The lawn mower supports pausing the current task. |
DOCK |
The lawn mower supports the return to dock command. |
Methods
start_mowing
or async_start_mowing
Start or resume the mowing task.
dock
or async_dock
Stop the lawn mower, return to dock.
pause
or async_pause
Pause the lawn mower during current operation.