If you’re using home assistant there is a “sun” integration.
My lights turn on 30 minutes before sunset and turn off 30 minutes after sunrise.
My wife didn’t want them turning on and off at the same time every day because observers could see the pattern… at least this way it’s a little more hidden.
(Side note, I just realized I said the times slightly wrong. We actually wanted it on at 6:30 and off 15 minutes before sunrise.)
Yeah, I had it turning off before sunrise just fine. The problem is that we didn’t want to turn them on until 6:30, but on the longest day of the year, sunrise actually happens at 6:14, which means that the lights would get the signal to turn off before they got the signal to turn on, which would mean that the lights would stay on all day until the night automation turned them back off again at 10pm. Which…probably doesn’t make a difference, but it would bug my totally-not-neurodivergent brain.
Anyway, I don’t use Home Assistant, but that’s probably the one I’ll choose the next time I move.
If you’re using home assistant there is a “sun” integration.
My lights turn on 30 minutes before sunset and turn off 30 minutes after sunrise.
My wife didn’t want them turning on and off at the same time every day because observers could see the pattern… at least this way it’s a little more hidden.
(Side note, I just realized I said the times slightly wrong. We actually wanted it on at 6:30 and off 15 minutes before sunrise.)
Yeah, I had it turning off before sunrise just fine. The problem is that we didn’t want to turn them on until 6:30, but on the longest day of the year, sunrise actually happens at 6:14, which means that the lights would get the signal to turn off before they got the signal to turn on, which would mean that the lights would stay on all day until the night automation turned them back off again at 10pm. Which…probably doesn’t make a difference, but it would bug my totally-not-neurodivergent brain.
Anyway, I don’t use Home Assistant, but that’s probably the one I’ll choose the next time I move.
Yep. You can also use the sun’s position in the sky as well; I had one of the AIs write up the YAML.