mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-09 18:36:51 +00:00
Adding a full automation service call example (#20921)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
parent
fefcff791f
commit
9e696803e6
@ -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`.
|
||||
|
Loading…
x
Reference in New Issue
Block a user