This is good to know, and now that you say it makes total sense.
Can you share that yaml?
Looks like I replaced most of what I have with blueprints, though here’s an example of a simple blueprint that just turns something on at your specified sun elevation:
https://gist.github.com/CyanAutomation/1b8bafd033f73e3c24e42...
Important bit is near the bottom, the trigger and condition sections.
It’s possible you could find a blueprint that replaces whatever you were trying to do on your own, too.
I’d be happy to share some yaml from my setup, if you like