I used your script as inspiration (and a massive crutch in learning how to write scripts) and overhauled it to make a script which actually transitions along a parabolic curve (with the exponent used being selected by the user, my wife likes to the fourth power for wakeup alarm). Script can be found here and home assistant topic with regard to the same can be found here.
This is my first time writing a script/using github/making an automation in home assistant and I kind of feel like I went off the deep end. I’d really appreciate any feedback.