Dominevo
ReferenceDevice capabilities

recording-signal

A camera's own 'record me NOW' LEVEL — a signal the device raises while something it knows about is happening (a robot vacuum cleaning, a machine running, a gate open) and lowers when it stops.

A camera's own "record me NOW" LEVEL — a signal the device raises while something it knows about is happening (a robot vacuum cleaning, a machine running, a gate open) and lowers when it stops.

It is a level, not an edge. The sensor triggers the recorder already listens to (SOURCE_CAP_ACTIVE_FIELD) fire on a rising edge and record for a fixed post-buffer; a cleaning lasts forty minutes, and forty minutes of "this is still happening" cannot be expressed as an edge plus a post-buffer without either re-triggering on a timer or picking a post-buffer long enough to cover every job, which records the dock for that long after every short one. So the recorder reads the LEVEL: it records for as long as active is true, plus the band's own post-buffer once it falls.

Who owns the fact: the PROVIDER of the device, which already reads the state the signal is derived from (the vacuum's lifecycle state, for Dreame). It writes this slice on every change; consumers subscribe to the kernel's DeviceStateChanged for it and read it back through deviceState.getCapSlice to reconcile — never a second copy, never a poll against the device.

Deliberately NOT a binary sensor on the camera: a binary sensor is exported to Home Assistant, HomeKit and the sensor picker as a thing an operator can bind, and "the camera wants to record" is not a room sensor. It is a fact about the camera, on the camera.

At a glance

Capabilityrecording-signal
Provided byThe device's own driver provides it: each device registers its own provider.
Active providers per deviceone
Device typescamera
Sourcepackages/types/src/capabilities/recording-signal.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
getStatusqueryyesdefault

getStatus

query

The current level, straight from the slice the provider keeps fresh.

Input

No fields besides deviceId.

Output

A camera's own "record me NOW" LEVEL — a signal the device raises while something it knows about is happening (a robot vacuum cleaning, a machine running, a gate open) and lowers when it stops.

It is a level, not an edge. The sensor triggers the recorder already listens to (SOURCE_CAP_ACTIVE_FIELD) fire on a rising edge and record for a fixed post-buffer; a cleaning lasts forty minutes, and forty minutes of "this is still happening" cannot be expressed as an edge plus a post-buffer without either re-triggering on a timer or picking a post-buffer long enough to cover every job, which records the dock for that long after every short one. So the recorder reads the LEVEL: it records for as long as active is true, plus the band's own post-buffer once it falls.

Who owns the fact: the PROVIDER of the device, which already reads the state the signal is derived from (the vacuum's lifecycle state, for Dreame). It writes this slice on every change; consumers subscribe to the kernel's DeviceStateChanged for it and read it back through deviceState.getCapSlice to reconcile — never a second copy, never a poll against the device.

Deliberately NOT a binary sensor on the camera: a binary sensor is exported to Home Assistant, HomeKit and the sensor picker as a thing an operator can bind, and "the camera wants to record" is not a room sensor. It is a fact about the camera, on the camera.

FieldTypeRequiredDescription
activebooleanyesTrue while the device asks to be recorded.
reasonstringyesWhy, in the provider's own vocabulary (a vacuum's cleaning / docked, …). Free text for the log line and the UI badge; the recorder never branches on it.
lastChangedAtnumberyesMs epoch of the last active transition. 0 if never observed.

Runtime state

The state Dominevo keeps for each device with this capability, readable without calling the provider.

FieldTypeRequiredDescription
activebooleanyes
reasonstringyes
lastChangedAtnumberyes
lastFetchedAtnumberyes

Status

FieldTypeRequiredDescription
activebooleanyesTrue while the device asks to be recorded.
reasonstringyesWhy, in the provider's own vocabulary (a vacuum's cleaning / docked, …). Free text for the log line and the UI badge; the recorder never branches on it.
lastChangedAtnumberyesMs epoch of the last active transition. 0 if never observed.