developers.home-assistant/docs/core/entity/lawn-mower.md

1.8 KiB

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.