Currently I use manual entered helpers for the time to change state of the blinds.
I’d like to change to use elevation and/or azimuth, but I don’t like the idea that it is triggered somewhen and noone is aware when that would be. And home assistant continuously checking where the sun currently is, as if that would change surprisingly.
My idea is to calculate the time the sun will reach some elevation/azimuth (maybe maximum time of both conditions, am not sure by now). This value is the helper which I can show in some dashboard so that everyone can see in the morning when the blinds will go down (if the weather forecast for the day is sunny or the predicted max temperature is too hot). And maybe change that time (as it is the helper value) if that is wanted, maybe one would like to use sunlight some minutes longer.
This way the trigger for the blinds isn’t checked more than once. It is a fixed time. At midnight the time gets calculated and it isn’t continuously checked if some condition is fulfilled which will happen at a given time for sure.
Is that calculation (what is the time the sun reaches some value for azimuth/elevation) available using sun.sun already?
Edit: The discussion about this topic exists. Maybe sun2 helps, and the python package astral being used by Home Assistant provides a function for sun at elevation. It is not that exact, but for the blinds it will do.