added dismiss topic for service (#2693)

* added dismiss topic for service

This file change will be linked to a PR which enhances the `persistent notification` with a "dismiss" service

* Changed the description as requested

Hope you find this version more acceptable. Maybe you can suggest a more suiting description?
This commit is contained in:
tedstriker 2017-06-11 22:54:38 +02:00 committed by Fabian Affolter
parent 03d58ea88c
commit c474ebb953

View File

@ -40,6 +40,21 @@ action:
title: "Custom subject"
```
The service `persistent_notification/dismiss` requires a `notification_id`.
| Service data attribute | Optional | Description |
| ---------------------- | -------- | ----------- |
| `notification_id` | no | the `notification_id` is required to identify the notification that should be removed.
This service allows you to remove a notifications by script or automation.
```yaml
action:
service: persistent_notification.dismiss
data:
notification_id: "1234"
```
### {% linkable_title Create a persistent notification %}
Choose <img src='/images/screenshots/developer-tool-services-icon.png' alt='service developer tool icon' class="no-shadow" height="38" /> **Services** from the **Developer Tools** to call the `persistent_notification` service. Select `persistent_notification/create` from the list of **Available services:** and enter something like the sample below into the **Service Data** field and hit **CALL SERVICE**.