lawn-mower-control
Robotic lawn-mower cap.
Robotic lawn-mower cap. Models HA lawn_mower.* entities — anything with a mowing lifecycle plus a dock action.
Activity follows HA's canonical lawn-mower lifecycle: idle / mowing / paused / docked / error. batteryLevel (0..100) is nullable — some mowers don't report a battery percentage.
startMowing begins a mowing run, pause halts it in place, and dock sends the mower back to its charging station.
At a glance
| Capability | lawn-mower-control |
| Provided by | The device's own driver provides it: each device registers its own provider. |
| Active providers per device | one |
| Device types | lawn-mower |
| Source | packages/types/src/capabilities/lawn-mower-control.cap.ts |
Methods
Every method takes the device id (deviceId) to address the device; the input tables below list the other fields.
| Method | Kind | Required of a provider | Access |
|---|---|---|---|
startMowing | mutation | yes | protected |
pause | mutation | yes | protected |
dock | mutation | yes | protected |
startMowing
mutation
Input
No fields besides deviceId.
Output
Nothing.
Actions (offered in automations and on device cards)
| Action | Label | Sets |
|---|---|---|
lawnMower.start | Start mowing |
pause
mutation
Input
No fields besides deviceId.
Output
Nothing.
Actions (offered in automations and on device cards)
| Action | Label | Sets |
|---|---|---|
lawnMower.pause | Pause mower |
dock
mutation
Input
No fields besides deviceId.
Output
Nothing.
Actions (offered in automations and on device cards)
| Action | Label | Sets |
|---|---|---|
lawnMower.dock | Dock mower |
Runtime state
The state Dominevo keeps for each device with this capability, readable without calling the provider.
Runtime-state slice — mirrored by the kernel. UI controls watch the slice for live activity + battery changes.
| Field | Type | Required | Description |
|---|---|---|---|
activity | "idle" | "mowing" | "paused" | "docked" | "error" | yes | Lifecycle activity of the mower. |
batteryLevel | number | null | yes | 0..100 battery percentage. Null when the device has no battery reading. |
progress | number | null | yes | 0..100 mowing-completion percentage of the current task, or null when no task is active / progress is unavailable. |
currentCode | number | null | yes | Current device/event code (dynamic — mostly status, sometimes an error), or null when unknown. |
currentCodeLabel | string | null | yes | Human label for { |
severity | "info" | "warning" | "error" | yes | Severity of { attention; info is normal status. |
lastChangedAt | number | yes | Ms epoch when the slice was last updated. |