Update Persistent Notification documentation (#27717)

* Update URL in persistent notification

* Add My Home Assistant URLs

* Fix bug

* Fix bug (attempt 2)
This commit is contained in:
Sven Serlier 2023-06-09 10:21:18 +02:00 committed by GitHub
parent e184574a60
commit 10999f2350
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,7 +28,7 @@ The service `persistent_notification.create` takes in `message`, `title`, and `n
| `title` | yes | Title of the notification. Accepts [templates](/docs/configuration/templating/).
| `notification_id` | yes | If `notification_id` is given, it will overwrite the notification if there already was a notification with that ID.
Here is how an [action](/getting-started/automation-action/) of your [automation setup](/getting-started/automation/) with static content could look like.
Here is how an [action](/docs/automation/action) of your [automation setup](/getting-started/automation/) with static content could look like.
```yaml
action:
@ -90,13 +90,13 @@ The message attribute supports the [Markdown formatting syntax](https://daringfi
### Create a persistent notification
Choose the **Services** tab from the **Developer Tools** sidebar item, then select the `persistent_notification.create` service from the "Service" dropdown. Enter something like the sample below into the **Service Data** field and press the **CALL SERVICE** button.
Choose the **{% my developer_services title="Services" %}** tab from the **Developer Tools** sidebar item, then select the {% my developer_services service="persistent_notification.create" title="`persistent_notification.create`" %} service from the "Service" dropdown. Enter something like the sample below into the **Service Data** field and press the **CALL SERVICE** button.
```json
{
"notification_id": "1234",
"title": "Sample notification",
"message": "This is a sample text"
"message": "This is a sample text."
}
```
This will create the notification entry shown above.