Dominevo
ReferenceDevice capabilities

running-state

The running-state device capability: methods, state and events.

The definition carries no description.

At a glance

Capabilityrunning-state
Provided byThe device's own driver provides it: each device registers its own provider.
Active providers per deviceone
Device typescamera, 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
Sourcepackages/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.

FieldTypeRequiredDescription
runningboolean | nullyesnull = unknown — never coerced to false.
sincenumber | nullyesEpoch ms the current boolean began; null while running is null.
source"native" | "assigned"yesSource
phasestring | nullyes
lastFetchedAtnumber | nullyesnull until a reading has been published.

Events

onStarted

FieldTypeRequiredDescription
deviceIdnumberyes
sincenumber | nullyes
phasestring | nullyes

onFinished

FieldTypeRequiredDescription
deviceIdnumberyes
sincenumber | nullyes
phasestring | nullyes