Frigate LLM AI Notification - Intelligent Security Camera Automation
An advanced Home Assistant automation blueprint that combines Frigate NVR, LLM Vision AI, and mobile notifications to create intelligent, context-aware security alerts. This automation analyzes both snapshots and video clips using AI to provide detailed, actionable security notifications.
Features
AI-Powered Analysis
- Dual Analysis: Processes both initial snapshots and review clips
- Multiple LLM Providers: Supports OpenAI GPT, Claude, Gemini, and Llama models
- Contextual Understanding: AI describes what’s happening, why, and what might happen next
- Memory Integration: Uses LLM Vision’s memory and timeline features for enhanced context
Smart Notifications
- Rich Mobile Notifications: Includes images, videos, and actionable analyse
- Customizable Click Actions: Direct links to camera feeds, downloaded files, or dashboards
- Multiple Device Support: Send notifications to multiple mobile devices
- Notification Grouping: Organizes alerts by camera for better management
Advanced Configuration
- Zone-Based Filtering: Only alert for specific areas of interest
- Object Detection: Filter alerts by specific objects (person, car, etc.)
- Sub-label Support: Advanced filtering with Frigate sub-labels
- Cooldown Periods: Prevents notification spam
- Custom Actions: Run additional automations on events
Local File Management
- Download Integration: Stores Frigate files locally for improved reliability
- Organized Storage: Configurable directory structure for media files
- Parallel Processing: Handles multiple camera events simultaneously
Prerequisites
Before using this automation, ensure you have the following components installed and configured:
Required Integrations
- Frigate NVR with MQTT broker setup
- Camera configuration with zones and object detection
- Integration installed and configured in Home Assistant
- AI provider configured (OpenAI, Anthropic, Google, etc.)
- Memory and timeline features (optional but recommended)
- Integration installed and configured in Home Assistant
- Built-in Home Assistant integration
- Directory permissions configured for file storage
- Installed on mobile devices for notifications
- Notification permissions enabled
System Requirements
- Home Assistant: Version 2023.1 or later
- MQTT Broker: Required for Frigate integration
- Storage Space: Adequate space for downloaded media files
- Mobile Device: Android or iOS with HA Companion App
Installation
Method 1: Blueprint Import (Recommended)
- Import the Blueprint:
https://github.com/willhaggan/HA_Frigate_VLLM_Notification/blob/main/Latest.yaml
- Navigate to Settings → Automations & Scenes → Blueprints
- Click “Import Blueprint” and paste the URL above
- Create a new automation from the imported blueprint
Method 2: Manual Installation
- Download the
Latest.yaml
file from this repository - Place the file in your Home Assistant blueprints directory:
config/blueprints/automation/frigate_llm_notification/
- Restart Home Assistant or reload automations
- Create automation from the blueprint in the UI
Configuration
The blueprint provides extensive configuration options organized into logical groups:
Frigate Options
- Camera Selection: Choose which Frigate camera to monitor
- Zone Configuration: Select specific zones for monitoring
- Object Filtering: Filter alerts by detected objects
- Sub-label Filtering: Advanced filtering with custom labels
LLM Vision Provider
- Provider Selection: Choose your AI provider (OpenAI, Claude, Gemini, etc.)
- Model Selection: Select specific AI model for analysis
- Performance Settings: Configure tokens, temperature, and creativity
Snapshot Analysis
- AI Analysis Toggle: Enable/disable AI analysis for snapshots
- Custom Prompts: Define how the AI should analyze images
- Title Generation: AI-generated notification titles
- Memory Integration: Use stored context for better analysis
Video Clip Analysis
- Clip Processing: Analyze video clips when events end
- Frame Analysis: Configure how many frames to analyze
- Advanced Prompts: Specialized prompts for video analysis
- Performance Tuning: Optimize for speed vs. quality
Downloader Options
- Directory Configuration: Set up local storage paths
- Download Timeouts: Configure wait times for file downloads
- Retry Logic: Automatic retry on download failures
Notification Settings
- Device Selection: Choose target mobile devices
- Click Actions: Configure notification tap behavior
- Cooldown Periods: Prevent notification spam
- Grouping Options: Organize notifications by camera
Custom Actions
- New Event Actions: Run additional automations on new events
- End Event Actions: Run actions when events complete
- Integration Hooks: Connect with other Home Assistant automations
Documentation
- Quick Start Guide - Get up and running in 15 minutes
- Configuration Guide - Detailed configuration options
- Examples and Use Cases - Real-world implementation examples
- Troubleshooting Guide - Common issues and solutions
Usage Examples
Basic Security Monitoring
Configuration for basic person detection Camera: camera.front_door Zones: [front_porch, driveway] Objects: [person] AI Prompt: “Describe who is approaching the front door and what they appear to be doing.”
Advanced Vehicle Monitoring
Configuration for driveway vehicle detection Camera: camera.driveway Zones: [driveway, street] Objects: [car, truck, motorcycle] AI Prompt: “Analyze the vehicle activity. Is this a delivery, visitor, or potential security concern?”
Multi-Zone Package Detection
Configuration for package delivery monitoring Camera: camera.porch Zones: [front_porch, steps] Objects: [person, package] AI Prompt: “Focus on package delivery activity. Describe if packages are being delivered or picked up.”
Best Practices
Performance Optimization
- Model Selection: Use faster models (gpt-4o-mini, gemini-1.5-flash) for real-time alerts
- Token Limits: Keep token counts reasonable (50-150) for faster responses
- Frame Limits: Limit video analysis to 3-5 frames for better performance
Storage Management
- Regular Cleanup: Implement periodic cleanup of downloaded files
- Directory Structure: Use organized subdirectories by date or camera
- Monitoring: Track storage usage to prevent disk full issues
Notification Strategy
- Cooldown Periods: Use 2-5 minute cooldowns to prevent spam
- Zone Optimization: Configure zones to reduce false positives
- Device Grouping: Group family devices for coordinated notifications
AI Prompt Engineering
- Be Specific: Include relevant context about what you want to detect
- Set Priorities: Specify what events are most important
- Include Context: Mention zones, objects, and expected activities
Troubleshooting
Common Issues
Notifications Not Received
- Verify Mobile App permissions for notifications
- Check device selection in automation configuration
- Ensure devices are online and connected
AI Analysis Failures
- Verify LLM Vision integration is properly configured
- Check API keys and provider status
- Review prompt complexity and token limits
File Download Errors
- Confirm Downloader integration is installed
- Verify directory permissions and available storage
- Check network connectivity to Frigate server
Event Detection Issues
- Review Frigate camera configuration and zones
- Check object detection settings and confidence levels
- Verify MQTT broker connectivity
For detailed troubleshooting, see the Troubleshooting Guide.
Contributing
Contributions are welcome! Please feel free to:
- Report bugs and issues
- Suggest new features
- Submit pull requests
- Share configuration examples
- Improve documentation
License
This project is licensed under the MIT License - see the repository for details.
Acknowledgments
- Frigate - Excellent NVR software
- LLM Vision - AI vision integration
- Home Assistant Community - Ongoing support and inspiration
Additional Resources
- Frigate Documentation
- LLM Vision Integration Guide
- Home Assistant Automation Documentation
- MQTT Configuration Guide
Updates July 2025
-
Frigate Severity Selection:Select Alert or Detections
-
Clickaction Options Expanded
-
MQTT before_zones Added to Zone Match Logic
-
Temperature parameter removed to align with LLM Vision 1.5
Version: v0.42
Author: whag
Last Updated: July 2025 -
Allow different providers/models for image and clip analyse
-
Description tidy up
-
New Groq models
Version: v0.43
Author: whag
Last Updated: 22 July 2025