Frigate icon

Frigate

Control Frigate over its real-time /ws API

Set Detect

AI-generated

Summary

Turns object detection ON or OFF for a Frigate camera by publishing to its /detect/set WebSocket topic. Optionally waits for the camera’s /detect/state read-back and reports whether it matches the requested value.

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 a matching /detect/state read-back after publishing. Defaults to false.
  • Confirmation Timeout (Ms) — When confirmation is enabled, how long to wait for the read-back, from 0 to 600000 ms; defaults to 5000 ms.

Output shape

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

Publishes the requested value to <camera>/detect/set. Confirmation listens for the next matching state message; if none arrives before the timeout, received and confirmed are false and stateValue is null. Errors stop execution unless Continue On Fail is enabled, in which case that item contains an error field.

Links

Discussion