Added notification example (#5514)

* Added notification example

* Add raw
This commit is contained in:
Meow 2018-06-17 12:52:37 +02:00 committed by Fabian Affolter
parent d911c3d8aa
commit 123542ee33

View File

@ -42,3 +42,19 @@ Both events have two attributes:
- **sensor**: Name of `opensky` sensor that fired the event
- **callsign**: Callsign of the flight
To receive notifications of the entering flights, add the following lines to your `configuration.yaml`.
{% raw %}
```yaml
automation:
- alias: 'Flight entry notification'
trigger:
platform: event
event_type: opensky_entry
action:
service: notify.ios_YOURIPHONENAME
data_template:
message : 'Flight entry of {{ trigger.event.data.callsign }} '
```
{% endraw %}