Developing Blueprints

Hello!

What is the best way to edit a blueprint and use it afterwards?

I wrote a blueprint, i moved it into the blueprints dir, i created an automation using that blueprint, it doesn’t work. So I’m trying to change the blueprint an re-run the automation. But it doesn’t pick up the changes in the file on disk. Reloading automations hass-cli service call automation.reload doesn’t work either. Re-importing blueprints re-loads the blueprint from the repository and overwrites all my local changes (WTF?).

How do I make this work?

Also: is there some way to test these blueprints in a more refined way? Is it possible to mock some inputs and just run the blueprint from a cli, like when I run a test in code? How are people who are writing blueprints doing this in practice? Right now I’m changing the blue print, try to reload it somehow, and then I have to walk over do whatever triggers the automation and hope I see something useful in the trace viewer which is not the case when i run the automation manually. How does your blueprint-development workflow look like?

To reload automation blueprints, reload automations.
To reload script blueprints, reload scripts.
If you are using Code server or VSCode and the home assistant extension, you can pick those up in the F1 menu.