Getting Started Cameras & Video Detection & Recording Automation & Events Actions Integration & Connectivity Network & Discovery AI & Remote Control MQTT Modbus ZeroMQ System & Administration Use Cases Troubleshooting About & Legal
Onvif actions

PTZ continuous movement

Send a continuous PTZ movement command to an ONVIF camera with configurable pan, tilt, and zoom speeds. The camera moves until the automatic stop timeout fires. Use for manual nudge buttons, directional scan steps, and zoom controls in operator dashboards or automation rules.

Directional control without saving a preset

PTZ sends a continuous movement command on up to three axes simultaneously: pan (left/right), tilt (up/down), and zoom (in/out). Unlike Go to Viewpoint, this action does not recall a saved position — it moves the camera by speed and duration, making it suitable for small corrections, manual scan steps, and zoom controls.

Repeated action calls before the timeout extend the stop time, so this action works naturally as a "hold to move" button — the camera moves while the button is pressed and stops automatically when the button is released and the timeout fires.

Prerequisite: The referenced ONVIF Camera must support PTZ. The action checks PTZ support at startup and will not send commands to non-PTZ devices.

Create a movement command

01

Confirm PTZ support

Start the ONVIF Camera component and verify that it reaches the RUN state and reports PTZ capabilities. If the camera does not support PTZ, this action cannot be used with it.

02

Create the action

Click + next to PTZ under the Actions sub-menu. The configuration panel opens for the new action instance.

03

Set axis speeds

Use Speed X for pan, Speed Y for tilt, and Speed Z for zoom. Set only the axes needed for each button — leave unused axes at 0. Positive and negative values move in opposite directions on each axis.

04

Tune stop timeout

Set Stop timeout to match the intended use. Short timeouts (100–300 ms) work for nudge buttons. Longer timeouts (500–1000 ms) allow the camera to travel further per trigger.

05

Test and calibrate speed

Start with a low speed (0.1–0.3) and increase as needed. Exact speed behavior varies by camera model and firmware.

Configuration parameters

ParameterRequiredDescriptionDefault
Restart on failure
Yes Restart behavior after an error:
  • Stop on failure — not restarted until triggered manually.
  • Immediately — restarts right after an error.
  • 10 sec — restarts after a 10-second delay.
  • 30 sec — restarts after a 30-second delay.
  • 1 min — restarts after a 1-minute delay.
10 sec
Title
Yes Movement command label used in the UI and action lists. Set a descriptive name such as Pan left, Tilt up, or Zoom in. Clear titles make action buttons and rule chains easier to operate. —
Device
Yes The PTZ-capable ONVIF camera to control. The action checks PTZ support before sending the continuous movement command. Select the target ONVIF Camera. —
Speed X
Yes Pan speed on the horizontal axis. Range: -1 to 1. Positive values pan in one direction, negative values in the opposite. Set to 0 to keep pan stationary. Combine with Speed Y for diagonal movement. 0
Speed Y
Yes Tilt speed on the vertical axis. Range: -1 to 1. Positive values tilt in one direction, negative values in the opposite. Set to 0 to keep tilt stationary. 0
Speed Z
Yes Zoom speed on the optical axis. Range: -1 to 1. Positive values zoom in, negative values zoom out. Set to 0 to keep zoom stationary. Combine with Speed X and Speed Y for simultaneous pan/tilt/zoom. 0
Stop timeout
Yes Auto-stop timeout in milliseconds. The action sends a stop command this many milliseconds after the last trigger call. Keep short for nudge buttons. Increase when the camera should rotate longer per trigger. Range: 50–1000 ms. Repeated trigger calls before this timeout extend the movement window. 300

Recommended profiles

01

Precise nudge button

One axis at Speed X/Y = 0.1–0.3, Stop timeout = 100–300 ms. Suitable for fine-tuning camera angle from an operator dashboard.

02

Fast manual step

One axis at Speed X/Y = 0.5–1.0, Stop timeout = 200–500 ms. Use when the camera needs to travel across a wide scene quickly.

03

Short scan action

Pan axis at 0.3–0.7, optional tilt/zoom axis, Stop timeout = 500–1000 ms. Triggered once to sweep an area and then stop. Combine with a Go to Viewpoint action to return to the start position.

04

Zoom control

Speed Z = 0.2–0.6, Speed X and Speed Y = 0, Stop timeout = 100–500 ms. Use for dedicated zoom-in and zoom-out buttons with configurable intensity.

Related pages

Related components and pages