Dominevo
ReferenceDevice capabilities

motion-trigger

Motion-trigger toggle for accessory devices.

Motion-trigger toggle for accessory devices.

"Motion trigger" means: when the parent camera detects motion, the accessory activates automatically. The cap exposes a single boolean — enabled — that drivers map to the vendor-specific firmware action (Reolink: setSirenOnMotion, setFloodlightOnMotion; ONVIF relay: schedule binding; …).

The accessory still has its own switch cap for direct on/off; this cap is independent. Toggling motion-trigger on does NOT necessarily toggle the switch on — it just instructs the firmware to flip the switch when motion fires.

Driver-specific knobs (motion duration window, brightness while triggered, schedule windows) live in the device's getSettingsUISchema() instead of bloating this cap — same principle as switch and brightness keeping their surface minimal.

At a glance

Capabilitymotion-trigger
Provided byThe device's own driver provides it: each device registers its own provider.
Active providers per deviceone
Device typeslight, siren, switch
Sourcepackages/types/src/capabilities/motion-trigger.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
setMotionTriggermutationyesprotected

setMotionTrigger

mutation

Input

FieldTypeRequiredDescription
enabledbooleanyes

Output

Nothing.

Actions (offered in automations and on device cards)

ActionLabelSets
motionTrigger.onMotion trigger onenabled = true
motionTrigger.offMotion trigger offenabled = false

Runtime state

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

FieldTypeRequiredDescription
enabledbooleanyes
lastChangedAtnumberyes
lastFetchedAtnumberyesMs epoch of the last successful camera fetch (0 = never).

Status

FieldTypeRequiredDescription
enabledbooleanyes
lastChangedAtnumberyesMs epoch of the last operator-driven change.

Events

onMotionTriggerChanged

FieldTypeRequiredDescription
deviceIdnumberyes
enabledbooleanyes
lastChangedAtnumberyes