-
-
Notifications
You must be signed in to change notification settings - Fork 13
Camera
knoop7 edited this page Jun 22, 2026
·
3 revisions
Ava's camera feature provides video streaming to Home Assistant, with support for face detection and gender detection.
Capture single photos on demand.
Technical Implementation:
- JPEG compression with configurable quality
- Auto rotation correction based on device orientation
- Configurable image size (original, 500px, 720px, 1080px square crop)
Live MJPEG video streaming via native ESPHome protocol.
Technical Implementation:
- Chunked binary transfer
- Flow-based reactive streaming
- Automatic frame rate adjustment based on network
- Smart frame dropping prevents lag accumulation
Detect faces in video stream and draw bounding boxes.
Count male and female faces detected in video.
Go to Settings -> Advanced
| Setting | Description | Default |
|---|---|---|
| Remote Camera | Allow HA to control camera remotely | Off |
| Camera Mode | Snapshot or Video mode | Snapshot |
| Camera Selection | Front or back camera | Back |
| Video FPS | Video stream frame rate | 5 fps |
| Video Resolution | Video stream resolution | 480p |
| Image Orientation | Portrait (Flipped) or Landscape (Flipped) | - |
| Image Size | Original, 500px, 720px, 1080px | Original |
| Face Detection | Detect faces in video | Off |
| Show Face Box | Draw bounding box around detected faces | Off |
| Mode | Description |
|---|---|
| Snapshot Mode | Trigger snapshot and get image |
| Video Mode | Toggle recording, get video stream |
| Camera | Description |
|---|---|
| Back Camera | Rear-facing camera |
| Front Camera | Front-facing camera |
| Frame Rate | Use Case |
|---|---|
| 1 fps | Monitoring, lowest bandwidth |
| 5 fps | General use, balanced |
| 10 fps | Need to see motion |
| 15 fps | Highest quality |
| Resolution | Pixels | Bandwidth |
|---|---|---|
| Smooth | 320x240 | Lowest |
| SD | 480x360 | Low |
| HD | 640x480 | Medium |
| FHD | 960x720 | High |
| Size | Description |
|---|---|
| Original | No crop, full image |
| 500px | Square crop, 500x500 |
| 720px | Square crop, 720x720 |
| 1080px | Square crop, 1080x1080 |
After enabling, a camera entity appears in Home Assistant:
camera.your_device_name
type: picture-entity
entity: camera.your_device_name
camera_view: liveservice: camera.snapshot
target:
entity_id: camera.your_device_name
data:
filename: /config/www/snapshot.jpg| Entity | Description |
|---|---|
binary_sensor.your_device_name_person_detected |
Face detected |
sensor.your_device_name_male_count |
Male count |
sensor.your_device_name_female_count |
Female count |
- Use 5G WiFi if available
- Keep device close to router
- Start with 480p, increase if stable
- Use 1-2 fps frame rate
- Use 240p or 360p resolution
- Use snapshot mode instead of video stream
- Frame dropping is automatic when network is busy
- No buffer overflow issues
- If lag occurs, it self-corrects quickly
- Check if camera permission is granted
- Check if Remote Camera is enabled in settings
- Confirm Home Assistant is connected
- Lower frame rate (try 1-2 fps)
- Lower resolution (try 240p)
- Check WiFi signal strength
- Ava auto-adjusts, lag should self-correct
- Enable Face Detection in Settings -> Advanced
- Ensure camera mode is Video
- Check lighting conditions
- Ensure face is clearly visible to camera
- Check if device has a camera
- Check camera permission
- Some devices may have camera disabled by system policy
Back to Home