vacuum-control
Robot-vacuum cap.
Robot-vacuum cap. Models HA vacuum.* entities — anything with a cleaning lifecycle plus a return-to-base / locate surface and an optional fan-speed selector.
State follows HA's canonical vacuum lifecycle: idle / cleaning / paused / returning / docked / error. batteryLevel (0..100) is nullable — some vacuums don't report a battery percentage. fanSpeed is the current speed token (provider-verbatim, e.g. 'standard' / 'turbo') and availableFanSpeeds lists the tokens the hardware accepts so the UI renders only supported choices.
The setFanSpeed method takes the bare speed token — the provider validates it against the vacuum's own list. locate triggers the find-me chirp; returnToBase sends it home.
Tanks (clean water, dirty water, detergent, dust bin) are NOT here: they are supply / waste items of the device's consumables cap, like every other device's consumables.
At a glance
| Capability | vacuum-control |
| Provided by | The device's own driver provides it: each device registers its own provider. |
| Active providers per device | one |
| Device types | vacuum |
| Source | packages/types/src/capabilities/vacuum-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 |
|---|---|---|---|
start | mutation | yes | protected |
pause | mutation | yes | protected |
stop | mutation | yes | protected |
returnToBase | mutation | yes | protected |
locate | mutation | yes | protected |
setFanSpeed | mutation | yes | protected |
start
mutation
Input
No fields besides deviceId.
Output
Nothing.
Actions (offered in automations and on device cards)
| Action | Label | Sets |
|---|---|---|
vacuum.start | Start cleaning |
pause
mutation
Input
No fields besides deviceId.
Output
Nothing.
Actions (offered in automations and on device cards)
| Action | Label | Sets |
|---|---|---|
vacuum.pause | Pause |
stop
mutation
Input
No fields besides deviceId.
Output
Nothing.
Actions (offered in automations and on device cards)
| Action | Label | Sets |
|---|---|---|
vacuum.stop | Stop |
returnToBase
mutation
Input
No fields besides deviceId.
Output
Nothing.
Actions (offered in automations and on device cards)
| Action | Label | Sets |
|---|---|---|
vacuum.dock | Return to base |
locate
mutation
Input
No fields besides deviceId.
Output
Nothing.
Actions (offered in automations and on device cards)
| Action | Label | Sets |
|---|---|---|
vacuum.locate | Locate |
setFanSpeed
mutation
Input
| Field | Type | Required | Description |
|---|---|---|---|
speed | string | yes |
Output
Nothing.
Actions (offered in automations and on device cards)
| Action | Label | Sets |
|---|---|---|
vacuum.fanSpeed | Set suction |
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 state + battery + fan-speed changes.
| Field | Type | Required | Description |
|---|---|---|---|
state | "idle" | "cleaning" | "paused" | "returning" | "docked" | "drying" | "error" | yes | Lifecycle state of the vacuum. |
batteryLevel | number | null | yes | 0..100 battery percentage. Null when the device has no battery reading. |
fanSpeed | string | null | yes | Current fan-speed token (provider-verbatim). Null when unknown or the vacuum has no speed control. |
availableFanSpeeds | string[] | yes | Speed tokens the hardware accepts — drives the UI selector. |
progress | number | null | yes | 0..100 cleaning-completion percentage of the current task, or null. |
errorCode | number | null | yes | Current error code (0 / null = no error). |
errorLabel | string | null | yes | Human label for { |
lastChangedAt | number | yes | Ms epoch when the slice was last updated. |