mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-14 12:56:54 +00:00
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:
parent
03d58ea88c
commit
c474ebb953
@ -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**.
|
||||
|
Loading…
x
Reference in New Issue
Block a user