[Support]: PTZ: First command after idle period silently ignored, second command works #22684
Replies: 2 comments 34 replies
-
|
This behavior where the first PTZ command after an idle period is silently ignored is not something I can find documented as a known issue or expected behavior in the available sources. Your ONVIF configuration appears correct based on the reference configuration. (1) The required ONVIF parameters you have configured are: onvif:
host: 192.168.2.50
port: 8999
user: xyz
password: "abc"A few things to verify based on the documentation: 1. Camera compatibility: Frigate's PTZ functionality requires cameras capable of relative movement within the field of view as specified in the ONVIF spec ( 2. Firmware behavior: Some cameras have firmware issues with ONVIF. For example, some Hikvision PTZs are known to not update the 3. TLS setting: You may want to try adding Since the camera works correctly in ONVIF Device Manager but exhibits this behavior only in Frigate, and there are no errors in the logs, this appears to be a potential bug or timing issue specific to how Frigate handles ONVIF connections after idle periods. This would be appropriate to report on the Frigate GitHub repository for further investigation by the development team. 📚 Sources: Have another question? Just tag @inkeep. |
Beta Was this translation helpful? Give feedback.
-
|
This is almost certainly a camera firmware quirk rather than a Frigate issue. Here's why:
You could try setting up an MQTT automation that sends a periodic We've made it a policy to not implement workarounds or hacks for buggy cameras in Frigate, and adding retry/wakeup logic for one off-brand camera's quirk would add complexity and latency for all users. This is best handled at the camera firmware level or via external keepalive automation. Hopefully the automation above can help your situation. Beyond that, I'd suggest seeing if your camera manufacturer has a firmware upgrade available. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Checklist
Describe the problem you are having
Camera: Jidetech P1-4X-5MP PTZ Dome, connected via ONVIF/PoE
Host OS: Ubuntu 24.04, Docker
Deployment: docker-compose
After any idle period (even just a few seconds without PTZ activity),
the first PTZ command is silently ignored. The second command works
reliably. This happens consistently and is reproducible.
There are no errors or warnings in the Frigate log related to ONVIF
or PTZ when this occurs.
The same camera was tested with ONVIF Device Manager (ODM) on Windows.
Even after long idle periods, the first PTZ command in ODM is
executed immediately and reliably every time. Only Frigate exhibits
this behavior.
Steps to reproduce
...
Version
0.17.1-416a9b7
In which browser(s) are you experiencing the issue with?
No response
Frigate config file
docker-compose file or Docker CLI command
Relevant Frigate log output
Relevant go2rtc log output
Operating system
Other Linux
Install method
Docker Compose
Network connection
Wired
Camera make and model
Jidetech P1-4X-5MP PTZ Dome
Screenshots of the Frigate UI's System metrics pages
Any other information that may be helpful
No response
Beta Was this translation helpful? Give feedback.
All reactions