From e2e593ea3a1781564cb443aad4c5f53936e8602c Mon Sep 17 00:00:00 2001 From: Sergey Krashevich Date: Tue, 10 Mar 2026 22:28:29 +0300 Subject: [PATCH] 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 --- www/schema.json | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/www/schema.json b/www/schema.json index 61c513a5..013712bc 100644 --- a/www/schema.json +++ b/www/schema.json @@ -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",