rejuvenate/lovelace-horizon-card

Create Home Assistant sensors for the Moon Azimuth and Altitude

philpownall opened this issue · 2 comments

I love the horizon card - so much so that I have created a physical version (using an ESP32 running ESPHome and 2 SG90 servos) to track the Sun (like a Tellurion). I use the Sun altitude and azimuth sensors from the Sun integration in an Automation to set the servo positions on the ESP32.

I would very much like to track the Moon (azimuth and altitude) also, but neither the Moon integration nor the HACS horizon card allow the user to access the information on the Moon - and it is right there in the card!

Would it be possible to create 2 sensors with the Horizon card - namely, Moon Azimuth and Altitude?

Yes, I know I can get this from the Astronomy site, but the information is already in Home Assistant - if only the user could get to it.

Perhaps I should direct this issue to the Home Assistant Moon integration - the code for which gets the Moon phase from the astral python library, and creates the exiting moon phase sensor - it should be relatively easy to create two additional sensors for the Moon Azimuth and Altitude (and maybe that's where the horizon card gets the information from anyway).

Never mind, I found the Astroweather HACS integration.