WTH is so difficult to make a light blink for a couple of seconds?

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?

I didn’t got you point, @AnvilPaladin. Aren’t those two links just the same?

Hey!

Sorry, let me try to clarify:

Maybe the redirect is confusing HA and causing it to fail?

Aha!
Now I got it! Thanks for clarifying.

What about these new links:

As an automation:
Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

As a script:
Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

If this one works I will fix on all my previous posts.

1 Like

That did it! No more errors for me when trying to import either of them :slight_smile:

1 Like

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.)

1 Like

@ 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.