Added example based on event platform (#6435)

* Added example based on event platform

Persistent notification automation example based on event platform

* Minor changes
This commit is contained in:
Jeppe Ladefoged 2018-10-02 18:18:49 +02:00 committed by Fabian Affolter
parent c194908626
commit 6e4bb8274d

View File

@ -56,6 +56,29 @@ action:
notification_id: "1234"
```
This automation example shows a notification when the Z-Wave network is starting and removes it when the network is ready.
```yaml
- alias: 'Z-Wave network is starting'
trigger:
- platform: event
event_type: zwave.network_start
action:
- service: persistent_notification.create
data:
title: "Z-Wave"
message: "Z-Wave network is starting..."
notification_id: zwave
- alias: 'Z-Wave network is ready'
trigger:
- platform: event
event_type: zwave.network_ready
action:
- service: persistent_notification.dismiss
data:
notification_id: zwave
```
### {% linkable_title Markdown support %}