Dominevo
ReferenceDevice capabilities

device-state-refresh

device-state-refresh — the HOW of a device's state refresh, called by the core, which owns the WHEN.

device-state-refresh — the HOW of a device's state refresh, called by the core, which owns the WHEN.

The provider registers it per device with its policy (registerNativeCap(cap, provider, { stateRefresh })). The hub's scheduler calls refresh on the schedule, after a command and in the burst that follows it, and resubscribe when a push integration fell silent. The provider re-reads and writes the slices it already writes; nothing is returned but completion.

At a glance

Capabilitydevice-state-refresh
Provided byThe device's own driver provides it: each device registers its own provider.
Active providers per deviceone
Device typesany (no device type declared)
Sourcepackages/types/src/capabilities/device-state-refresh.cap.ts

Methods

Every method takes the device id (deviceId) to address the device; the input tables below list the other fields.

MethodKindRequired of a providerAccess
refreshmutationyesadmin
resubscribemutationyesadmin

refresh

mutation

Input

FieldTypeRequiredDescription
deviceIdsnumber[]yesEvery device to re-read: one, or the integration's whole set when the provider batches.
reason"schedule" | "command" | "burst"yes

Output

FieldTypeRequiredDescription
oktrueyes

resubscribe

mutation

Input

No fields besides deviceId.

Output

FieldTypeRequiredDescription
oktrueyes