Change example from notify.notify to notify.YOUR_NOTIFICATION_COMPONENT (#359)

This commit is contained in:
Florian Ludwig 2020-05-10 23:39:52 +02:00 committed by GitHub
parent b9747405ea
commit 5cb4420aaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,7 +89,7 @@ Use single quotes (`'`) for strings inside of a template. It is more obvious to
automation: automation:
... ...
action: action:
- service: notify.notify - service: notify.YOUR_NOTIFICATION_COMPONENT
data_template: data_template:
message: "{% if trigger.to_state.name == 'Dale\'s Bedroom' %}Someone's in your base, killing your noobs!{% else %}It's just another door.{% endif %}" message: "{% if trigger.to_state.name == 'Dale\'s Bedroom' %}Someone's in your base, killing your noobs!{% else %}It's just another door.{% endif %}"
``` ```
@ -100,7 +100,7 @@ automation:
automation: automation:
... ...
action: action:
- service: notify.notify - service: notify.YOUR_NOTIFICATION_COMPONENT
data_template: data_template:
message: '{% if trigger.to_state.name == "Dale's Bedroom" %}Someone's in your base, killing your noobs!{% else %}It's just another door.{% endif %}' message: '{% if trigger.to_state.name == "Dale's Bedroom" %}Someone's in your base, killing your noobs!{% else %}It's just another door.{% endif %}'
``` ```
@ -111,7 +111,7 @@ automation:
automation: automation:
... ...
action: action:
- service: notify.notify - service: notify.YOUR_NOTIFICATION_COMPONENT
data_template: data_template:
message: >- message: >-
{% if trigger.to_state.name == 'Dale\'s Bedroom' %} {% if trigger.to_state.name == 'Dale\'s Bedroom' %}