Notify Group
The group
notification platform allows you to combine multiple notify
platforms into a single service.
Configuration
# Example configuration.yaml entry
notify:
- name: NAME_OF_NOTIFIER_GROUP
platform: group
services:
- service: html5
data:
target: "macbook"
- service: html5_nexus
Configuration Variables
- name
(string)(Required)
Setting the parameter
name
sets the name of the group.- services
(list)(Required)
A list of all the services to be included in the group.
- service
(string)(Required)
The service part of an entity ID, e.g. if you use
notify.html5
normally, just puthtml5
. Note that you must put everything in lower case here. Although you might have capitals written in the actual notification services!- data
(string)(Optional)
A dictionary containing parameters to add to all notify payloads. This can be anything that is valid to use in a payload, such as
data
,message
,target
ortitle
.
Example
An example on how to use it in an automation:
action:
service: notify.NAME_OF_NOTIFIER_GROUP
data:
message: "The sun is {% if is_state('sun.sun', 'above_horizon') %}up{% else %}down{% endif %}!"