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:
+12
-2
@@ -338,12 +338,13 @@
|
||||
"default": false
|
||||
},
|
||||
"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",
|
||||
"enum": [
|
||||
"api",
|
||||
"continuous",
|
||||
"detect"
|
||||
"detect",
|
||||
"onvif"
|
||||
],
|
||||
"default": "api"
|
||||
},
|
||||
@@ -352,6 +353,15 @@
|
||||
"type": "number",
|
||||
"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": {
|
||||
"description": "Include Speaker service for 2-way audio (talk through the camera). Only enable if your camera has a physical speaker.",
|
||||
"type": "boolean",
|
||||
|
||||
Reference in New Issue
Block a user