mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 09:17:06 +00:00
Update with grouping of notifications (#6410)
* Update with grouping of notifications Also two minor changes to sentences about iOS 10 to reflect that there is newer versions out now. * Minor tweaks
This commit is contained in:
parent
5e3eb19a6c
commit
268366c62e
@ -14,7 +14,7 @@ The iOS notify platform accepts the standard `title`, `message` and `target` par
|
|||||||
|
|
||||||
Notes:
|
Notes:
|
||||||
|
|
||||||
* `title` only displays on Apple Watch and iOS 10 devices.
|
* `title` only displays on Apple Watch and devices with iOS 10 or above.
|
||||||
|
|
||||||
* `target` can be used to specific a single device using its PushID, found in `ios.conf`. The preferred way of providing a target is through a target specific notify service.
|
* `target` can be used to specific a single device using its PushID, found in `ios.conf`. The preferred way of providing a target is through a target specific notify service.
|
||||||
|
|
||||||
@ -44,7 +44,7 @@ automation:
|
|||||||
```
|
```
|
||||||
|
|
||||||
#### Subtitle
|
#### Subtitle
|
||||||
iOS 10 supports a subtitle in addition to the title:
|
Starting with iOS 10, a subtitle is supported in addition to the title:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
automation
|
automation
|
||||||
@ -60,6 +60,25 @@ automation
|
|||||||
subtitle: "Subtitle goes here"
|
subtitle: "Subtitle goes here"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Thread-id (grouping notifications)
|
||||||
|
Starting with iOS 12, grouping of notifications is supported. All notifications with the same thread-id will be grouped together in the notification center. Without a thread-id, all notifications from the app will be placed in a single group.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
automation:
|
||||||
|
- alias: Notify iOS app
|
||||||
|
trigger:
|
||||||
|
...
|
||||||
|
action:
|
||||||
|
service: notify.ios_<your_device_id_here>
|
||||||
|
data:
|
||||||
|
title: "Smart Home Alerts"
|
||||||
|
message: "Something happened at home!"
|
||||||
|
data:
|
||||||
|
push:
|
||||||
|
thread-id: "example-notification-group"
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
### {% linkable_title Sending notifications to multiple phones %}
|
### {% linkable_title Sending notifications to multiple phones %}
|
||||||
To send notifications to multiple phones, create a [notification group](/components/notify.group/):
|
To send notifications to multiple phones, create a [notification group](/components/notify.group/):
|
||||||
```yaml
|
```yaml
|
||||||
|
Loading…
x
Reference in New Issue
Block a user