-
Notifications
You must be signed in to change notification settings - Fork 2
Reusing YAML in Notifier templates
xbmcnut edited this page Nov 23, 2020
·
5 revisions
In the service call, the message
"The Pool Gate just opened" is automatically populated in the message
section for the script syno_notify_engine.yaml
, as is the image
field. In this way, you can re-use one script and just fill in the missing data.
- service: script.syno_notify_engine
data_template:
message: "The Pool Gate just opened"
image: pool_gate.jpg
# syno_notify_engine.yaml:
alias: 'Syno Notifier'
sequence:
- service: notify.hass_synochat
data_template:
message: '{{message}}'
data:
file_url: 'http://ipofhass:8123/local/images/{{image}}'