Files
go2rtc/pkg/onvif
Sergey Krashevich 8a21809f18 feat(homekit): add ONVIF motion detection support
- implement ONVIF motion watcher to handle motion events
- add configuration options for motion hold time and ONVIF URL
- remap motion mode from "onvif" to "api" for compatibility
- log ONVIF motion watcher activity for better debugging

feat(onvif): implement event subscription for motion detection
- create PullPoint subscription to receive motion events
- implement methods for pulling messages and renewing subscriptions
- handle event requests and responses specific to motion detection

test(onvif): add unit tests for motion event parsing and subscription
- create tests for parsing various motion event XML responses
- verify correct handling of multiple notifications and edge cases
- test resolving event addresses for ONVIF clients

fix(hksv): improve motion detection logging
- log warnings when accessory or character not found during motion detection
- log number of listeners notified during motion state changes

feat(hap): add listener count method
- introduce method to retrieve the number of listeners for a character

feat(onvif): enhance ONVIF client with event URL handling
- extract event URL from ONVIF device response for subscription management
2026-03-09 13:06:57 +03:00
..
2025-01-03 13:19:40 +03:00

Profiles

  • Profile A - For access control configuration
  • Profile C - For door control and event management
  • Profile S - For basic video streaming
    • Video streaming and configuration
  • Profile T - For advanced video streaming
    • H.264 / H.265 video compression
    • Imaging settings
    • Motion alarm and tampering events
    • Metadata streaming
    • Bi-directional audio

Services

https://www.onvif.org/profiles/specifications/

TMP

Dahua Reolink TP-Link
GetCapabilities no auth no auth no auth
GetServices no auth no auth no auth
GetServiceCapabilities no auth no auth auth
GetSystemDateAndTime no auth no auth no auth
GetNetworkInterfaces auth auth auth
GetDeviceInformation auth auth auth
GetProfiles auth auth auth
GetScopes auth auth auth
  • Dahua - onvif://192.168.10.90:80
  • Reolink - onvif://192.168.10.92:8000
  • TP-Link - onvif://192.168.10.91:2020/onvif/device_service