I’m trying to tweak my compass card, which is set up to show where the sun is around my house.
What I’d like to do now is to change the icon of the sun to a moon, or the css of the background image, based on the sunrise and sunset time:
(logically, when it’s before sunrise and after sunset, I’d like it to be dark, blue, and if it’s after sunrise and before sunset, then be it as it is now).
I’m sure this is very easy for people with homeassistant experience, but I’m totally lost as on how to approach this…!
Thank you in advance!