mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-09 10:26:52 +00:00
fixed example formatting for Blink (#13796)
This commit is contained in:
parent
91f4fde48d
commit
4b3653016b
@ -105,10 +105,9 @@ Save the last recorded video of a camera to a local file. Note that in most case
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
homeassistant:
|
homeassistant:
|
||||||
...
|
whitelist_external_dirs:
|
||||||
whitelist_external_dirs:
|
- '/tmp'
|
||||||
- '/tmp'
|
- '/path/to/whitelist'
|
||||||
- '/path/to/whitelist'
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### `blink.send_pin`
|
### `blink.send_pin`
|
||||||
@ -135,15 +134,15 @@ This example script shows how to take a picture with your camera, named `My Came
|
|||||||
```yaml
|
```yaml
|
||||||
alias: Blink Snap Picture
|
alias: Blink Snap Picture
|
||||||
sequence:
|
sequence:
|
||||||
- service: blink.trigger_camera
|
- service: blink.trigger_camera
|
||||||
data:
|
data:
|
||||||
entity_id: camera.blink_my_camera
|
entity_id: camera.blink_my_camera
|
||||||
- delay: 00:00:05
|
- delay: 00:00:05
|
||||||
- service: blink.blink_update
|
- service: blink.blink_update
|
||||||
- service: camera.snapshot
|
- service: camera.snapshot
|
||||||
data:
|
data:
|
||||||
entity_id: camera.blink_my_camera
|
entity_id: camera.blink_my_camera
|
||||||
filename: /tmp/my_image.jpg
|
filename: /tmp/my_image.jpg
|
||||||
```
|
```
|
||||||
|
|
||||||
### Arm Blink When Away
|
### Arm Blink When Away
|
||||||
@ -156,12 +155,12 @@ Here, this example assumes your blink module is named `My Sync Module` and that
|
|||||||
- id: arm_blink_when_away
|
- id: arm_blink_when_away
|
||||||
alias: Arm Blink When Away
|
alias: Arm Blink When Away
|
||||||
trigger:
|
trigger:
|
||||||
platform: state
|
platform: state
|
||||||
entity_id: all
|
entity_id: all
|
||||||
to: 'not_home'
|
to: 'not_home'
|
||||||
action:
|
action:
|
||||||
service: alarm_control_panel.alarm_arm_away
|
service: alarm_control_panel.alarm_arm_away
|
||||||
entity_id: alarm_control_panel.blink_my_sync_module
|
entity_id: alarm_control_panel.blink_my_sync_module
|
||||||
```
|
```
|
||||||
|
|
||||||
### Disarm Blink When Home
|
### Disarm Blink When Home
|
||||||
@ -172,12 +171,12 @@ Similar to the previous example, this automation will disarm blink when arriving
|
|||||||
- id: disarm_blink_when_home
|
- id: disarm_blink_when_home
|
||||||
alias: Disarm Blink When Home
|
alias: Disarm Blink When Home
|
||||||
trigger:
|
trigger:
|
||||||
platform: state
|
platform: state
|
||||||
entity_id: all
|
entity_id: all
|
||||||
to: 'home'
|
to: 'home'
|
||||||
action:
|
action:
|
||||||
service: alarm_control_panel.alarm_disarm
|
service: alarm_control_panel.alarm_disarm
|
||||||
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 Video Locally When Motion Detected
|
||||||
@ -191,14 +190,14 @@ Again, this example assumes your camera's name (in the blink app) is `My Camera`
|
|||||||
- id: save_blink_video_on_motion
|
- id: save_blink_video_on_motion
|
||||||
alias: Save Blink Video on Motion
|
alias: Save Blink Video on Motion
|
||||||
trigger:
|
trigger:
|
||||||
platform: state
|
platform: state
|
||||||
entity_id: binary_sensor.blink_my_camera_motion_detected
|
entity_id: binary_sensor.blink_my_camera_motion_detected
|
||||||
to: 'on'
|
to: 'on'
|
||||||
action:
|
action:
|
||||||
service: blink.save_video
|
service: blink.save_video
|
||||||
data_template:
|
data_template:
|
||||||
name: "My Camera"
|
name: "My Camera"
|
||||||
filename: "/tmp/videos/blink_video_{{ now().strftime('%Y%m%d_%H%M%S') }}.mp4"
|
filename: "/tmp/videos/blink_video_{{ now().strftime('%Y%m%d_%H%M%S') }}.mp4"
|
||||||
|
|
||||||
```
|
```
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user