mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-13 12:26:29 +00:00
Change example from notify.notify to notify.YOUR_NOTIFICATION_COMPONENT (#359)
This commit is contained in:
parent
b9747405ea
commit
5cb4420aaf
@ -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' %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user