mishaaq / sun-card

Lovelace card for sun component - Home Assistant
MIT License
51 stars 10 forks source link

Card not displaying Sunrise #2

Closed Codename-11 closed 5 years ago

Codename-11 commented 5 years ago

Hello, I'd first and foremost like to say I really enjoy your component and I have been waiting for something like this!

I'm having a small bit of trouble though. The card only display's Sunset. I know there's been some talk of an issue with the default sun component but there wasn't any indication of this affecting your component. Any ideas? Thanks!

Hardware: Raspberry Pi 3 System: HassIO System Version: 0.92.2 Installation Method: Automatic - Custom_Updater Card Version: 2.0

image

mishaaq commented 5 years ago

Hi @Tim-Dixon! Do you use Extended Sun component? I assume you don't. Default Sun component included in Home Assistant provides information about next occurrence of sunset/sunrise only, so I can't display information about past sunrise. When you wake up before sunrise you will be able to see it in the card 😄. Accordingly you won't be able to see sunset in the card after... uhm... sunset 😄. The only solution is to use Extended Sun component from https://github.com/pnbruckner/homeassistant-config/blob/master/docs/sun.md which provides necessary information.

Anyway thanks for pointing me a lack of information about it in the readme file.

Codename-11 commented 5 years ago

I have not had any experience with said component, but I will install it now! Interesting that the default component doesn't provide that information by default... Anyway, my apologies for not having that prerequisite already. I wasn't positive on if it was something I had done incorrectly or not. I'm glad I could be of some use at least :). Thanks for the quick response!