track where each camera's detect resolution came from

The health tab's stream check told users to set the detect resolution whenever a probe returned no size, even when they had already set it, and a camera running on the 1280x720 fallback after a failed startup probe was never flagged unless the stream check was run by hand. The config now records whether the resolution came from the config, a startup probe, or the fallback, and /api/config exposes it per camera. The stream check skips the probe warning when the resolution is set, a camera on the fallback gets a detect settings warning that also shows on the health tab, and cloning detect from a fallback camera no longer copies the fallback size.
This commit is contained in:
Josh Hawkins
2026-11-28 18:20:38 -06:00
parent bd90051a15
commit 63807d753c
13 changed files with 209 additions and 4 deletions
+5 -2
View File
@@ -52,22 +52,25 @@ export function deepMerge<T extends Record<string, unknown>>(
export const BASE_CONFIG = {
...configSnapshot,
version: "0.15.0-test",
// injected by the /config endpoint rather than the Pydantic model, so it
// is absent from the snapshot
// injected by the /config endpoint rather than the Pydantic model, so they
// are absent from the snapshot, as is each camera's detect_resolution_source
plus: { enabled: false },
cameras: {
...configSnapshot.cameras,
front_door: {
...configSnapshot.cameras.front_door,
friendly_name: "Front Door",
detect_resolution_source: "config",
},
backyard: {
...configSnapshot.cameras.backyard,
friendly_name: "Backyard",
detect_resolution_source: "config",
},
garage: {
...configSnapshot.cameras.garage,
friendly_name: "Garage",
detect_resolution_source: "config",
},
},
};