Notifications to multiple targets?

How is this done? I’ve tried a couple different ways and always throw errors.
Like this example on the pushbullet component page? where does this snippet even go? Under data? What spaces are required? I’ve tried this and it doesn’t work. It looks a bit like JSON? Any help on this would be great.

{
  "message": "A message for many people",
  "target": [
    "device/telephone",
    "email/[email protected]",
    "channel/my_home"
  ]
}

Hi!
If you’re using notifications in automations this should do the trick…

automation:
  - alias: Evening Greeting
    trigger:
      platform: sun
      event: sunset
    action:
      service: notify.NOTIFIER_NAME
      data:
        message: 'A message for many people'
        target:
          - 'device/telephone'
          - 'email/[email protected]'
          - 'channel/my_home'

BTW: The JSON listed in the pushbullet docs is for calling it as a service from the frontend :slight_smile:

1 Like

Thanks! Yeah idk why they have an example of JSON in the documentation… I’ll see if this works for me!

Not getting this to work… what exactly should the target be? Does device/<devicename> still work in 2024 syntax? Should I use notify.notify for the action?

2 Likes