ReferenceDevice capabilities
error
How loudly a fault wants the operator.
How loudly a fault wants the operator. Both tiers raise the attention event.
At a glance
| Capability | error |
| Provided by | The device's own driver provides it: each device registers its own provider. |
| Active providers per device | one |
| Device types | any (no device type declared) |
| Source | packages/types/src/capabilities/error.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 |
|---|---|---|---|
active | boolean | null | yes | |
code | string | null | yes | The code of the principal fault; null when none (or unknown). |
label | string | null | yes | The principal fault's words, provider-translated; null when none. |
severity | "warning" | "error" | yes | |
since | number | null | yes | Ms epoch the current fault started; null when none or not known. |
faults | ({ code: string; label: string; severity: "warning" | "error" })[] | no | Every fault, for a device that raises several. The principal is the first. |
lastFetchedAt | number | yes | Ms epoch of the last read the provider made of the fault. |