Frigate icon

Frigate

Control Frigate over its real-time /ws API

Set Motion Threshold

AI-generated

Summary

Sets a Frigate camera’s motion sensitivity by publishing the integer threshold to its /motion_threshold/set topic.

Inputs

  • Camera (required) — Camera name as configured in Frigate.
  • Threshold (required) — Motion sensitivity threshold, an integer from 0 to 255; defaults to 30.
  • Await State Confirmation — When enabled, waits for a matching value on the camera’s /motion_threshold/state topic. Defaults to off.
  • Confirmation Timeout (Ms) — When confirmation is enabled, maximum wait in milliseconds, from 0 to 600000; defaults to 5000.

Output shape

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

The threshold is published as a string. If confirmation times out, received and confirmed are false and stateValue is null; errors stop execution unless Continue On Fail is enabled.

Links

Discussion