mishaaq / sun-card

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

Not working with HA 0.110 #22

Closed PierreScerri closed 4 years ago

PierreScerri commented 4 years ago

Describe the bug A clear and concise description of what the bug is. The card does not work with HA 0.110. Nothing is displayed.

To Reproduce Steps to reproduce the behavior: Upgrade to HA 0.110

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

mishaaq commented 4 years ago

Could you elaborate more? I've updated my local HA and it works well. Please share a screenshot, configuration of the card, HA server logs, console log. Do you have Sun2 custom component installed?

PierreScerri commented 4 years ago

The card was working in HA 109. So the config must have been fine. The card configuration is the same as it was before:

entities:
  max_elevation: sun.sun
  moon: sensor.moon
  moon_phase: sensor.moon
  noon: sensor.solar_noon
  sunrise: sensor.sunrise
  sunset: sensor.sunset
  time: sensor.time_utc
meridiem: false
name: Sun
type: 'custom:sun-card'

Screenshot of card in 'Edit' mode otherwise there is nothing: Screenshot 2020-05-23 at 11 32 05

Sun2 config:

- platform: sun2
  monitored_conditions:
    - solar_midnight
    - astronomical_dawn
    - nautical_dawn
    - dawn
    - sunrise
    - solar_noon
    - sunset
    - dusk
    - nautical_dusk
    - astronomical_dusk
    - daylight
    - civil_daylight
    - nautical_daylight
    - astronomical_daylight

These are the files for sun2:

Screenshot 2020-05-23 at 11 11 51

And the console log: Screenshot 2020-05-23 at 11 27 27

mishaaq commented 4 years ago

Did the bug appear after upgrading to 0.110? What version did you have before? What language have you set in Home Assistant configuration?

PierreScerri commented 4 years ago

As previously noted, the card was working with 109. It appeared after upgrading to 110. Default language is English (GB). Changed it to English and the card works.