Hacker News new | ask | show | jobs
by tass 1470 days ago
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

1 comments

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!