feat(schema): add new motion detection options and properties - extend motion detection modes to include 'onvif' for event subscription - introduce 'motion_hold_time' to manage active motion duration - add 'onvif_url' for specifying ONVIF device URL for detection

This commit is contained in:
Sergey Krashevich
2026-03-10 22:28:29 +03:00
parent 8a21809f18
commit e2e593ea3a
+12 -2
View File
@@ -338,12 +338,13 @@
"default": false "default": false
}, },
"motion": { "motion": {
"description": "Motion detection mode for HKSV: `api` (triggered via HTTP API), `continuous` (always report motion), or `detect` (automatic detection based on P-frame size analysis)", "description": "Motion detection mode for HKSV: `api` (triggered via HTTP API), `continuous` (always report motion), `detect` (automatic detection based on P-frame size analysis), or `onvif` (use ONVIF event subscription from the camera)",
"type": "string", "type": "string",
"enum": [ "enum": [
"api", "api",
"continuous", "continuous",
"detect" "detect",
"onvif"
], ],
"default": "api" "default": "api"
}, },
@@ -352,6 +353,15 @@
"type": "number", "type": "number",
"default": 2.0 "default": 2.0
}, },
"motion_hold_time": {
"description": "Duration in seconds to keep motion active after the last trigger. Used with `onvif` mode to ensure Home Hub has enough time to start recording.",
"type": "number",
"default": 30
},
"onvif_url": {
"description": "ONVIF device URL for motion detection. If not set, auto-detected from `onvif://` stream sources.",
"type": "string"
},
"speaker": { "speaker": {
"description": "Include Speaker service for 2-way audio (talk through the camera). Only enable if your camera has a physical speaker.", "description": "Include Speaker service for 2-way audio (talk through the camera). Only enable if your camera has a physical speaker.",
"type": "boolean", "type": "boolean",