Lovelace: Sun Card

In case you where wondering, that already works :wink:

Where did you find the sun-card in HACS. Did you added an extra repository?

Yes, just pasted the repo link under settings

1 Like

Under 95.4 sunrise time is not showing – any suggestions?

Did you use “Enhanced Sun” component? You can see only future events using only default sun component so you won’t see a sunrise that occurred in the past. If you installed enhanced sun component check if it works correctly in your installation after the upgrade.

It’s the standard sun component; but it never shows sunrise. Even when past sunset it doesn’t show the pending (future) sunrise.

Ok, so there is a little misunderstanding here. The card shows current sun elevation throughout the day (0:00 to 24:00). Due to limitation of standard sun component there is a depiction of future events only in THAT day. You have to wake up early morning to see the sunrise therefore :slight_smile:. I really recommend to install enhanced component to fully utilize the card.

Ahhhhh, sunrise is at 5:30am so yeah; not seeing it. Will it show up after midnight or just after sunset the prior day?

It shows up from midnight till sunrise same day only.

How can I change the color of the “field” and the “sky”?

I’ve found it :slight_smile:

Any chance you’ll update this to use the Sun2 sensor set rather than the deprecated “enhanced” Sun component?

Working on it at the moment.

2 Likes

Checkout the v3.0 version :slight_smile:

In v3.0 version there is --sc-background CSS variable to change the background easily. Please check it out and leave an opinion.

It is working, thank you! :beers:

can you share how you did it?
how can I disable am/pm text?

With card-modder:

card:
  name: Nap
  type: 'custom:sun-card'
style:
  background-color: 'rgba(0,0,0,0.3)'
  background-image: url("/local/pictures/cardback.png")
  background-repeat: no-repeat
  background-size: 100% 100%
  border: 'solid 1.5px rgba(57,128,228)'
  border-radius: 15px
  '--sc-sunbeam-color': white
  '--sc-event-line-color': white
  '--sc-horizon-color': null
  '--sc-background': >-
    linear-gradient(rgba(1, 1, 254,  0%), rgb(0, 191, 255) 46%, rgb(0, 250, 
    124) 54%, rgba(11, 1,  40,  0%))
type: 'custom:card-modder'

I did not change the card format. Maybe it is depend on the system setup.

1 Like

thank you @krovachek

AM/PM text is too big, how to fix this or better how to get 24hrs instead
image

Please rise a bug for this on github.

1 Like