Docs
Capabilities

Valve

Domain valve: states, services, device classes and features.

Entity ids in this domain look like valve.<object_id>.

Use in preferences

{ key: 'device', label: 'Device', type: 'entity', domainFilter: 'valve', required: true }

States

getState() returns the raw token. subscribe filters, entity.is() and matchesState() also accept the friendly label the app shows (any case; spaces, hyphens and underscores interchangeable).

Device classopenclosedopeningclosing
anyOpenClosedOpeningClosing
waterOpenClosedOpeningClosing
Subscribe and compare
subscribe($g.device, { to: 'open' }, onChange);
subscribe($g.device, { to: 'Open' }, onChange); // same thing, by label
if ($g.device.is('Open')) { /* … */ }

Services

Curated for smart apps (also offered by the wizard action catalog):

ServiceParametersDescription
closeValve—Close
openValve—Open
setValvePositionposition (number, 0–100, required)Set position
stopValve—Stop
toggle—Toggle
Call a service
await $g.device.closeValve();

Device classes

none, water, gas

Filter with deviceClassFilter in an entity input.

Features

Bitmask on the supportedFeatures attribute; read the values with getEntityFeatures().Valve.

FeatureBit
OPEN1
CLOSE2
SET_POSITION4
STOP8
Generated from docs-bundle v0.1.0, novon-platform 9ce3486c (2026-10-09).

On this page