Frigate icon

Frigate

Control Frigate over its real-time /ws API

PTZ Command

AI-generated

Summary

Send a PTZ command to the specified Frigate camera over its WebSocket API. Choose a movement, zoom, focus, stop, or initialization command; for a preset or relative move, provide the exact payload in the custom value field.

Inputs

  • Camera (required) — Camera name as configured in Frigate.
  • Command (required) — Select Move Up/Down/Left/Right, Zoom In/Out, Stop, Focus In/Out, Init, Preset, or Relative Move.
  • Preset / Relative Value — Required when Command is Preset or Relative Move. Sent as the payload exactly as entered, for example preset_door or MOVE_RELATIVE_0.1_-0.2.

Output shape

A single n8n item per input item, with a JSON object.

The JSON includes operation, topic, payload, and published: true. The topic is <camera>/ptz; the payload is the selected command, or the custom value for Preset/Relative Move. The node sends the command but does not wait for a state confirmation.

Links

Discussion