Dominevo
ReferenceDevice capabilities

motion-zones

Motion-zones share the same MaskShape vocabulary as privacy-mask — the on-camera motion-detection mask is a single grid region (a row-major boolean cell lattice the camera's onboard VMD evaluates).

Motion-zones share the same MaskShape vocabulary as privacy-mask — the on-camera motion-detection mask is a single grid region (a row-major boolean cell lattice the camera's onboard VMD evaluates). Composing it as a region keeps one drawing-plane model across all geometry caps.

A motion-zone region — exactly one boolean cell grid today.

At a glance

Capabilitymotion-zones
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/motion-zones.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
setZonemutationyesadmin

getOptions

query

Input

No fields besides deviceId.

Output

Per-camera availability — grid dims are fixed per camera model; the UI sizes its editor from grid.

FieldTypeRequiredDescription
maxRegionsnumberyes
supportedShapes("rect" | "polygon" | "grid" | "line")[]yes
grid{ width: number; height: number }yes
sensitivity{ min: number; max: number; step: number }yes

setZone

mutation

Input

FieldTypeRequiredDescription
patch{ enabled?: boolean; sensitivity?: number; regions?: ({ id: number; enabled: boolean; shape: MaskGridShapeSchema })[] }yes

Output

Nothing.

Runtime state

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

FieldTypeRequiredDescription
enabledbooleanyes
sensitivitynumberyes
regions({ id: number; enabled: boolean; shape: { kind: "grid"; gridWidth: number; gridHeight: number; cells: boolean[] } })[]yesGrid region(s). Today exactly one grid shape.
lastFetchedAtnumberyes