Build AI camera alerts with buffered frames in Home Assistant

A smart-home tinkerer rebuilt his LLM Vision workflow to send pre-event frames to gpt-4o-mini, fixing false 'nobody there' alerts.

Used for
Everyday life
Skill needed
Low code
Shown in video
Partial demo
Summary based on
Transcript
BeardedTinkerWatch on YouTube

I Already Have an NVR — Do I Really Need Frigate?

Published Oct 28, 202624:5014,174 views183 likes

Key moments

  • 0:00AI said nobody was there
  • 12:51AI classified his backyard walk as benign
  • 15:13Retest across five cameras succeeds

What they made

AI classified his presence as time-sensitive across five cameras and sent useful notifications; hoodie test stayed time-sensitive, not critical.

15:13

How they did it

  1. Human

    Diagnosed that the stock LLM Vision blueprint started analyzing only after person detection, so the AI often saw empty frames.

    Creator-reported
  2. Human

    Enabled stream preloading on six powered Reolink cameras and used camera.record with 10s lookback and 10s duration to capture a buffered MP4.

    Creator-reported · Home Assistant camera.record
  3. AI

    LLM Vision selected up to five motion-focused frames at 1280px and sent them with a structured prompt to gpt-4o-mini for title, description, and importance.

    Creator-reported · LLM Vision + OpenAI gpt-4o-mini
  4. Human13:22

    Rewrote the prompt so anyone on private property is at least time-sensitive, and moved occupancy context into Home Assistant to stop the model claiming the house was empty.

    Stated in video
  5. AI + human16:44

    Home Assistant ignored normal events, added time-sensitive ones to the timeline and phone notifications, and used a separate urgent channel for critical events.

    Stated in video · Home Assistant automation

What you can reuse

  • Buffer video before the detection trigger so the vision model sees the person, not an empty scene.
  • Give the model explicit occupancy states from Home Assistant instead of raw sensor values it may misread.
  • Treat AI descriptions as interpretations, not facts, and keep a cooldown to avoid duplicate alerts.

Trade-offs

  • Recording step took about 11 seconds and LLM Vision about 4 more, so alerts are not instant.
  • Fixed temp filename overwrites previous clips and overlapping events need extra care.
  • A 2m30s cooldown can suppress analysis of other events.
  • No monthly API cost figure was collected; cloud images leave the local network.
  • AI misread a backyard walk as benign and once claimed the house was empty while occupied.

AI-generated case summaries can contain mistakes. Report an error

More cases like this: Run Home Assistant with AI

Related cases

Automate a smart home

Revive a 2019 Android TV with Claude Code

A creator used Claude Code over Wi-Fi to de-bloat his old Android TV and build a custom ad-free home screen, approving each risky step…

Claude Code111.2K views