How can I disable the current automation in a blueprint?

I have a blueprint configured that I use for motion lights in many rooms in my house. I’d like to configure the blueprint so that if anyone of the sensors or lights for the automation go offline, it turns off the automation (and sends me a notification). Is there a way to do this without having to create a variable for the user to choose the automation after the create it from the blueprint? Is there a concept of “self”?

This is not an exact answer, but by disabling the trigger you can disable the automation.

See at the very bottom “Disabling a trigger”