2026-02-27 09:55:36 -06:00
|
|
|
import type { SectionConfigOverrides } from "./types";
|
|
|
|
|
|
|
|
|
|
const motion: SectionConfigOverrides = {
|
|
|
|
|
base: {
|
|
|
|
|
sectionDocs: "/configuration/motion_detection",
|
2026-03-08 12:27:53 -05:00
|
|
|
fieldDocs: {
|
|
|
|
|
lightning_threshold:
|
|
|
|
|
"/configuration/motion_detection#lightning_threshold",
|
|
|
|
|
skip_motion_threshold:
|
|
|
|
|
"/configuration/motion_detection#skip_motion_on_large_scene_changes",
|
|
|
|
|
},
|
2026-02-27 09:55:36 -06:00
|
|
|
restartRequired: [],
|
|
|
|
|
fieldOrder: [
|
|
|
|
|
"enabled",
|
|
|
|
|
"threshold",
|
|
|
|
|
"lightning_threshold",
|
2026-03-05 18:20:03 -06:00
|
|
|
"skip_motion_threshold",
|
2026-02-27 09:55:36 -06:00
|
|
|
"improve_contrast",
|
|
|
|
|
"contour_area",
|
|
|
|
|
"delta_alpha",
|
|
|
|
|
"frame_alpha",
|
|
|
|
|
"frame_height",
|
|
|
|
|
"mqtt_off_delay",
|
|
|
|
|
],
|
|
|
|
|
fieldGroups: {
|
2026-03-20 08:24:34 -05:00
|
|
|
sensitivity: ["threshold", "contour_area"],
|
2026-02-27 09:55:36 -06:00
|
|
|
algorithm: ["improve_contrast", "delta_alpha", "frame_alpha"],
|
|
|
|
|
},
|
2026-03-08 12:27:53 -05:00
|
|
|
uiSchema: {
|
|
|
|
|
skip_motion_threshold: {
|
|
|
|
|
"ui:widget": "optionalField",
|
|
|
|
|
"ui:options": {
|
|
|
|
|
innerWidget: "range",
|
|
|
|
|
step: 0.05,
|
|
|
|
|
suppressMultiSchema: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
2026-02-27 09:55:36 -06:00
|
|
|
hiddenFields: ["enabled_in_config", "mask", "raw_mask"],
|
|
|
|
|
advancedFields: [
|
|
|
|
|
"lightning_threshold",
|
2026-03-05 18:20:03 -06:00
|
|
|
"skip_motion_threshold",
|
2026-02-27 09:55:36 -06:00
|
|
|
"delta_alpha",
|
|
|
|
|
"frame_alpha",
|
|
|
|
|
"frame_height",
|
|
|
|
|
"mqtt_off_delay",
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
global: {
|
2026-03-06 14:45:39 -06:00
|
|
|
restartRequired: ["frame_height"],
|
2026-02-27 09:55:36 -06:00
|
|
|
},
|
|
|
|
|
camera: {
|
|
|
|
|
restartRequired: ["frame_height"],
|
|
|
|
|
},
|
2026-03-04 10:07:34 -06:00
|
|
|
replay: {
|
|
|
|
|
restartRequired: [],
|
|
|
|
|
fieldOrder: [
|
|
|
|
|
"threshold",
|
|
|
|
|
"contour_area",
|
|
|
|
|
"lightning_threshold",
|
|
|
|
|
"improve_contrast",
|
|
|
|
|
],
|
|
|
|
|
fieldGroups: {
|
|
|
|
|
sensitivity: ["threshold", "contour_area"],
|
|
|
|
|
algorithm: ["improve_contrast"],
|
|
|
|
|
},
|
|
|
|
|
hiddenFields: [
|
|
|
|
|
"enabled",
|
|
|
|
|
"enabled_in_config",
|
|
|
|
|
"mask",
|
|
|
|
|
"raw_mask",
|
|
|
|
|
"mqtt_off_delay",
|
|
|
|
|
"delta_alpha",
|
|
|
|
|
"frame_alpha",
|
|
|
|
|
"frame_height",
|
|
|
|
|
],
|
2026-03-08 12:27:53 -05:00
|
|
|
advancedFields: ["lightning_threshold", "skip_motion_threshold"],
|
2026-03-04 10:07:34 -06:00
|
|
|
},
|
2026-02-27 09:55:36 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default motion;
|