I am trying to setup the new alert feature and I dont understand the notifiers-option.
In automation, I add notifiers by adding it as an action, for example:
action:
service: notify.facebook
data:
message: ‘Good Evening’
target:
- +919784516314
If I add notifiers according to the alert example:
Example configuration.yaml entry
alert:
garage_door:
name: Garage is open
entity_id: input_boolean.garage_door
state: ‘on’ # Optional, ‘on’ is the default value
repeat:
- 60
notifiers:
- notify.facebook
How can I add target data for example? And payload (message)?
As I understand it the ‘name’ field is the message that is sent. It is literally an alert that a condition is met (and continues to be met for the repeating interval).
So for anyone else who runs into this thread looking for the answer to this, check out notifier groups. You can create a notifier group with a single entry where parameters other than message can also be specified (such as target). You can then use this in an alert.