r-renato / ha-card-weather-conditions

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

Weather icon not showing #55

Open WallyRanson opened 4 years ago

WallyRanson commented 4 years ago

I have been fighting this for a couple of days now and I can not figure out what goes wrong.

I have made the following sensor:

sensor weather_data:

I can see in the developer tool in Home Assistant, that the sensor is there and it has the state set to cloudy. The problem is that the ha-card-weather-conditions is not showing the icon for cloudy. It shows temperature, sun up and down, humidity and even a pollen gauge, but no weather icon.

In the browser log it has an entry that state "Icons issue. States: icon_model=climacell - isDay=false - condition: na." I have tried all the different icon_models and I have waited for night also to see if those variables changed anything, but with no luck. I have then looked at the source code, but I have not really done any coding for years and javascript was never my thing, so I am a bit lost there too.

I was able to put in a few console.info lines here and there and I discovered that the "na" value for condition is set by line 22+23 in the file "ha-cwc-render-summary.ts", but I gave up on going any further.

Can you see what is wrong here?

IrziCZ commented 2 years ago

Was there a solution? I have same issue today...

WallyDW commented 2 years ago

I gave up and instead made my own weather card from a more local weather service. I first tried to implement that into this weather card, but this weather card is hardcoded to the few weather services it support, which means weather services with other notations will not work out of the box.