mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 09:17:06 +00:00
Update ring.markdown (#15252)
The automation `action` section is confusing for people, so I've reworked it to be an actual automation.
This commit is contained in:
parent
d6693742a6
commit
9ea1d27871
@ -56,11 +56,17 @@ downloader:
|
||||
download_dir: downloads
|
||||
```
|
||||
|
||||
Then you can use the following `action` in your automation (this will save the video file under `<config>/downloads/ring_<camera_name>/`):
|
||||
Then you can use the following automation, with the entities from your system, which will save the video file under `<config>/downloads/ring_<camera_name>/`:
|
||||
|
||||
{% raw %}
|
||||
```yaml
|
||||
action:
|
||||
automation:
|
||||
alias: 'Save the video when the doorbell is pushed'
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.front_doorbell_ding
|
||||
to: 'on'
|
||||
action:
|
||||
- service: downloader.download_file
|
||||
data:
|
||||
url: "{{ state_attr('camera.front_door', 'video_url') }}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user