ReferenceDevice capabilities
flood
Water leak / moisture sensor.
Water leak / moisture sensor. Boolean "is liquid currently detected" with the timestamp of the last transition. Drives Home Assistant binary_sensor entries with device_class: moisture, and any future native flood sensor.
Push-driven from the upstream source.
At a glance
| Capability | flood |
| 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/flood.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 |
|---|---|---|---|
flooded | boolean | yes | True when leak is currently detected. |
lastChangedAt | number | yes | Ms epoch of the last flooded↔dry transition. 0 if never observed. |