mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 09:17:06 +00:00
Fix escaping
This commit is contained in:
parent
bf0c79ebdb
commit
468d91b08b
@ -47,6 +47,7 @@ The path part of `filename` must be an entry in the `whitelist_external_dirs` in
|
|||||||
|
|
||||||
For example, the following action in an automation would take a snapshot from "yourcamera" and save it to /tmp with a timestamped filename.
|
For example, the following action in an automation would take a snapshot from "yourcamera" and save it to /tmp with a timestamped filename.
|
||||||
|
|
||||||
|
{% raw %}
|
||||||
```yaml
|
```yaml
|
||||||
action:
|
action:
|
||||||
service: camera.snapshot
|
service: camera.snapshot
|
||||||
@ -54,6 +55,7 @@ action:
|
|||||||
entity_id: camera.yourcamera
|
entity_id: camera.yourcamera
|
||||||
filename: '/tmp/yourcamera_{{ now().strftime("%Y%m%d-%H%M%S") }}.jpg'
|
filename: '/tmp/yourcamera_{{ now().strftime("%Y%m%d-%H%M%S") }}.jpg'
|
||||||
```
|
```
|
||||||
|
{% endraw %}
|
||||||
|
|
||||||
### {% linkable_title Test if it works %}
|
### {% linkable_title Test if it works %}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user