ReferenceDevice capabilities
running-state
The running-state device capability: methods, state and events.
The definition carries no description.
At a glance
| Capability | running-state |
| Provided by | The device's own driver provides it: each device registers its own provider. |
| Active providers per device | one |
| Device types | camera, light, siren, switch, sensor, climate, button, event-emitter, update, generic, notifier, script, automation, lock, cover, valve, humidifier, water-heater, fan, media-player, alarm-panel, control, presence, weather, weather-station, vacuum, lawn-mower, container, image, pet-feeder, pet-fountain, dishwasher, washer, dryer, gateway, heat-pump, energy-system, workload |
| Source | packages/types/src/capabilities/running-state.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 |
|---|---|---|---|
running | boolean | null | yes | null = unknown — never coerced to false. |
since | number | null | yes | Epoch ms the current boolean began; null while running is null. |
source | "native" | "assigned" | yes | Source |
phase | string | null | yes | |
lastFetchedAt | number | null | yes | null until a reading has been published. |
Events
onStarted
| Field | Type | Required | Description |
|---|---|---|---|
deviceId | number | yes | |
since | number | null | yes | |
phase | string | null | yes |
onFinished
| Field | Type | Required | Description |
|---|---|---|---|
deviceId | number | yes | |
since | number | null | yes | |
phase | string | null | yes |