valve
Pipe / water / gas valve cap.
Pipe / water / gas valve cap. Models HA valve.* entities — anything that moves between an open and a closed state with optional intermediate positioning.
State follows HA's canonical lifecycle: open / opening / closing / closed / stopped. position (0 closed, 100 open) is nullable — some valves only support full open/close, while others report and accept an intermediate position. Providers populate only what the hardware reports.
Unlike cover, valves have no tilt surface — the cap is the strict open/close + optional position subset of the cover lifecycle.
Sub-surface gating paired with a DeviceFeature flag:
ValvePositionable— intermediatepositionslider / drag
At a glance
| Capability | valve |
| Provided by | The device's own driver provides it: each device registers its own provider. |
| Active providers per device | one |
| Device types | valve |
| Source | packages/types/src/capabilities/valve.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 | yes | protected |
setPosition | mutation | no | protected |
open
mutation
Input
No fields besides deviceId.
Output
Nothing.
Actions (offered in automations and on device cards)
| Action | Label | Sets |
|---|---|---|
valve.open | Open valve | state = "open" |
close
mutation
Input
No fields besides deviceId.
Output
Nothing.
Actions (offered in automations and on device cards)
| Action | Label | Sets |
|---|---|---|
valve.close | Close valve | state = "closed" |
stop
mutation
Input
No fields besides deviceId.
Output
Nothing.
Actions (offered in automations and on device cards)
| Action | Label | Sets |
|---|---|---|
valve.stop | Stop valve |
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 |
|---|---|---|
valve.position | Set opening | position = 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 valve. |
position | number | null | yes | 0 = fully closed, 100 = fully open. Null when the device has no intermediate position surface. |
lastChangedAt | number | yes | Ms epoch when the slice was last updated. |