Repository navigation
Surface Protect 7.4 Basic Understanding setting state and update docs (#87) - #90
Merged
Merged
Conversation
…#87) UniFi Protect 7.4 folds Object Indexing, AI Summary, and Speech to Text into the single Settings -> Intelligence -> Basic Understanding card ("Basic Object Recognition"), and gates Deep Understanding to internal Ubiquiti accounts. On a fresh adoption, Basic Understanding renders as On (All) because Object Indexing defaults to enabled while AI Summary and Speech to Text still default to disabled underneath, silently blocking Protect from dispatching speechToText jobs. - Keep Keystone in Basic Understanding (supportDeepMode=false, supportVlm=false, aiMode="basic", legacy dispatch) and reject unsupported non-basic modelMode requests cleanly without clobbering stored changeAiInferAgentSettings feature toggles. - Track Protect-reported enableSTT and recognizeKeyFrames postVLM booleans in ControlService, log actionable Protect 7.4+ instructions on transition to disabled, and expose sanitized protectAiSettings / stt.protectEnabled / vision.protectAiSummary in /api/status. - Update the status dashboard to mark Speech to text as "Off in Protect" (with setup guidance) when Protect reports enableSTT=false, and show a neutral chip on Vision captions when Protect sends postVLM=false. - Update README, Home Assistant docs, Unraid template, and setup wizards with Protect 7.4 Basic Understanding instructions and the NeXT AI Summary event-player toggle.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fcae825055
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
# Conflicts: # src/keystone/app.py # src/keystone/control.py # src/keystone/ui/index.html # tests/test_setup_scripts.py # web/src/lib/derive.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #87.
Root Cause
Verified directly against UniFi Protect 7.4.114:
Settings → Intelligence → Basic Understanding("Basic Object Recognition"). There are no longer separate top-level cards or toggles for AI Summary or Speech-to-Text.recognizeAnythingSettingsdefaults toenabled: true, whileaiSummarySettingsandspeechToTextSettingsdefault toenabled: false(all three withallCameras: true, cameras: []). Because the Basic Understanding card renders On whenever any of its three bundled policies is enabled and renders All (hiding the per-camera/per-feature icon matrix) whenever all three have empty camera lists, a fresh Protect 7.4 install shows Basic Understanding: On (All) while AI Summary and Speech to Text remain silently off underneath — preventing Protect from dispatchingspeechToTexttasks and causing it to sendpostVLM: falseonrecognizeKeyFrames.supportDeepMode: true/supportVlm: true/aiSched > 0:@ui.com/@ubnt.com) in both UI and backend (enforceDeepUnderstandingInternalOnly).recognizeKeyFrames/ CLIP Find Anything with an experimental dedup/describe/embed pipeline (E5 embeddings + BM25/rerank extensions).aiSched >= 3opts out of legacy UCP4 dispatch into Protect's newer firmware credit-scheduler protocol.recognizeAnything(recognizeKeyFrames) callback and stored inramDetections."ramDescription"(notsmartDetectObjectGroups.description). In Protect's event player, the summary drawer starts collapsed until the user clicks the NeXT AI Summary sparkle button in the toolbar.Changes
src/keystone/control.py&src/keystone/app.pychangeAiInferAgentSettingspayloads instead of overwriting storedenable*flags if Protect sends{"modelMode": "basic"}, and reject unsupported non-basicmodelModevalues with error code95.enableSTTandrecognizeKeyFramespostVLMbooleans, log actionable Protect 7.4+ instructions once per disabled transition, and expose sanitizedcontrol.protectAiSettings,stt.protectEnabled, andvision.protectAiSummaryin/api/status.supportDeepMode,supportVlm,aiMode, andaiSchedintentionally stay in Basic Understanding / legacy mode.web/+ rebuiltsrc/keystone/ui/index.html)warnstate + amber guidance notice) on the Speech to text service card when Keystone has STT enabled & ready while Protect reportsenableSTT=false.Protect AI Summary offchip (with tooltip) on Vision captions when Protect sendspostVLM=false, without falsely degrading its healthy status since Keystone still uploads descriptions.README.md,home-assistant/keystone/DOCS.md,scripts/setup-compose.py,scripts/install.sh,unraid/keystone.xml, andconfig.example.yamlwith Protect 7.4 Basic Understanding steps and the NeXT AI Summary player toggle.tests/test_control.pyand frontend tests inweb/src/lib/derive.test.ts.Verification
ruff check src tests— passedpytest -q— 949 passed, 27 skippedcd web && npm run typecheck && npm run lint && npm test && npm run build— passed (40/40 tests, rebuiltsrc/keystone/ui/index.html)