cover
Window covering / blinds / garage door / valve cap.
Window covering / blinds / garage door / valve cap. Models HA cover.* entities — anything that moves between an open and a closed state with optional intermediate positioning and tilt.
State follows HA's canonical lifecycle: open / opening / closing / closed / stopped. position (0 closed, 100 open) and tiltPosition are nullable — some shutters only support full open/close, some Venetian blinds add tilt but no slat positioning, garage doors are usually positionless. Providers populate only what the hardware reports.
The cap intentionally does NOT split tilt into a sibling cap: physical hardware that has tilt always has the main position surface too, so the coupling stays inside one slice + one method group rather than spreading across two registrations.
Sub-surface gating paired with DeviceFeature flags:
CoverPositionable— intermediatepositionsliderCoverTilt— slat-tilt sliderCoverStoppable— thestopcontrol (a no-opstopnever declares it)
At a glance
| Capability | cover |
| Provided by | The device's own driver provides it: each device registers its own provider. |
| Active providers per device | one |
| Device types | cover |
| Source | packages/types/src/capabilities/cover.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 |
|---|---|---|---|
open | mutation | yes | protected |
close | mutation | yes | protected |
stop | mutation | no | protected |
setPosition | mutation | no | protected |
setTiltPosition | mutation | no | protected |
open
mutation
Input
No fields besides deviceId.
Output
Nothing.
Actions (offered in automations and on device cards)
| Action | Label | Sets |
|---|---|---|
cover.open | Open | state = "open" |
close
mutation
Input
No fields besides deviceId.
Output
Nothing.
Actions (offered in automations and on device cards)
| Action | Label | Sets |
|---|---|---|
cover.close | Close | state = "closed" |
stop
mutation · optional for a provider
Input
No fields besides deviceId.
Output
Nothing.
Actions (offered in automations and on device cards)
| Action | Label | Sets |
|---|---|---|
cover.stop | Stop |
setPosition
mutation · optional for a provider
Input
| Field | Type | Required | Description |
|---|---|---|---|
position | number | yes |
Output
Nothing.
Actions (offered in automations and on device cards)
| Action | Label | Sets |
|---|---|---|
cover.position | Set position | position = undefined |
setTiltPosition
mutation · optional for a provider
Input
| Field | Type | Required | Description |
|---|---|---|---|
tiltPosition | number | yes |
Output
Nothing.
Actions (offered in automations and on device cards)
| Action | Label | Sets |
|---|---|---|
cover.tilt | Set tilt | tiltPosition = undefined |
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 position changes during a move.
| Field | Type | Required | Description |
|---|---|---|---|
state | "open" | "opening" | "closing" | "closed" | "stopped" | yes | Lifecycle state of the cover. |
position | number | null | yes | 0 = fully closed, 100 = fully open. Null when the device has no intermediate position surface. |
tiltPosition | number | null | yes | 0 = closed slats, 100 = open slats. Null when no tilt support. |
lastChangedAt | number | yes | Ms epoch when the slice was last updated. |