Skip to content

Protect 7.4.114: "AI Summary" and "Speech-to-Text" toggles hidden — AI Key reports supportVlm=false / aiMode=basic, so Protect never sends summary or STT tasks #87

Done

Description

@oester

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-core 6.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": 0

3. 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.
  • supportVlm is documented as "Deprecated legacy alias for supportDeepMode … getInfo keeps the two in sync", and supportDeepMode as "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 === true
  • aiMode is "Global AI mode the device has persisted ('basic' | 'deep') — set via changeAiInferAgentSettings {modelMode}", with reconcile logic (aiModeDrifted, aiModeSyncQueue) and a
    describe-prompt sync verified via describeConfigHash ("sha1 of the /describe config the device has persisted (echoed configHash)").
  • New fields aiSched ("0 = unsupported, 2 = VLM/reid agents, 3 = all pipelines") and reidEmbedModel.

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.provider is configured, report supportDeepMode: true (and supportVlm: true for older consoles) in getInfo feature flags.
  • Handle changeAiInferAgentSettings {modelMode: "deep"}, persist and echo aiMode.
  • Support the /describe prompt-config sync (describeConfigHash).
  • Possibly report a non-zero aiSched level.
  • 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

  1. added
    bug
    on Dec 4, 2026
  2. seeARMS commented on Dec 4, 2026

    @seeARMS
    Owner

    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.featureFlags dump confirms Keystone already advertises supportAiSummary, supportStt, supportTts, and supportRecognizeAnything properly. What changed is how Protect 7.4 presents those settings:

    1. Consolidated UI: Protect 7.4 folded Object Indexing (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.
    2. Fresh-adoption UI state quirk: On a new adoption, Protect initializes recognizeAnythingSettings.enabled = true, while aiSummarySettings.enabled = false and speechToTextSettings.enabled = false (all with allCameras: 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 stay false underneath. That is why Protect never dispatches speechToText tasks.

    Workaround in Protect 7.4 (works now, no upgrade required)

    • Enable all three for all supported cameras: Open Settings → Intelligence → Basic Understanding, toggle the card Off, then back On, and click Apply Changes. Toggling the card's master switch turns on all three bundled settings (recognizeAnythingSettings, speechToTextSettings, and aiSummarySettings). For Speech-to-Text, also make sure Speech audio detection is enabled on cameras with a microphone.
    • Or enable per camera / per feature: Switch Basic Understanding from All to Selected Only to reveal the per-camera matrix with clickable Object Indexing, Speech to Text, and AI Summary icons, toggle what you want, and click Apply Changes.

    Why event descriptions looked missing

    • Automatic event descriptions are returned inside Keystone's recognizeAnything (recognizeKeyFrames) callback rather than a separate automatic summary task (RequestAI is only used for on-demand summaries).
    • Under Basic Understanding, Protect writes those descriptions to ramDetections."ramDescription" (the event-level row where "smartDetectObjectId" IS NULL), not smartDetectObjectGroups.description — even when aiSummarySettings.enabled is false (postVLM: false).
    • In Protect's event player, the summary drawer starts collapsed by default until you click the NeXT AI Summary sparkle button in the player toolbar (Protect remembers it open after you click it once).

    Why Keystone keeps supportDeepMode: false / supportVlm: false / aiMode: "basic"

    • In Protect 7.4.114, Deep Understanding (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 disables recognizeKeyFrames / CLIP Find Anything in favor of a separate dedup/describe/embed pipeline.
    • Reporting aiSched >= 3 similarly opts out of the standard UCP4 dispatch path into a different firmware request-scheduler protocol.

    What changed in Keystone (#90)

    Merged in #90 (main):

    • Keystone now persists Protect's pushed changeAiInferAgentSettings without clobbering enable* flags on mode-only syncs, clears stale Protect settings on re-adoption, and tracks per-camera postVLM on recognizeKeyFrames.
    • When stt.enabled: true but Protect reports enableSTT=false, Keystone logs an actionable warning once and surfaces Off in Protect on the :8088 dashboard's Speech to text card with the Protect 7.4 Basic Understanding steps (and Protect 7.3 guidance on older consoles).
    • When vision is enabled and all observed cameras send 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.
    • Updated the README, Home Assistant docs, Unraid template, example config, and installer summaries for Protect 7.4's Basic Understanding layout.

    Let us know if toggling Basic Understanding Off → On → Apply Changes (or using Selected Only) gets speechToText tasks flowing and the NeXT AI Summary icon shows your saved descriptions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions