this post was submitted on 02 Dec 2025
1882 points (98.5% liked)

Programmer Humor

27673 readers
511 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] couch1potato@lemmy.dbzer0.com 4 points 3 days ago (2 children)

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.

[–] ilinamorato@lemmy.world 1 points 3 days ago

(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.

[–] AtariDump@lemmy.world 1 points 3 days ago

Yep. You can also use the sun’s position in the sky as well; I had one of the AIs write up the YAML.