Hello All,
I found the piece of code below in the sun.sun component and the following explanation for decreasing the precision of sun updates during particular times of day: https://github.com/home-assistant/core/pull/23832
_PHASE_UPDATES = {
PHASE_NIGHT: timedelta(minutes=4 * 5),
PHASE_ASTRONOMICAL_TWILIGHT: timedelta(minutes=4 * 2),
PHASE_NAUTICAL_TWILIGHT: timedelta(minutes=4 * 2),
PHASE_TWILIGHT: timedelta(minutes=4),
PHASE_SMALL_DAY: timedelta(minutes=2),
PHASE_DAY: timedelta(minutes=4),
}
However I need more precise readings during twilight (every 30s) - since this is when I am automating my blinds to be opened. I have created a variable that calculates the cut-off elevation for each day of the year which falls between -12° (for Summer solstice) and 0° (for Winter solstice) and I would like to use that elevation with the highest time precision to open or close my blinds (I find it that values in minutes do make a difference)
Question: Is there a way of configuring the _PHASE_UPDATES on a live system?