New to HA but really happy with it so far. The big thing I’d like to refactor in my config right now is consolidating/centralizing notification management. Currently I have different notification destinations tacked on to each automation, some to Slack, some to the mobile app, some to media players, etc. It feels kind of scattered and messy.
Ideally I could have one notification script that would receive some passed variables and decide which destinations to notify, and then just call that script with the right data parameters.
I’ve been looking for examples of this, and can’t find anything current. I’m unclear on just how the conditional logic in a script could work to only fire one or more actions if certain passed variables are true…so even an unrelated example of that would be helpful.
(Of course, if I’m thinking about this all wrong, glad to hear that too!)
Thank you.