recording-onboard
Vendor-neutral **onboard** recording + storage cap — what the CAMERA writes to the CAMERA's own card, on the camera's own schedule.
Vendor-neutral onboard recording + storage cap — what the CAMERA writes to the CAMERA's own card, on the camera's own schedule.
This is NOT recording.cap.ts. That one is Dominevo's recorder: our footage ledger, our storage locations, our retention. Every value here is read from the camera and every write goes back to the camera; there is no Dominevo-side mirror that could disagree with the device.
At a glance
| Capability | recording-onboard |
| Provided by | The device's own driver provides it: each device registers its own provider. |
| Active providers per device | one |
| Device types | camera |
| Device settings | Yes: its settings section on the device page is built from this capability's methods. |
| Source | packages/types/src/capabilities/recording-onboard.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 |
|---|---|---|---|
getOptions | query | yes | default |
setSettings | mutation | yes | admin |
getOptions
query
Input
No fields besides deviceId.
Output
| Field | Type | Required | Description |
|---|---|---|---|
enabled | { readable: boolean; writable: boolean; reason?: string } | yes | |
overwriteWhenFull | { readable: boolean; writable: boolean; reason?: string } | yes | |
preRecordSec | { readable: boolean; writable: boolean; reason?: string } | yes | |
preRecordSecRange | { min: number; max: number; step: number } | no | |
preRecordSecAllowed | { values: number[]; sentinel?: { value: number; meaning: "no-limit" | "disabled" } } | no | Preferred over the range when the camera takes a SET, not a span. |
postRecordSec | { readable: boolean; writable: boolean; reason?: string } | yes | |
postRecordSecRange | { min: number; max: number; step: number } | no | |
postRecordSecAllowed | { values: number[]; sentinel?: { value: number; meaning: "no-limit" | "disabled" } } | no | Preferred over the range when the camera takes a SET, not a span. |
segmentMinutes | { readable: boolean; writable: boolean; reason?: string } | yes | |
segmentMinutesRange | { min: number; max: number; step: number } | no | |
segmentMinutesAllowed | { values: number[]; sentinel?: { value: number; meaning: "no-limit" | "disabled" } } | no | Preferred over the range when the camera takes a SET, not a span. |
schedule | { support: { readable: boolean; writable: boolean; reason?: string }; granularityMinutes: number; triggers: ("continuous" | "motion" | "person" | "vehicle" | "animal" | "lineCrossing" | "intrusion" | "loitering" | "alarm… | yes |
setSettings
mutation
Input
| Field | Type | Required | Description |
|---|---|---|---|
settings | { enabled?: boolean; overwriteWhenFull?: boolean; preRecordSec?: number; postRecordSec?: number; segmentMinutes?: number; windows?: ({ trigger: "continuous" | "motion" | "person" | "vehicle" | "animal" | "lineCrossing" |… | yes |
Output
Nothing.
Actions (offered in automations and on device cards)
| Action | Label | Sets |
|---|---|---|
recordingOnboard.on | On-camera recording on | |
recordingOnboard.off | On-camera recording off |
Runtime state
The state Dominevo keeps for each device with this capability, readable without calling the provider.
| Field | Type | Required | Description |
|---|---|---|---|
storage | { kind: "present"; volumes: ({ id: string; label?: string; status: "ok" | "unformatted" | "error" | "offline" | "unknown"; capacityMb: number | null; freeMb: number | null; writable?: boolean })[] } | { kind: "absent"; r… | yes | |
tracks | ({ id: string; enabled: boolean; isVideo: boolean; codec: string | null; resolution: string | null; overwriteWhenFull: boolean | null })[] | yes | |
primaryTrackId | string | null | yes | The track the write path targets — the enabled VIDEO one. Null when no track could be identified, which is itself a refusal reason. |
enabled | boolean | null | yes | Master "record to the card at all" switch. |
overwriteWhenFull | boolean | null | yes | |
preRecordSec | number | null | yes | |
postRecordSec | number | null | yes | |
segmentMinutes | number | null | yes | Length of one recorded file, in minutes. |
windows | ({ trigger: "continuous" | "motion" | "person" | "vehicle" | "animal" | "lineCrossing" | "intrusion" | "loitering" | "alarmInput"; day: number; startMinute: number; endMinute: number })[] | yes | The primary track's weekly windows, flattened. |
unreadableWindows | number | yes | How many windows the camera described that Dominevo could NOT read — an unrecognised trigger, an unparseable clock, a weekday it does not name. A dropped window is work the reader threw away, and a schedule that silently shows fewer rows than the camera holds is how an operator saves back a schedule shorter than the one they were looking at. Non-zero means the window list is INCOMPLETE and a write that replaces it would delete what was not shown — which is why a provider reporting a non-zero count also reports the schedule as not writable. |
recordingToNowhere | boolean | yes | The camera is scheduled to record and has NO usable storage. A first-class fact because it is the fleet's most common silent defect: measured 2026-09-22, 1441 and 3831 are both motion-recording to a card that is not there. Neither the schedule nor the storage read says anything wrong on its own; only the pair does. |
lastFetchedAt | number | yes |
recording
recording — a camera's recorded COVERAGE and PLAYBACK, from whichever source the operator picked.
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.