Settings
The Settings page provides access to all system configuration options, from AI providers to integrations and storage management.
Accessing Settings
Navigate to Settings from the main menu, or click the gear icon in the header.
Settings are organized into sections:
| Section | Purpose |
|---|---|
| AI Models | Configure AI providers and analysis settings |
| Protect Controllers | Manage UniFi Protect connections |
| Notifications | Push notification settings |
| Integrations | Home Assistant, MQTT, and more |
| Storage | Data retention and cleanup |
| System | General system settings |
AI Models
Provider Configuration
ArgusAI supports multiple AI providers:
| Provider | Configure |
|---|---|
| OpenAI | GPT-4o mini, GPT-4 Vision |
| xAI Grok | Grok 2 Vision |
| Anthropic | Claude 3 Haiku, Sonnet |
| Google Gemini | Gemini Flash, Pro |
For each provider:
- Enter your API Key
- Click Test to verify
- Green checkmark indicates success
- Select the Model to use
Getting API Keys
| Provider | Where to Get Key |
|---|---|
| OpenAI | platform.openai.com/api-keys |
| xAI | console.x.ai |
| Anthropic | console.anthropic.com |
| aistudio.google.com |
Provider Priority
Drag providers to set the order:
- Primary provider is used first
- Fallback providers used if primary fails
- Disabled providers are skipped
Analysis Settings
Configure how events are analyzed:
| Setting | Options |
|---|---|
| Analysis Mode | Single Frame, Multi-Frame, Video Native |
| Frame Count | 5, 10, 15, 20 (for multi-frame) |
| Sampling Strategy | Uniform, Adaptive, Hybrid |
Custom Prompts
Customize the AI prompt:
- Expand Advanced Settings
- Edit the Analysis Prompt text
- Use variables:
{camera_name},{timestamp},{date} - Click Refine Prompt for AI-assisted improvements
- Save changes
Protect Controllers
Manage UniFi Protect controller connections.
Adding a Controller
- Click Add Controller
- Enter connection details:
| Field | Description |
|---|---|
| Name | Friendly identifier |
| Host | IP address or hostname |
| Port | HTTPS port (default: 443) |
| Username | Local user account |
| Password | User password |
| Verify SSL | Validate certificate |
- Click Test Connection
- Click Save if successful
Managing Cameras
For each controller:
- Click the controller name
- View Discovered Cameras
- Toggle cameras on/off for AI analysis
- Configure Event Filters per camera
Event Filters
Control which Protect events trigger AI analysis:
| Filter | Description |
|---|---|
| Person | Human detection events |
| Vehicle | Vehicle detection events |
| Package | Package detection events |
| Animal | Animal/pet detection events |
| Ring | Doorbell ring events |
Notifications
Push Notifications
Enable browser push notifications:
- Click Enable Push Notifications
- Grant browser permission when prompted
- Test to verify with a sample notification
Requirements
- HTTPS connection (SSL required)
- Browser notification permission
- Service worker support
Check Push Status for current state:
| Status | Meaning |
|---|---|
| Ready | Notifications will work |
| Permission Denied | User blocked notifications |
| Not Supported | Browser doesn't support push |
| HTTPS Required | Need SSL certificate |
Notification Preferences
Configure default notification behavior:
| Setting | Description |
|---|---|
| Sound | Play audio on notification |
| Vibration | Vibrate on mobile |
| Quiet Hours | Suppress notifications during hours |
Integrations
Home Assistant (MQTT)
Connect to Home Assistant via MQTT:
- Toggle MQTT Integration on
- Configure connection:
| Field | Description |
|---|---|
| Host | MQTT broker address |
| Port | Broker port (1883 default) |
| Username | MQTT user (optional) |
| Password | MQTT password (optional) |
| Topic Prefix | Base topic (argusai default) |
- Click Test Connection
- Save configuration
See Home Assistant Integration for full setup.
HomeKit
Native Apple Home integration:
- Toggle HomeKit on
- A pairing code is generated
- Open Apple Home app
- Add accessory using the code
See HomeKit Integration for details.
Storage
Data Retention
Configure how long to keep data:
| Setting | Default | Description |
|---|---|---|
| Event Retention | 30 days | How long to keep events |
| Thumbnail Retention | 30 days | How long to keep images |
| Motion Events | 7 days | Low-level motion data |
| Logs | 14 days | System log retention |
Storage Usage
View current storage consumption:
- Events: Number and size
- Thumbnails: Image storage
- Video Clips: Downloaded clips
- Database: SQLite file size
- Total: Combined usage
Cleanup Actions
| Action | Description |
|---|---|
| Run Cleanup Now | Immediately apply retention rules |
| Clear Old Events | Delete events older than X days |
| Clear All Data | Delete everything (requires confirmation) |
Cleanup operations cannot be undone. Consider backing up data first.
System
General Settings
| Setting | Description |
|---|---|
| System Name | Display name for your installation |
| Time Zone | For timestamp display |
| Date Format | How dates are shown |
| Theme | Light, Dark, or System |
Video Storage
Store full motion video clips for complete event review:
| Setting | Description |
|---|---|
| Store Motion Videos | Download and save video clips from Protect cameras |
| Video Retention | How long to keep videos (7, 14, 30, 60, 90 days) |
When enabled:
- Motion clips are automatically downloaded from UniFi Protect cameras
- Videos appear with a blue video icon on event cards
- Click the icon to play or download the video
- Storage usage is shown in the Storage section
Video storage only works with UniFi Protect cameras. RTSP and USB cameras do not support video clip downloads.
SSL/HTTPS
If SSL is configured:
- Status: Whether SSL is active
- Certificate: Certificate info and expiry
- Redirect HTTP: Automatically redirect HTTP to HTTPS
See Configuration for SSL setup.
Health & Status
View system health:
| Metric | Description |
|---|---|
| API Status | Backend connectivity |
| Database | Database connection |
| WebSocket | Real-time connection |
| Protect | Controller connections |
Logs
Access system logs:
- Click View Logs
- Filter by level (Error, Warning, Info, Debug)
- Search for specific messages
- Download logs for support
Backup & Export
Configuration Backup
Export your settings:
- Click Export Configuration
- Download the JSON file
- Store securely
Restore from backup:
- Click Import Configuration
- Select the backup file
- Choose what to restore
- Confirm import
Event Export
Export events for external analysis:
- Go to Events page
- Apply filters for desired date range
- Click Export button
- Choose format (JSON, CSV)
- Download the file
Tips
Settings Best Practices
- Test API keys after entry
- Use high provider priority for best quality/cost
- Review retention settings for storage management
- Enable SSL for push notifications
Troubleshooting Settings
- API Key Invalid: Re-copy from provider dashboard
- Controller Won't Connect: Check network access and credentials
- Push Not Working: Verify HTTPS and permissions
- MQTT Disconnecting: Check broker settings and auth