From 6817108a9509f117a1f07b5d0825e6b6fc2afd2c Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Sun, 8 Mar 2026 11:48:05 -0500 Subject: [PATCH] config field updates add skip_motion_threshold optional switch add fps back to detect restart required --- .../config-form/section-configs/detect.ts | 16 ++++++++++++++-- .../config-form/section-configs/motion.ts | 18 +++++++++++++++++- 2 files changed, 31 insertions(+), 3 deletions(-) diff --git a/web/src/components/config-form/section-configs/detect.ts b/web/src/components/config-form/section-configs/detect.ts index b0073d1d3..ecf5102b4 100644 --- a/web/src/components/config-form/section-configs/detect.ts +++ b/web/src/components/config-form/section-configs/detect.ts @@ -30,10 +30,22 @@ const detect: SectionConfigOverrides = { ], }, global: { - restartRequired: ["width", "height", "min_initialized", "max_disappeared"], + restartRequired: [ + "fps", + "width", + "height", + "min_initialized", + "max_disappeared", + ], }, camera: { - restartRequired: ["width", "height", "min_initialized", "max_disappeared"], + restartRequired: [ + "fps", + "width", + "height", + "min_initialized", + "max_disappeared", + ], }, }; diff --git a/web/src/components/config-form/section-configs/motion.ts b/web/src/components/config-form/section-configs/motion.ts index bab142d92..38755ee20 100644 --- a/web/src/components/config-form/section-configs/motion.ts +++ b/web/src/components/config-form/section-configs/motion.ts @@ -3,6 +3,12 @@ import type { SectionConfigOverrides } from "./types"; const motion: SectionConfigOverrides = { base: { sectionDocs: "/configuration/motion_detection", + fieldDocs: { + lightning_threshold: + "/configuration/motion_detection#lightning_threshold", + skip_motion_threshold: + "/configuration/motion_detection#skip_motion_on_large_scene_changes", + }, restartRequired: [], fieldOrder: [ "enabled", @@ -20,6 +26,16 @@ const motion: SectionConfigOverrides = { sensitivity: ["enabled", "threshold", "contour_area"], algorithm: ["improve_contrast", "delta_alpha", "frame_alpha"], }, + uiSchema: { + skip_motion_threshold: { + "ui:widget": "optionalField", + "ui:options": { + innerWidget: "range", + step: 0.05, + suppressMultiSchema: true, + }, + }, + }, hiddenFields: ["enabled_in_config", "mask", "raw_mask"], advancedFields: [ "lightning_threshold", @@ -58,7 +74,7 @@ const motion: SectionConfigOverrides = { "frame_alpha", "frame_height", ], - advancedFields: ["lightning_threshold"], + advancedFields: ["lightning_threshold", "skip_motion_threshold"], }, };