mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-15 13:26:54 +00:00
Added notification example (#5514)
* Added notification example * Add raw
This commit is contained in:
parent
d911c3d8aa
commit
123542ee33
@ -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 %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user