I think I finally have a uses case for a script but I don’t know how to implement it. So far, I’ve only been working lightly in the Automation space and I haven’t found a need for a script until now. I’m hoping that I can explain this clearly to get some help.
I have 2 separate automations that I want to include a notification but only if myself, my spouse, or both of us are home. Right now, my first automation has it built directly into the actions and I realized how painful it would be to have to copy/paste each step to the other automation and that has led me to trying out a Script for the first time.
With this in mind, how to I pass a variable to the script that says that it was triggered by Automation A vs Automation B, and in such a way that the variable makes the notification unique to the situation?
Example: “Don’t forget to swap the laundry!” vs “The freezer door was left open!”