Adding a full automation service call example (#20921)

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
kozoke 2022-01-06 12:12:15 -08:00 committed by GitHub
parent fefcff791f
commit 9e696803e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,4 +125,24 @@ icon:
auth: "digest"
```
Example of an automation with an service call, full configuration:
{% raw %}
```yaml
service: notify.living_room_tv
data:
title: "Thanks for the water!"
message: "Nigel is {{ states('sensor.nigel_moisture') }}% moisture"
data:
duration: 4
position: "bottom-left"
fontsize: "medium"
transparency: "80%"
color: "teal"
interrupt: 0
```
{% endraw %}
Please note that `path` is validated against the `allowlist_external_dirs` in the `configuration.yaml`.