Centralized script for notifications?

I’m thinking of building a script for all kinds of text notifications I have in my automations. The idea is to not having to copy&paste all the usual parameters I use (like ttl, priority etc.) and just pass the important stuff. I’d probably have a parameter to specify the notification method, i.e. via the HA app, Telegram or PC. Additional ideas are a “important” flag that, for HA notifications at least, sets the importance to high and channel to alarm_stream

Do you have something like that? I would love to see some examples

1 Like