Save a camera snapshot
services_camera_snapshotSave a still snapshot from a Home Assistant camera entity to a file path, overwriting existing files. Use for dashboard images or Lovelace cards.
Instructions
Save a still snapshot from a camera entity to a file, overwriting any existing file at that path.
Calls camera.snapshot with {"entity_id": entity_id, "filename": filename} over HTTP. filename must be inside the HA config directory
and allow-listed via allowlist_external_dirs, typically under
/config/www/snapshots/... so it can be served by HA.
Use when: capturing a single still frame to a known path, e.g. for a
dashboard image or Lovelace card.
Not for: a video clip — use services_camera_record.
Returns: dict with entity_id, filename and the raw service call
result.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | Destination path inside the HA config directory, e.g. '/config/www/snapshots/front.jpg'. Overwrites any existing file there. | |
| entity_id | Yes | Full camera entity ID to capture, e.g. 'camera.front_door'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||