Record a camera clip
services_camera_recordRecord a short video clip from a camera entity and save it to a file, overwriting any existing file. Use for capturing motion or events instead of a single still frame.
Instructions
Record a short clip from a camera entity to a file, overwriting any existing file at that path.
Calls camera.record with {"entity_id": entity_id, "filename": filename, "duration": duration} over HTTP.
Use when: capturing a short video clip rather than a single still frame.
Not for: a single still frame — use services_camera_snapshot.
Returns: dict with entity_id, filename, duration and the raw
service call result.
Limits: blocks for roughly duration seconds while HA records.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| duration | No | Recording length in seconds. | |
| filename | Yes | Destination path inside the HA config directory, e.g. '/config/www/snapshots/clip.mp4'. Overwrites any existing file there. | |
| entity_id | Yes | Full camera entity ID to record, e.g. 'camera.front_door'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||