Repository navigation
Description
What happened?
Summary
On UniFi Protect 7.4.114, the README's setup steps for event descriptions and speech transcripts can't be completed: Settings → Intelligence no longer shows AI Summary or Speech-to-Text
toggles. Only Legacy Camera Enhancement and Basic Understanding ("Basic Object Recognition") appear.
Because those settings stay disabled on the NVR, Protect only ever sends Keystone recognizeAnything tasks. Event descriptions never show up in Protect (captions are generated but only surface as tags),
and stt.enabled: true has no effect.
Environment
- Keystone: v0.1.5 (Docker Compose,
ghcr.io/seearms/keystone:0.1.5+keystone-postgres:0.1.5), also seen on v0.1.2 - UniFi Protect: 7.4.114 on a UNVR (UniFi OS 6.x,
unifi-core6.1.36) - Keystone adopted as the AI Key (not the AI Port); same VLAN as the console
- Config:
vision.provider: anthropic(working; captions are generated),stt.enabled: true,faces.enabled: true,lpr.enabled: true,enhance.enabled: true
What I see
Settings → Intelligence → Intelligence Services shows only:
- Legacy Camera Enhancement (on, all cameras)
- Basic Understanding / "Basic Object Recognition" (on, all cameras)
There is no AI Summary and no Speech-to-Text toggle. The diagram on that page shows "Basic Understanding → Precise Event Descriptions", but nothing exposes the summary setting.
Evidence
1. The NVR has the settings, but both are disabled (nvrs.aiFeatureSettings, read from Protect's database):
"aiSummarySettings": { "enabled": false, "allCameras": true, "cameras": [] },
"speechToTextSettings": { "enabled": false, "allCameras": true, "cameras": [] },
"faceEnhanceSettings": { "enabled": true, ... },
"faceRecognitionSettings": { "enabled": true, ... },
"licensePlateRecognitionSettings": { "enabled": true, ... },
"recognizeAnythingSettings": { "enabled": true, ... },
"reverificationSettings": { "enabled": true, ... }2. Feature flags Protect stores for the Keystone AI Key (aiprocessors.featureFlags, trimmed):
"aiMode": "basic",
"supportVlm": false,
"supportDeepMode": false,
"supportAiSummary": { "enabled": true, "version": "v1" },
"supportStt": { "enabled": true, "version": "v1" },
"supportTts": { "enabled": true, "version": "v1" },
"describeConfigHash": "",
"aiSched": 03. Protect only dispatches recognizeAnything tasks. Over 6 hours, aiprocessorTasks contains only recognizeAnything | done | 33: no summary/describe or speech-to-text tasks.
smartDetectObjectGroups.description stays empty. Keystone's own log shows captions being generated (Captioned event=... 'Person in light jacket ... walks past the front door ...' tags=[...]), but only
the tags reach Protect.
4. What Protect 7.4.114's backend expects (from the minified /usr/share/unifi-protect/app/service.js):
- A Basic vs Deep "Understanding" model:
nvr.aiFeatureSettings.deepUnderstandingSettings,PolicyType.AI_SUMMARY/SPEECH_TO_TEXT/DEEP_UNDERSTANDING. supportVlmis documented as "Deprecated legacy alias for supportDeepMode … getInfo keeps the two in sync", andsupportDeepModeas "Whether the aiprocessor supports deep understanding (the
dedup/describe/embed pipeline). Static capability, true in both basic and deep modes".isDeepModeCapable = e => featureFlags.supportDeepMode === true || featureFlags.supportVlm === trueaiModeis "Global AI mode the device has persisted ('basic' | 'deep') — set viachangeAiInferAgentSettings {modelMode}", with reconcile logic (aiModeDrifted,aiModeSyncQueue) and a
describe-prompt sync verified viadescribeConfigHash("sha1 of the /describe config the device has persisted (echoed configHash)").- New fields
aiSched("0 = unsupported, 2 = VLM/reid agents, 3 = all pipelines") andreidEmbedModel.
My reading (not confirmed against the web UI bundle): on 7.4.114 the description/summary path is surfaced through Deep Understanding, which is only offered for AI processors that report
supportDeepMode/supportVlm: true. Because Keystone reports false / aiMode: basic, Protect shows only Basic Understanding and never enables summaries or STT.
Expected
With a vision backend configured (and stt.enabled: true), the AI Summary / event-description and Speech-to-Text options should be available in Protect 7.4.114, so Protect dispatches summary and STT tasks
to Keystone, as described in the README for 7.3.74 / 7.4.112.
Possible fix
- When
vision.provideris configured, reportsupportDeepMode: true(andsupportVlm: truefor older consoles) ingetInfofeature flags. - Handle
changeAiInferAgentSettings {modelMode: "deep"}, persist and echoaiMode. - Support the
/describeprompt-config sync (describeConfigHash). - Possibly report a non-zero
aiSchedlevel. - Update the README's Protect setting names for 7.4.114 ("Basic Understanding" / "Deep Understanding" instead of "Basic Object Recognition" / "AI Summary").
Keystone version / commit
v0.1.5
UniFi Protect, UniFi OS, and console
7.4.114 (although it's probably in 7.4.112 as well)
Installation method
Docker Compose
Relevant config (sanitized)
Keystone DEBUG logs
N/A
Additional context
No response
Activity
Surface Protect 7.4 Basic Understanding setting state and update docs (…
seeARMS commentedon Dec 4, 2026
Thanks for the detailed database dump and Protect 7.4.114 trace — that made pinpointing this much faster.
Root cause in UniFi Protect 7.4.114
Your
aiprocessors.featureFlagsdump confirms Keystone already advertisessupportAiSummary,supportStt,supportTts, andsupportRecognizeAnythingproperly. What changed is how Protect 7.4 presents those settings:recognizeAnythingSettings), AI Summary (aiSummarySettings), and Speech to Text (speechToTextSettings) into a single Settings → Intelligence → Basic Understanding ("Basic Object Recognition") card. There are no longer separate top-level AI Summary or Speech-to-Text toggles.recognizeAnythingSettings.enabled = true, whileaiSummarySettings.enabled = falseandspeechToTextSettings.enabled = false(all withallCameras: true, cameras: []). Because the Basic Understanding card displays On whenever any of the three bundled features is enabled — and displays All whenever none has a per-camera list (hiding the per-camera/per-feature icon matrix) — Protect makes it look like everything is turned on while AI Summary and Speech to Text stayfalseunderneath. That is why Protect never dispatchesspeechToTexttasks.Workaround in Protect 7.4 (works now, no upgrade required)
recognizeAnythingSettings,speechToTextSettings, andaiSummarySettings). For Speech-to-Text, also make sure Speech audio detection is enabled on cameras with a microphone.Why event descriptions looked missing
recognizeAnything(recognizeKeyFrames) callback rather than a separate automatic summary task (RequestAIis only used for on-demand summaries).ramDetections."ramDescription"(the event-level row where"smartDetectObjectId" IS NULL), notsmartDetectObjectGroups.description— even whenaiSummarySettings.enabledisfalse(postVLM: false).Why Keystone keeps
supportDeepMode: false/supportVlm: false/aiMode: "basic"supportDeepMode/supportVlm/aiMode: "deep") is gated to internal Ubiquiti accounts (@ui.com/@ubnt.com) in both the Protect UI and backend, and switching an AI Key to deep mode disablesrecognizeKeyFrames/ CLIP Find Anything in favor of a separate dedup/describe/embed pipeline.aiSched >= 3similarly opts out of the standard UCP4 dispatch path into a different firmware request-scheduler protocol.What changed in Keystone (#90)
Merged in #90 (
main):changeAiInferAgentSettingswithout clobberingenable*flags on mode-only syncs, clears stale Protect settings on re-adoption, and tracks per-camerapostVLMonrecognizeKeyFrames.stt.enabled: truebut Protect reportsenableSTT=false, Keystone logs an actionable warning once and surfaces Off in Protect on the:8088dashboard's Speech to text card with the Protect 7.4 Basic Understanding steps (and Protect 7.3 guidance on older consoles).postVLM=false, Keystone logs a one-time info note and shows a subtle Protect AI Summary off chip on Vision captions while continuing to generate and upload captions.Let us know if toggling Basic Understanding Off → On → Apply Changes (or using Selected Only) gets
speechToTexttasks flowing and the NeXT AI Summary icon shows your saved descriptions!