Docs
Capabilities

Binary sensor

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

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

device_class (motion, door, window, smoke, …) tells you what on means; see the device classes below.

Use in preferences

{ key: 'device', label: 'Device', type: 'entity', domainFilter: 'binary_sensor', 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
doorOpenClosed
motionDetectedClear
windowOpenClosed
glass_breakBrokenIntact
moistureWetDry
smokeDetectedClear
carbon_monoxideDetectedClear
presencePresentNot Present
connectivityConnectedDisconnected
vibrationVibration DetectedClear
tamperTamperedClear
heatDetectedClear
gasDetectedClear
coldFreezingNormal
soundSoundingQuiet
powerMains OKNo mains
problemProblemOK
Subscribe and compare
subscribe($g.device, { to: 'on' }, onChange);
subscribe($g.device, { to: 'Open' }, onChange); // same thing, by label
if ($g.device.is('Open')) { /* … */ }

Services

No services.

Device classes

none, door, motion, window, glass_break, moisture, smoke, carbon_monoxide, presence, vibration, connectivity, tamper, heat, gas, cold, sound, power, problem

Filter with deviceClassFilter in an entity input.

Attributes

AttributeTypeDescription
batteryLevelnumber—
isLowboolean—
Generated from docs-bundle v0.1.0, novon-platform 9ce3486c (2026-10-09).

On this page