AitorDB / home-assistant-sun-card

Home assistant sun card based on Google weather design
MIT License
409 stars 187 forks source link

some configuration options not working #72

Closed squirtbrnr closed 3 years ago

squirtbrnr commented 3 years ago

I tried configuring the card and it seems like only some of the configuration options are working. I wanted to use 24 hour time, and show the azimuth and elevation. However, only the title and language options have any affect on the card when I refresh/clear cache.

My config is:

      - type: 'custom:sun-card'
        title: Sunrise & Sunset
        language: en
        fields:
          - azimuth: true
          - elevation: true
        use12hourClock: false

The title shows up and changes, the language changes if I use another language. The times are still in 12 hour format and azimuth and elevation do not show. I even tried the following config and there was no change to the display:

      - type: 'custom:sun-card'
        use12hourClock: false

There are no errors in the logs.

wasyl00 commented 3 years ago

I have the same problem. Can't force 24 hour clock. My config is below but I force 24 hours clock in user profile in the latest release 2021.6.0

unit_system: metric time_zone: Europe/London

use12hourClock: false <-does not work for me.

AitorDB commented 3 years ago

My bad, Github is showing the develop branch instead the main one, I need to fix that, in the current version you need to use timeFormat: '24h'

wasyl00 commented 3 years ago

Works now, thanks!

AitorDB commented 3 years ago

No problem! next version will change it but it will include a visual editor so it will be easier to set up

squirtbrnr commented 3 years ago

thanks, that fixed the 24h format. However, my elevation and azimuth is still not showing up.

      - type: 'custom:sun-card'
        fields:
          - azimuth: true
          - elevation: true
        timeFormat: '24h'
Screen Shot 2021-06-03 at 11 30 47 PM
squirtbrnr commented 3 years ago

never mind. I see those options are different now on the readme. Probably like the timeFormat, these options are slightly different from the dev branch.