Storing notification messages in seperate yaml

As I use several Notification (to mobile) for both me and my wife, I thought it would be nice to store them seperately. Also because I use English (for myself) and translated Dutch messages (for my Wife) besid eeach other. Like the “secrets.yaml” I expected this could work similar.

I’ve created a “notifications.yaml” and tried to grab the texts in the notification service. Neverthels this didn’t worked. In the notification sent to my mobile the title and message were the exact text, not the intended text from “notifications.yaml”

Is this possible, should I do this in another way, can this be integrated, … Someone?

Thanx in advace for looking into this!

image

image

There’s no such feature.

You’ll need to keep hacking it into your secrets file.

You could also make a bunch of input text helpers and then reference those in templates.

Or you could make a script that scans your YAML for tokens and replace each with the corresponding message from your own dictionary (and thus mimicking the secrets functionality).

Off course adding these into the secrets.yaml is a solution I didn’t think off. Not the neatest solution, nevertheless a solution to fit my idea (at least for now).

Thanks!

1 Like