binary
Generic boolean sensor — last-resort fallback when no domain- specific binary cap fits (Home Assistant binary_sensor without a known device_class, or a domain we haven't typed yet).
Generic boolean sensor — last-resort fallback when no domain- specific binary cap fits (Home Assistant binary_sensor without a known device_class, or a domain we haven't typed yet). Pure pass-through: just the bool + timestamp. Push-driven.
Prefer the typed alternatives (contact, flood, smoke, carbon-monoxide, gas, tamper, vibration, connectivity, motion) when the semantics match — export adapters render those with the right HomeKit / Alexa display category.
At a glance
| Capability | binary |
| Provided by | The device's own driver provides it: each device registers its own provider. |
| Active providers per device | one |
| Device types | sensor |
| Source | packages/types/src/capabilities/binary.cap.ts |
Methods
This capability declares no methods.
Runtime state
The state Dominevo keeps for each device with this capability, readable without calling the provider.
| Field | Type | Required | Description |
|---|---|---|---|
on | boolean | yes | On |
lastChangedAt | number | yes | Ms epoch of the last transition. 0 if never observed. |