mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-21 16:27:19 +00:00
Add save clips to Blink services (#25329)
This commit is contained in:
parent
6f835de173
commit
2bafe1d9ba
@ -152,11 +152,11 @@ Similar to the previous example, this automation will disarm blink when arriving
|
|||||||
entity_id: alarm_control_panel.blink_my_sync_module
|
entity_id: alarm_control_panel.blink_my_sync_module
|
||||||
```
|
```
|
||||||
|
|
||||||
### Save Video Locally When Motion Detected
|
### Save Most Recent Video Locally When Motion Detected
|
||||||
|
|
||||||
When motion is detected, you can use the Blink Home Assistant integration to save the last recorded video locally, rather than relying on Blink's servers to save your data.
|
When motion is detected, you can use the Blink Home Assistant integration to save the last recorded video locally, rather than relying on Blink's servers to save your data.
|
||||||
|
|
||||||
Again, this example assumes your camera's name (in the blink app) is `My Camera` and your sync module name is `My Sync Module`. The file will be saved to `/tmp/videos/blink_video_{YYYMMDD_HHmmSS}.mp4` where `{YYYYMMDD_HHmmSS}` will be a timestamp create via the use of [templating](/docs/configuration/templating/).
|
The following example assumes your camera's name (in the Blink app) is `My Camera` and your sync module name is `My Sync Module`. The file will be saved to `/tmp/videos/blink_video_{YYYMMDD_HHmmSS}.mp4` where `{YYYYMMDD_HHmmSS}` will be a timestamp create via the use of [templating](/docs/configuration/templating/).
|
||||||
|
|
||||||
{% raw %}
|
{% raw %}
|
||||||
|
|
||||||
@ -175,3 +175,28 @@ Again, this example assumes your camera's name (in the blink app) is `My Camera`
|
|||||||
```
|
```
|
||||||
|
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
|
|
||||||
|
### Save All Recent Clips Locally on a Schedule
|
||||||
|
|
||||||
|
A list of all the recent video clips is updated at each refresh of the Blink system.
|
||||||
|
The video clips are available in a download list (per camera) for up to an hour,
|
||||||
|
and they can be downloaded at any time before the one-hour expiration time.
|
||||||
|
After a clip is downloaded it is removed from the list.
|
||||||
|
|
||||||
|
The following example demonstrates saving recent clips every three minutes.
|
||||||
|
It assumes your camera's name (in the Blink app) is `My Camera`.
|
||||||
|
The file will be saved to `/tmp/videos/YYYYMMDD_HHmmSS_MyCamera.mp4`.
|
||||||
|
The file name of the downloaded video file is not configurable.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
- id: save_recent_clips_from_my_camera
|
||||||
|
alias: "Save Recent Clips from My Camera"
|
||||||
|
trigger:
|
||||||
|
- platform: time_pattern
|
||||||
|
minutes: /3
|
||||||
|
action:
|
||||||
|
- service: blink.save_recent_clips
|
||||||
|
data:
|
||||||
|
name: My Camera
|
||||||
|
file_path: /tmp/videos
|
||||||
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user