r-renato / ha-card-weather-conditions

Weather condition card (Lovelace) for Home Assistant.
MIT License
191 stars 37 forks source link

Moon_Phase doesn't show anything #68

Open fa-ve opened 3 years ago

fa-ve commented 3 years ago

after a "fix" in CC we have a 5 day state of the moon, but when adding one of the sensors to the card nothing show's up.

r-renato commented 3 years ago

Install the latest version of the card and use your sensor...._moon_phase_0d

fa-ve commented 3 years ago

I did, but don't show anything, have the following:

type: 'custom:ha-card-weather-conditions' name: [] language: nl animation: true weather: icons_model: climacell current: sun: sun.sun moon_phase: sensor.cc_weather_moon_phase_0d

gio82c commented 3 years ago

I have a similar problem, i see only the description, in English even if I have specified the language "it", and no icon.

the0ckid82 commented 3 years ago

having the same issues as well card and provider are updated to current versions, I now have the 5 sensors for moon phases but when put in to the card they always display ERR but when checked in the developer tool they are showing the correct phase

romquenin commented 3 years ago

Hey @r-renato, we definitely have a problem with the Moon_Phase display with your awesome card.

After having spent some time spying on this issue i can now presume that the icon and the translation will only be displayed when the moon state contains "one word" ( like full:"🌕" or new:"🌑") Screenshot 2021-02-18 at 22 13 41

I hope you will find some time to locate and fix this issue.

Thank you for your amazing work.

Houdoe commented 3 years ago

I added to configuration.yaml:

sensor:
  platform: moon

and the card:

weather:
  icons_model: defaulthass
  current:
    sun: sun.sun
    moon_phase: sensor.moon

that seems to work.