It doesn’t say it in text, but there’s a chart on that page a little below what I linked that explains it. Can’t imagine a sun condition would work without the sun.sun entity (which you get by having sun: or default_config: in your config).
Okay, but if you extend your logic 01:00 would be valid (and maybe elevation is still dropping) but how about 02:00, 03:00, 08:00, 10:00, 12:00, 13:00 ???
Where exactly would you draw the line ?
That’s why these things are generally on a day basis.
You could say: after sunset OR before sunrise
But it’s just easier to say ‘below_horizon’
exactly what I thought after that below_horizon topic…
Also, I’m not 100% sure but it looks that for the condition to work using sunset/sunrise we need to use both as otherwise it’s open for discussion (actually, it’s not looking at the visual timeline provided in the docs)
yeah, in a way but I feel that’s not enough…
looking at the code I can see that they use astral library.