Original blueprint by whag.
This version keeps the original blueprint structure and intent, while updating the working Frigate media paths, downloader behavior, iOS-aware media handling, and adding a switch to disable clip/video analysis.
An advanced Home Assistant automation blueprint that combines Frigate NVR, LLM Vision, and interactive mobile notifications to create intelligent, context-aware security alerts with actionable buttons.
This version keeps the original iOS-aware notification flow, but also includes the following practical fixes and improvements:
- Correct Frigate media endpoints for snapshots, clips, HLS streams, thumbnails, and review previews
- Downloader support using the corrected event/review URLs
- iOS-aware clip handling with HLS for Apple devices
- A dedicated video analysis on/off switch so end-event notifications can be sent with or without LLM clip analysis
- More reliable downloader waiting logic by matching on filenames instead of full URLs
- Uses HLS (
.m3u8) for iOS clip playback - Uses MP4 clips for Android and other non-iOS devices
- Lets you define which notification devices are iOS
- Keeps attachments and click actions device-aware
- Separate button sets for New Event and End Event
- Up to 3 buttons per notification
- Built-in Silence action with timer input
- Optional Call action
- Supports:
- View Live
- View Snapshot
- View Clip
- Silence
- Call
- Optional snapshot analysis for the initial alert
- Optional clip analysis for the follow-up alert
- Separate provider/model inputs for snapshot and clip analysis
- Custom prompts for image and clip analysis
- Optional LLM Vision memory/timeline features
- Camera filter
- Severity filter
- Zone filter
- Require any zone or all zones
- Object filter
- Sub-label filter
- Vacant-zone logic using person entities
- Custom condition support
- Optional HA Downloader integration
- Works with direct Frigate media URLs
- Correct Frigate event and review endpoints
- Parallel automation mode
- Cooldown support to reduce notification spam
This blueprint differs from the earlier version in a few important ways.
The blueprint now uses the working Frigate endpoints:
- Snapshot:
{{ host }}/api/events/{{ id }}/snapshot.jpg - Thumbnail:
{{ host }}/api/events/{{ id }}/thumbnail.jpg - Clip:
{{ host }}/api/events/{{ id }}/clip.mp4 - iOS clip stream:
{{ host }}/api/vod/event/{{ id }}/master.m3u8 - Review preview:
{{ host }}/api/review/{{ review_id }}/preview
The downloader wait steps now match only on:
filename: "{{ id }}_snapshot.jpg"filename: "{{ id }}_clip.mp4"
This avoids brittle failures caused by matching the full URL string.
A dedicated toggle allows you to disable clip analysis while still keeping end-event notifications:
- On → sends clip to LLM Vision and uses the AI result
- Off → skips clip analysis and still sends the end-event notification using the normal fallback message
- Home Assistant
- Frigate with MQTT configured
- LLM Vision with at least one configured provider
- Home Assistant Companion App on the target mobile devices
- Downloader integration
- Recommended if you want Home Assistant to save snapshots and clips locally before sending them to LLM Vision
Import the blueprint into Home Assistant using your normal blueprint workflow.
Start with a minimal setup:
- Frigate Camera: your Frigate camera entity
- Severity:
alertanddetection - Notify Devices: your mobile devices
- iOS Devices: only your Apple devices
- Provider For Image Analysis: your LLM Vision provider
- Provider For Clip Analysis: your LLM Vision provider
- LLM Vision Snapshot: enabled or disabled as desired
- LLM Vision Clip: enabled or disabled as desired
Recommended first test:
- camera with person detection
- no custom zones
- one phone
- one snapshot button
- one live-view button
- Camera: front door
- Objects:
person - Severity:
alert,detection - Snapshot analysis: enabled
- Clip analysis: enabled
- Button 1: View Live
- Button 2: View Snapshot
- Button 3: Silence
- Snapshot analysis: enabled
- Clip analysis: disabled
- Downloader: enabled
- One or two buttons only
This is a good option if you want quick initial alerts but do not want to spend extra time or tokens on clip analysis.
- Snapshot analysis: enabled
- Clip analysis: disabled
This keeps:
- initial AI snapshot summary
- end-event notification
- clip/snapshot buttons
but skips clip analysis entirely.
Usually uses:
- thumbnail or snapshot as the attachment
- snapshot or custom action as click target
Usually uses:
- review preview or iOS clip stream as the attachment
- clip or stream as the click target
iOS devices receive:
- HLS stream links for clip playback
- device-specific attachment handling
Non-iOS devices receive:
- standard MP4 clip links
- review GIF or static image attachments depending on your configuration
Useful variables in prompts and messages include:
{{ input_objects }}{{ objects }}{{ camera_name }}{{ zone_names }}{{ before_zones }}{{ after_zones }}{{ image }}{{ thumb }}{{ video }}{{ video_ios }}{{ gif }}{{ detections }}{{ id }}{{ review_id }}
- This blueprint is intended for one Frigate camera per automation instance
- Use multiple automation instances for multiple cameras
- If Downloader is enabled, maintain the download directory separately
- If clip analysis is disabled, the blueprint still sends the end-event notification
- If you use iOS devices, make sure they are selected in iOS Devices so the automation sends the HLS clip URL
Check:
- your Frigate Host
- that Frigate is reachable from Home Assistant
- that your notification attachments and click actions use the expected variables
Try:
- turning LLM Vision Clip off temporarily
- lowering
Max Frames - using Downloader
- testing the clip URL directly from Frigate
Check:
- the selected attachment values
- iOS device selection
- Frigate host reachability from the mobile device
Reduce cooldown or review your filtering settings.
- Snapshot analysis: on
- Clip analysis: on
- Downloader: on
- Cooldown: 2 minutes
- Snapshot analysis: on
- Clip analysis: off
- Downloader: on
- Cooldown: 1 minute
- Snapshot analysis: off
- Clip analysis: off
- Downloader: off
This turns the blueprint into a Frigate-driven smart notification automation without LLM processing.