camera-nvr
Home Assistant camera integration and Frigate NVR patterns.
What this skill does
# Camera and NVR Skill
Home Assistant camera integration and Frigate NVR patterns.
## Activation Triggers
- Working with camera entities
- Configuring Frigate NVR
- Setting up motion detection
- Creating camera dashboards
- Recording management
## Core Patterns
### Frigate Configuration
```yaml
# frigate.yaml
mqtt:
enabled: true
host: mosquitto
user: frigate
password: "{FRIGATE_MQTT_PASSWORD}"
detectors:
coral:
type: edgetpu
device: usb
cameras:
front_door:
ffmpeg:
inputs:
- path: rtsp://user:[email protected]:554/stream1
roles:
- detect
- record
- path: rtsp://user:[email protected]:554/stream2
roles:
- rtmp
detect:
width: 1920
height: 1080
fps: 5
objects:
track:
- person
- car
- dog
filters:
person:
min_area: 5000
threshold: 0.7
zones:
porch:
coordinates: 0,1080,500,1080,500,0,0,0
objects:
- person
record:
enabled: true
retain:
days: 7
mode: motion
events:
retain:
default: 30
go2rtc:
streams:
front_door:
- rtsp://user:[email protected]:554/stream1
```
### Camera YAML Configuration
```yaml
# Generic camera
camera:
- platform: generic
name: Front Yard
still_image_url: http://192.168.1.100/snapshot.jpg
stream_source: rtsp://user:[email protected]:554/stream
- platform: onvif
host: 192.168.1.103
port: 80
username: admin
password: !secret camera_password
```
### Motion Detection Automation
```yaml
automation:
- alias: "Camera - Person Alert"
trigger:
- platform: state
entity_id: binary_sensor.front_door_person
to: "on"
condition:
- condition: state
entity_id: input_boolean.camera_alerts
state: "on"
action:
- service: notify.mobile_app
data:
title: "Person Detected"
message: "Person at front door"
data:
image: /api/frigate/notifications/front_door/snapshot.jpg
tag: camera_alert
actions:
- action: "VIEW_CAMERA"
title: "View"
```
### Recording Management
```yaml
# Frigate recording settings
record:
enabled: true
retain:
days: 7
mode: motion
events:
pre_capture: 5
post_capture: 5
retain:
default: 30
mode: active_objects
```
### Camera Dashboard
```yaml
# Picture glance card
type: picture-glance
title: Front Door
camera_image: camera.front_door
camera_view: live
entities:
- binary_sensor.front_door_person
- binary_sensor.front_door_motion
# Frigate card
type: custom:frigate-card
cameras:
- camera_entity: camera.front_door
frigate:
url: http://frigate:5000
client_id: front_door
menu:
buttons:
frigate: true
fullscreen: true
download: true
live:
provider: webrtc-card
```
### PTZ Control
```yaml
# PTZ service calls
service: onvif.ptz
data:
entity_id: camera.ptz_camera
move_mode: RelativeMove
pan: 0.1 # -1 to 1
tilt: 0.1
zoom: 0.1
# Preset
service: onvif.ptz
data:
entity_id: camera.ptz_camera
preset: "1"
```
## Hardware Recommendations
| Use Case | Camera Type | Resolution |
|----------|-------------|------------|
| Doorbell | Video doorbell | 1080p+ |
| Driveway | Bullet camera | 4K |
| Backyard | PTZ camera | 1080p |
| Indoor | Cube/dome | 1080p |
### AI Acceleration
```yaml
# Coral USB
detectors:
coral:
type: edgetpu
device: usb
# Coral M.2/PCIe
detectors:
coral:
type: edgetpu
device: pci
# Intel OpenVINO
detectors:
openvino:
type: openvino
device: GPU
```
## RTSP URL Formats
| Brand | URL Format |
|-------|------------|
| Hikvision | `rtsp://user:pass@ip:554/Streaming/Channels/101` |
| Dahua | `rtsp://user:pass@ip:554/cam/realmonitor?channel=1` |
| Reolink | `rtsp://user:pass@ip:554/h264Preview_01_main` |
| Amcrest | `rtsp://user:pass@ip:554/cam/realmonitor?channel=1` |
| Ubiquiti | `rtsp://ip:7447/camera_id` |
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.