Dominevo
ReferenceDevice capabilities

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 — intermediate position slider / drag

At a glance

Capabilityvalve
Provided byThe device's own driver provides it: each device registers its own provider.
Active providers per deviceone
Device typesvalve
Sourcepackages/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.

MethodKindRequired of a providerAccess
openmutationyesprotected
closemutationyesprotected
stopmutationyesprotected
setPositionmutationnoprotected

open

mutation

Input

No fields besides deviceId.

Output

Nothing.

Actions (offered in automations and on device cards)

ActionLabelSets
valve.openOpen valvestate = "open"

close

mutation

Input

No fields besides deviceId.

Output

Nothing.

Actions (offered in automations and on device cards)

ActionLabelSets
valve.closeClose valvestate = "closed"

stop

mutation

Input

No fields besides deviceId.

Output

Nothing.

Actions (offered in automations and on device cards)

ActionLabelSets
valve.stopStop valve

setPosition

mutation · optional for a provider

Input

FieldTypeRequiredDescription
positionnumberyes

Output

Nothing.

Actions (offered in automations and on device cards)

ActionLabelSets
valve.positionSet openingposition = 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.

FieldTypeRequiredDescription
state"open" | "opening" | "closing" | "closed" | "stopped"yesLifecycle state of the valve.
positionnumber | nullyes0 = fully closed, 100 = fully open. Null when the device has no intermediate position surface.
lastChangedAtnumberyesMs epoch when the slice was last updated.