Moon rise / set

Would really like the equivalent to the sun sensor for the moon so I can know if the night sky is dark enough to see the aurora after the sun is set.

Is there a similar algorithm that can tell me if the moon is visible in the sky now? Does anyone else use moonrise data?

2 Likes

I just did a quick google search for calculating it, looks like its not too easy but it is doable. There are libraries that already do this that I found on github, but the calculation is complicated enough that it would require you (or someone) to create a separate component.

Any update on this request? I also have an observatory and would like to be able to show moon rise and moon set times in HA.

Thanks for the update.

2 Likes

the new astral library (v3.0) supports moon rise, so now this must be added to HA.