Secrets to hide email addresses

Can you use secrets to hide an email address used for a notification in an automation

For example

  - service: notify.pushbullet_notifications
    data:
      message: "test notification"
      target:
      - email/[email protected]
      title: "Test"

is is as simple as

  - service: notify.pushbullet_notifications
    data:
      message: "test notification"
      target:
      - email/!secret my_secret_email
      title: "Test"
- service: notify.pushbullet_notifications
    data:
      message: "test notification"
      target:
      - !secret my_secret_email
      title: "Test"

And add the email/ bit to the secret itself.

1 Like

Sweet, thanks. Probably a dumb question, but secrets will work just fine in packages right? Nothing special to do?

Correct :+1:

1 Like