contact
Door / window / opening / garage / valve contact sensor.
Door / window / opening / garage / valve contact sensor. Boolean "is the entry currently open" with the timestamp of the last transition. Drives Home Assistant binary_sensor entries whose device_class is door, window, opening, garage, or garage_door — and any future native integration that needs the same semantics.
Push-driven: providers update the slice on transition events from the upstream source (HA WebSocket state_changed, ZWave notification …). Consumers read the slice; no polling.
At a glance
| Capability | contact |
| 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/contact.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 |
|---|---|---|---|
entryOpen | boolean | yes | True when the entry is open; false when closed. |
lastChangedAt | number | yes | Ms epoch of the last open↔closed transition. 0 if never observed. |
consumables
Generic device-consumables capability — the ONE place a device reports what it uses up or fills: wear parts (vacuum filters/brushes, cartridges, descaling cycles), supplies it draws from (a vacuum's clean-water tank and detergent, a dishwasher's salt and rinse aid) and waste it collects (a dirty water tank, a dust bin).
control
Unified user-settable input cap.