Why is it that only scene selection allows variables in the visual editor? Also, is there a way I can fix my Trigger ID field to allow dynamic values like the scene selector?
That works, but it doesn’t give me any documentation as to the names I’m expecting in the script for these trigger names. Is there a way to document that cleanly?
Assuming you have an input field trigger_id and some value passed from the originating automation trigger.id, it overwrite the value of trigger_id with the value from trigger.id if the value of the input field is “Default”.
Wasn’t the whole thing from your original post that you were passing the trigger variable from you originating automation?
When you don’t post the current version of the script in question we can only guess what you are trying to do…
The worst part about this is tracing down issues. For some reason, there’s no global trace where I can look up and automation and find each path it took all the way down the chain, but I’ve got this set finally.
Ideally, I’d have some sort of Blueprint that allowed adding triggers much easier than just calling into a script. Then I could build in the Trigger ID for a set of devices, but that’s not something Home Assistant makes easy. Blueprints are supposed to be a way to make Automations easier to create, but they’re all YAML, and they’re incredibly difficult to debug.
Yeah. I’d like to create Blueprints like I create Automations or Scripts. I want it to be a first-class citizen. That way, not only can I share Blueprints with my folks, I can create them for myself too. One place to manage the code for a bunch of Automations.