Dominevo
ReferenceDevice capabilities

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

Capabilityrecording-onboard
Provided byThe device's own driver provides it: each device registers its own provider.
Active providers per deviceone
Device typescamera
Device settingsYes: its settings section on the device page is built from this capability's methods.
Sourcepackages/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.

MethodKindRequired of a providerAccess
getOptionsqueryyesdefault
setSettingsmutationyesadmin

getOptions

query

Input

No fields besides deviceId.

Output

FieldTypeRequiredDescription
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" } }noPreferred 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" } }noPreferred 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" } }noPreferred 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

FieldTypeRequiredDescription
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)

ActionLabelSets
recordingOnboard.onOn-camera recording on
recordingOnboard.offOn-camera recording off

Runtime state

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

FieldTypeRequiredDescription
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
primaryTrackIdstring | nullyesThe track the write path targets — the enabled VIDEO one. Null when no track could be identified, which is itself a refusal reason.
enabledboolean | nullyesMaster "record to the card at all" switch.
overwriteWhenFullboolean | nullyes
preRecordSecnumber | nullyes
postRecordSecnumber | nullyes
segmentMinutesnumber | nullyesLength of one recorded file, in minutes.
windows({ trigger: "continuous" | "motion" | "person" | "vehicle" | "animal" | "lineCrossing" | "intrusion" | "loitering" | "alarmInput"; day: number; startMinute: number; endMinute: number })[]yesThe primary track's weekly windows, flattened.
unreadableWindowsnumberyesHow 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.
recordingToNowherebooleanyesThe 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.
lastFetchedAtnumberyes