Lawn mower
The Lawn mower integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] lets you bring compatible robotic lawn mowers into Home Assistant. Use it to monitor whether your mower is mowing, paused, returning to dock, docked, or reporting an error, and build automations around those states.
Building block integration
This lawn mower is a building block integration that cannot be added to your Home Assistant directly but is used and provided by other integrations.
A building block integration differs from the typical integration that connects to a device or service. Instead, other integrations that do integrate a device or service into Home Assistant use this lawn mower building block to provide entities, services, and other functionality that you can use in your automations or dashboards.
If one of your integrations features this building block, this page documents the functionality the lawn mower building block offers.
The state of a lawn mower entity
A lawn mower entity can have the following states:
- 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.
- Unavailable: The entity is currently unavailable.
- Unknown: The state is not yet known.
List of triggers
The Lawn mower integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] provides the following triggers. Each link below opens a dedicated page with examples, fields, and a step-by-step UI walkthrough.
-
Lawn mower returned to dock (
lawn_mower.docked) Triggers after one or more lawn mowers have returned to dock. -
Lawn mower encountered an error (
lawn_mower.errored) Triggers after one or more lawn mowers encounter an error. -
Lawn mower paused mowing (
lawn_mower.paused_mowing) Triggers after one or more lawn mowers pause mowing. -
Lawn mower started mowing (
lawn_mower.started_mowing) Triggers after one or more lawn mowers start mowing. -
Lawn mower started returning to dock (
lawn_mower.started_returning) Triggers after one or more lawn mowers start returning to dock.
For an overview of every trigger across all integrations, see the triggers reference.
List of conditions
The Lawn mower integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] provides the following conditions. Each link below opens a dedicated page with examples, fields, and a step-by-step UI walkthrough.
-
Lawn mower is docked (
lawn_mower.is_docked) Tests if one or more lawn mowers are docked. -
Lawn mower is encountering an error (
lawn_mower.is_encountering_an_error) Tests if one or more lawn mowers are encountering an error. -
Lawn mower is mowing (
lawn_mower.is_mowing) Tests if one or more lawn mowers are mowing. -
Lawn mower is paused (
lawn_mower.is_paused) Tests if one or more lawn mowers are paused. -
Lawn mower is returning (
lawn_mower.is_returning) Tests if one or more lawn mowers are returning to the dock.
For an overview of every condition across all integrations, see the conditions reference.
Actions
Available actions: start_mowing, pause and dock.
Before calling one of these actions, make sure your lawn_mower platform supports it.
Action: Start mowing
The lawn_mower.start_mowing action starts or resumes a mowing task.
| Data attribute | Optional | Description |
|---|---|---|
entity_id |
yes | Only act on specific lawn_mower. Use entity_id: all to target all. |
Action: Pause
The lawn_mower.pause action pauses a mowing task.
| Data attribute | Optional | Description |
|---|---|---|
entity_id |
yes | Only act on specific lawn_mower. Use entity_id: all to target all. |
Action: Dock
The lawn_mower.dock action tells the lawn mower to return to its dock.
| Data attribute | Optional | Description |
|---|---|---|
entity_id |
yes | Only act on specific lawn_mower. Use entity_id: all to target all. |
Lawn mower automation examples
You can use lawn mower triggers and conditions to react when mowing starts, pauses, or finishes. You can also combine them with weather, time, and notifications to keep your yard routine simple.
You don’t need to edit YAML to use these examples. Copy a YAML snippet from this page, open the automation editor in Home Assistant, and press Ctrl+V (or Cmd+V on Mac). Home Assistant automatically converts the pasted YAML into the visual editor format, whether it’s a full automation, a single trigger, a condition, or an action.
Automation: Send a notification when mowing is done
When the mower returns to dock, send a message so you know the job is finished without checking the app.
-
Trigger: Lawn mower returned to dock
- Target: Backyard mower
-
Action: Send a notification message
-
Target: My Device (
notify.my_device)
-
Target: My Device (
YAML example for notifying when mowing is done
alias: "Notify when the mower is done"
triggers:
- trigger: lawn_mower.docked
target:
entity_id: lawn_mower.backyard
actions:
- action: notify.send_message
target:
entity_id: notify.my_device
data:
message: "The backyard mower is back at the dock."
Automation: Return the mower to dock when rain starts
If rain starts while the mower is active, you can stop the run early and send it back to the dock.
- Trigger: State: Rain sensor turned on
-
Condition: Lawn mower is mowing
- Target: Backyard mower
- Action: Return lawn mower to dock
YAML example for docking the mower when rain starts
alias: "Dock the mower when it starts raining"
triggers:
- trigger: state
entity_id: binary_sensor.rain_detected
to: "on"
conditions:
- condition: lawn_mower.is_mowing
target:
entity_id: lawn_mower.backyard
actions:
- action: lawn_mower.dock
target:
entity_id: lawn_mower.backyard