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
| Capability | recording-signal |
| Provided by | The device's own driver provides it: each device registers its own provider. |
| Active providers per device | one |
| Device types | camera |
| Source | packages/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.
| Method | Kind | Required of a provider | Access |
|---|---|---|---|
getStatus | query | yes | default |
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.
| Field | Type | Required | Description |
|---|---|---|---|
active | boolean | yes | True while the device asks to be recorded. |
reason | string | yes | Why, 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. |
lastChangedAt | number | yes | Ms 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.
| Field | Type | Required | Description |
|---|---|---|---|
active | boolean | yes | |
reason | string | yes | |
lastChangedAt | number | yes | |
lastFetchedAt | number | yes |
Status
| Field | Type | Required | Description |
|---|---|---|---|
active | boolean | yes | True while the device asks to be recorded. |
reason | string | yes | Why, 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. |
lastChangedAt | number | yes | Ms epoch of the last active transition. 0 if never observed. |