Frigate icon

Frigate

Control Frigate over its real-time /ws API

Set Motion Detection

AI-generated

Summary

Enable or disable motion detection for a Frigate camera by publishing an ON or OFF value to its motion setting. Optionally wait for Frigate to publish the matching state value as confirmation.

Inputs

  • Camera (required) — Camera name as configured in Frigate.
  • Value (required) — Choose ON or OFF; defaults to ON.
  • Await State Confirmation — When enabled, wait for Frigate's motion state read-back after publishing; defaults to false.
  • Confirmation Timeout (Ms) — Maximum time to wait for the state read-back, from 0 to 600000 ms; shown when confirmation is enabled and defaults to 5000 ms.

Output shape

A single n8n item per input item, with operation, topic, payload, and published fields; if confirmation is enabled, also includes received, confirmed, stateTopic, and stateValue.

Publishes to /motion/set with the selected ON/OFF payload. Confirmation listens for /motion/state; if no matching message arrives before timeout, received and confirmed are false and stateValue is null. Errors stop the operation unless Continue On Fail is enabled.

Links

Discussion