Hacker News new | ask | show | jobs
by ink_13 1470 days ago
I set up Home Assistant for my parents after their Insteon system turned into a brick. It did a great job of controlling everything, but it seems to think there's an extra sunset at 4:17PM every day which has made scheduling a challenge.
1 comments

The recommended way to automate based on sunset/sunrise is to use sun elevation. That may solve your issue.

I’d be happy to share some yaml from my setup, if you like

This is good to know, and now that you say it makes total sense.

Can you share that yaml?

Looks like I replaced most of what I have with blueprints, though here’s an example of a simple blueprint that just turns something on at your specified sun elevation:

https://gist.github.com/CyanAutomation/1b8bafd033f73e3c24e42...

Important bit is near the bottom, the trigger and condition sections.

It’s possible you could find a blueprint that replaces whatever you were trying to do on your own, too.

Thanks!