Parabolic Light Transition

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

This script/blueprint can be used to transition a light’s brightness and color temperature along a parabolic curve. I personally call it in an automation as a gentle wakeup alarm in the morning. The blueprint github repository can be found here.

For reference, here are some example parabolic curves:


Note that the number in superscript after the x is the “exponent” which you would provide to the script to get the curve you desire. All numbers greater than 0 should work.

This script was originally inspired by Steriku’s work on a parabolic alarm, which can be found here.

This is my first attempt at a home assistant script, so if there are rough edges let me know so I can iron them out. Tons of credit goes to Steriku for building the original script that I overhauled to make this one. Their script was invaluable as a reference and a template while I experimented/learned how to build half of this stuff.

For future improvements, my goal is to adapt this script to accept multiple lights instead of a single light. The challenges I foresee (and could use some help figuring out) are as follows:

  1. The ability to stop adapting lights that receive commands from other sources, e.g. if a user manually sets the brightness/color/state of a light stop adapting that one (and keep adapting the rest). Similar to the check in the current script to only adapt the light if it remains on, but more robust and with multiple lights.
  2. Adapting each light from its own starting brightness/color temperature. Honestly this one may be insurmountable. Without running separate instances of the repeat block for each light with their own variables I don’t see how it can be done. But I’m a noob so maybe y’all have an awesome answer.
1 Like

Hello John,

Thanks for contributing to the community with a new Blueprint.

I have a suggestion for you. Many people who are not familiar with directory structures will have problems installing this without the Home Assistant MY tools.
Adding a MY link for this Blueprint to your top post would help them a lot.
Here is the link to make that.

Create a link – My Home Assistant

Done! Thanks for the great tip! How easy would it be to make it look like those nice add to my home assistant links I am used to seeing in the documentation?

That link will do that. Select the markdown one.

All I had to do was scroll down T_T
Thanks!

1 Like

Thanks, I’ve just started migrating some of my Hubitat automations over to HA and this looks perfect to replicate part of my current behaviour.

Might be a daft question (as I’m still getting to grips with HA) but how do you parse the input values to the script?

I’ve imported the Blueprint & made a script off the back of it, but they show has having no inputs? I’m looking to call it as part of an automation I’ve written (got the script trigger created okay).

Thanks