Dominevo
ReferenceDevice capabilities

navigation

navigation — a device-scoped capability that natively expresses the FULL navigation / action surface of a robot that DRIVES ITSELF and carries an on-board camera (the Dreame robot-vacuum camera is the first provider).

navigation — a device-scoped capability that natively expresses the FULL navigation / action surface of a robot that DRIVES ITSELF and carries an on-board camera (the Dreame robot-vacuum camera is the first provider).

Why a NEW cap rather than overloading ptz:

  • ptz moves a gimbal on a fixed camera (pan/tilt/zoom of the lens). A robot vacuum has no gimbal — the whole chassis drives, turns and spins. The two are different physical models: PTZ is absolute-position + presets, navigation is momentary drive nudges + discrete robot ACTIONS (dock / spot-clean / follow-pet / go-to-point / …).
  • This cap is the SOURCE OF TRUTH. Two consumers adapt from it rather than the reverse:
  • a native Dominevo navigation panel (data-driven from listActions / getOptions), and
  • the PTZ surface — a thin adapter mimics ptz from navigation so a robot camera shows up in the existing PTZ control path without every PTZ provider learning about robots. The mapping lives in the adapter, not here (see the addon design note): ptz.continuousMove({pan,tilt}) → navigation.move({pan,tilt}) ptz.stop() → navigation.stop() ptz.goHome() → navigation.runAction('goHome') ptz.getPresets() → navigation.listActions() (id→preset) ptz.goToPreset(id) → navigation.runAction(id)

At a glance

Capabilitynavigation
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/navigation.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
movemutationyesdefault
stopmutationyesdefault
goToPointmutationyesdefault
listActionsqueryyesdefault
runActionmutationyesdefault
playSoundmutationyesdefault
setLightOnmutationyesdefault
setLightModemutationyesdefault
setLightLevelmutationyesdefault
getFeaturesqueryyesdefault

move

mutation

Momentary drive nudge (the robot moves). protected — mirrors ptz.continuousMove so the Viewer navigation panel (and the PTZ-mimic path) works for any authenticated user, not admin-only. The UI sends these at ~1 Hz while a control is held; the provider forwards each one to a single drive write WITHOUT debouncing.

Input

FieldTypeRequiredDescription
pannumberno
tiltnumberno
speednumberno

Output

Nothing.

stop

mutation

Halt all motion immediately (zero drive vector).

Input

No fields besides deviceId.

Output

Nothing.

Actions (offered in automations and on device cards)

ActionLabelSets
navigation.stopStop

goToPoint

mutation

Send the robot to a point on its live map.

Input

FieldTypeRequiredDescription
xnumberyes
ynumberyes

Output

Nothing.

listActions

query

Enumerate the discrete controls THIS device supports (data-driven UI + PTZ mimic). Camera-probed subset of {

Input

No fields besides deviceId.

Output

({ id: string; kind: "action" | "sound"; label: string; icon: string; soundId?: number; enabled: boolean })[]

runAction

mutation

Run one discrete action (a kind:'action' dictionary entry). Invalid / unsupported action ids are rejected by the provider.

Input

FieldTypeRequiredDescription
actionId"goHome" | "locate" | "spotClean" | "findPet" | "personFollow" | "stop" | "startClean" | "pauseClean" | "dockWash" | "autoEmpty" | "flashOn" | "flashOff"yes

Output

Nothing.

Actions (offered in automations and on device cards)

ActionLabelSets
navigation.runActionRun a routine

playSound

mutation

Play a sound by its wire id (the soundId of a kind:'sound' entry).

Input

FieldTypeRequiredDescription
soundIdnumberyes

Output

Nothing.

Actions (offered in automations and on device cards)

ActionLabelSets
navigation.playSoundPlay sound

setLightOn

mutation

Turn the on-camera fill light on / off (the OpenFullLight control — works anytime, no active stream required).

Input

FieldTypeRequiredDescription
onbooleanyes

Output

Nothing.

Actions (offered in automations and on device cards)

ActionLabelSets
navigation.lightOnLight on
navigation.lightOffLight off

setLightMode

mutation

Set the fill-light mode (auto vs manual). manual optionally carries the initial level. The auto/manual + level control is a CAMERA-service action that generally needs an active camera stream/monitor session — the UI shows the manual level slider ONLY when mode === 'manual'.

Input

FieldTypeRequiredDescription
mode"auto" | "manual"yes
levelnumberno

Output

Nothing.

Actions (offered in automations and on device cards)

ActionLabelSets
navigation.lightAutoLight automatic

setLightLevel

mutation

Set the MANUAL fill-light level (40..100). Implies manual mode.

Input

FieldTypeRequiredDescription
levelnumberyes

Output

Nothing.

Actions (offered in automations and on device cards)

ActionLabelSets
navigation.lightLevelSet light level

getFeatures

query

Per-device FEATURE-FLAG report for the general primitives — drives which controls the UI shows (the per-entry flags for the dictionary come back on listActions).

Input

No fields besides deviceId.

Output

── Per-device feature flags (getFeatures) ──────────────────────────

Per-device FEATURE-FLAG report for the general (non-dictionary) primitives. The cap reports which are enabled so the UI / PTZ render only the controls that are turned on for THIS device. Data-driven: the provider derives these from config + probe, never hardcoded in the UI. The per-DICTIONARY-entry flags live on { that are not dictionary entries.

  • move / stop — the momentary drive joystick.
  • goToPoint — send-to-map-coordinate. Ships OFF on Dreame until the map-coordinate plumbing is wired.
  • runAction — the discrete action buttons (dictionary kind:'action').
  • playSound — the sound buttons (dictionary kind:'sound').
  • light — the on/off fill-light toggle (works anytime).
  • lightMode — the auto/manual selector + manual level slider (a camera-service control; needs an active stream).
FieldTypeRequiredDescription
movebooleanyes
stopbooleanyes
goToPointbooleanyes
runActionbooleanyes
playSoundbooleanyes
lightbooleanyes
lightModebooleanyes

Runtime state

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

Runtime-state slice mirrored by the kernel. The navigation panel watches it for live mode / follow / flash changes.

FieldTypeRequiredDescription
mode"idle" | "cleaning" | "spot" | "following" | "goto" | "returning" | "paused" | "unknown"yes
followingbooleanyes
flashbooleanyes
lightMode"auto" | "manual"yes
lightLevelnumberyes
lastChangedAtnumberyes
lastFetchedAtnumberyes

Status

FieldTypeRequiredDescription
mode"idle" | "cleaning" | "spot" | "following" | "goto" | "returning" | "paused" | "unknown"yes
followingbooleanyes
flashbooleanyes
lightMode"auto" | "manual"yes
lightLevelnumberyes
lastChangedAtnumberyesMs epoch when the slice was last updated.

Events

onStatusChanged

FieldTypeRequiredDescription
deviceIdnumberyes
status{ mode: "idle" | "cleaning" | "spot" | "following" | "goto" | "returning" | "paused" | "unknown"; following: boolean; flash: boolean; lightMode: "auto" | "manual"; lightLevel: number; lastChangedAt: number }yes