I got the link working by following what the My integration was passing along and it’s redirecting to https://raw.githubusercontent.com/edwardtfn/ha_blueprints/main/script/EdwardTFN/blink_lights.yaml (the automation link). Maybe the links need corrected to point to the raw.githubusercontent.com domain?
Hey!
Sorry, let me try to clarify:
- When I click on the import button then open it in HomeAssistant, it gives the link https://github.com/edwardtfn/ha_blueprints/raw/main/script/EdwardTFN/blink_lights.yaml to HomeAssistant
- When I open that link directly (outside of HA), it redirects me to https://raw.githubusercontent.com/edwardtfn/ha_blueprints/main/script/EdwardTFN/blink_lights.yaml
Maybe the redirect is confusing HA and causing it to fail?
Aha!
Now I got it! Thanks for clarifying.
What about these new links:
If this one works I will fix on all my previous posts.
That did it! No more errors for me when trying to import either of them
By looking at your automation and your script to blink lights, I can see it uses mode: single
, which means multiple simultaneous executions will be ignored. I imagine this is probably fine if each script/automation instance only controls a single subset of the lights. However, if someone tries to be “smarter” and make the script (or automation) take the lights as parameters, then we are in trouble.
For me, this is yet another example of a subtle way things can go wrong because there is no native support for blinking in HA core. Which is yet another argument in favor to what I asked in the top of this thread.
(Note: I have nothing against you, @EdwardTFN, and nothing against your blueprints.) (Note 2: I haven’t had time to try your blueprints, and thus haven’t tried under those racing conditions.)
@ EdwardTFN Thanks for the blueprints. I can’t get the script blueprint to show any inputs though. I suspect fields
should be input
?
Edit:
Something like this? https://gitlab.com/filmkorn/ha_blueprints/-/raw/main/blink_lights.yaml
For anyone reading - light.toggle
is unreliable. if your lights support it, use light.turn_on service’s flash
option.