Docs
Capabilities

Light

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

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

Non-dimmable lights ignore brightnessPercent. Gate brightness controls on requiresEntityFeature: { colorMode: 'brightness' } in preferences.

Use in preferences

{ key: 'device', label: 'Device', type: 'entity', domainFilter: 'light', 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 classonoff
anyOnOff
Subscribe and compare
subscribe($g.device, { to: 'on' }, onChange);
subscribe($g.device, { to: 'On' }, onChange); // same thing, by label
if ($g.device.is('On')) { /* … */ }

Services

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

ServiceParametersDescription
toggle—Toggle
turnOfftransition (number, 0–300)Turn off
turnOnbrightnessPercent (number, 0–100) — Leave blank to use the light's remembered brightness.
transition (number, 0–300) — How long the change should take. Default: instant.
Turn on
Call a service
await $g.device.toggle();

Features

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

FeatureBit
EFFECT4
FLASH8
TRANSITION32

Attributes

AttributeTypeDescription
brightnessPercentnumber0–100 while on.
colorModestringActive colour mode, one of supportedColorModes.
supportedColorModesstring[]e.g. onoff, brightness, color_temp, rgb.
kelvinnumberColour temperature when in color_temp mode.
minColorTempKelvinnumber—
maxColorTempKelvinnumber—
rgbColor[number, number, number]—
Generated from docs-bundle v0.1.0, novon-platform 9ce3486c (2026-10-09).

On this page