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
| Capability | motion-zones |
| 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/motion-zones.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 |
setZone | mutation | yes | admin |
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.
| Field | Type | Required | Description |
|---|---|---|---|
maxRegions | number | yes | |
supportedShapes | ("rect" | "polygon" | "grid" | "line")[] | yes | |
grid | { width: number; height: number } | yes | |
sensitivity | { min: number; max: number; step: number } | yes |
setZone
mutation
Input
| Field | Type | Required | Description |
|---|---|---|---|
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.
| Field | Type | Required | Description |
|---|---|---|---|
enabled | boolean | yes | |
sensitivity | number | yes | |
regions | ({ id: number; enabled: boolean; shape: { kind: "grid"; gridWidth: number; gridHeight: number; cells: boolean[] } })[] | yes | Grid region(s). Today exactly one grid shape. |
lastFetchedAt | number | yes |