mlamberts78 / weather-chart-card

Custom weather card with charts.
MIT License
294 stars 35 forks source link

After 2024.4.0 update entity not found for forecast #157

Closed bvdkerkhof closed 6 months ago

bvdkerkhof commented 6 months ago

Describe the bug After upgrading to HA 2024.4.0 the card stopped working, it tells me to check the entity.

To Reproduce Steps to reproduce the behavior:

  1. just open the card

Expected behavior Expected to show the information

Desktop (please complete the following information):

Additional context Guess this is due the removal of the "forecast" in the weather entity. So the forecasts are not as an attribute shown anymore.

mlamberts78 commented 6 months ago

Please provide more information. Which weather integration are you using? Provide the output of the forecast data (developer tools - services - get forecasts)

Loman0815 commented 6 months ago

I do have the same problem since updating to 2024.4.0. I tried it with weather.home and weather.openweathermap.

Here an example of the weather.home output:

weather.home:
  forecast:
    - condition: partlycloudy
      datetime: "2024-04-05T10:00:00+00:00"
      wind_bearing: 279.8
      temperature: 20.9
      templow: 6.1
      wind_speed: 17.6
      precipitation: 0
      humidity: 71
    - condition: partlycloudy
      datetime: "2024-04-06T10:00:00+00:00"
      wind_bearing: 356.2
      temperature: 23.7
      templow: 6.4
      wind_speed: 9
      precipitation: 0
      humidity: 61
    - condition: partlycloudy
      datetime: "2024-04-07T10:00:00+00:00"
      wind_bearing: 239.2
      temperature: 22.4
      templow: 7.6
      wind_speed: 7.2
      precipitation: 0
      humidity: 65
    - condition: partlycloudy
      datetime: "2024-04-08T10:00:00+00:00"
      wind_bearing: 85.1
      temperature: 22.2
      templow: 8.4
      wind_speed: 6.1
      precipitation: 0
      humidity: 55
    - condition: rainy
      datetime: "2024-04-09T10:00:00+00:00"
      wind_bearing: 234.8
      temperature: 18.5
      templow: 8.2
      wind_speed: 19.1
      precipitation: 4.4
      humidity: 57
    - condition: cloudy
      datetime: "2024-04-10T10:00:00+00:00"
      wind_bearing: 237.7
      temperature: 9.1
      templow: 7.4
      wind_speed: 11.2
      precipitation: 4.1
      humidity: 78
mlamberts78 commented 6 months ago

Very strange, I cannot reproduce this issue. Can you provide a screenshot of the error message and also some console logging from the browser? https://support.happyfox.com/kb/article/882-accessing-the-browser-console-and-network-logs/#:~:text=Console%20Logs%20in%20Chrome%3A,Opt%20%2B%20J%20(Mac).

Loman0815 commented 6 months ago

Sure. Error message:

image

Console logging:

image

mlamberts78 commented 6 months ago

"Please, check your weather entity" error message will be displayed when:

The weather object itself is undefined or null. The weather.attributes object is undefined or null.

Can you also give me a screenshot if the status of your weather entity? Developer tools - states: Filter on weather.

Loman0815 commented 6 months ago

Looks good for me:

image

mlamberts78 commented 6 months ago

Can you try to redownload the card via HACS to make sure you have the latest version? (Version should be V2.4.5) Also check your configuration.yml and make sure there is no configuration for an older version of this card.

bvdkerkhof commented 6 months ago

Thank you both for the troubleshooting, i just noticed the mail flow and the questions. I have removed the sources in the Settings --> Dashboard --> Sources. There where 2 sources, one from HACS and one manually installed (version 1.2??).

Just removed them both and redownloaded the card through HACS. After reload the card now seems to work. So i notice some strange behavior for the card working sometimes and sometimes it is not working. Lets see if this solves the issue. Thank you!

Loman0815 commented 6 months ago

Yes had something similar:

image

After deleting the local ressource the card poped up again. Thanks for help :-)