bramkragten / weather-card

Weather Card with animated icons for Home Assistant Lovelace
MIT License
502 stars 174 forks source link

Forecast times all the same #67

Open PierreScerri opened 4 years ago

PierreScerri commented 4 years ago

When I select 'Show hourly forecast' all the times are the same and the data does not change, as shown in the screenshots.

This is 'Show Hourly Forecast' on: Screenshot 2020-08-18 at 12 36 15

This is 'Show Hourly Forecast' off: Screenshot 2020-08-18 at 12 45 29

current: true
details: true
entity: weather.home
forecast: true
hourly_forecast: true
number_of_forecasts: '5'
type: 'custom:weather-card'
ipetrovits commented 4 years ago

Hi, if you check the temp values, this is still showing the daily data. Your weather entity describes if it is hourly or daily forecast. If daily, you'll get the same timestamp and dates will only change. Resolution is to create a hourly entity, or use both:

weather:
  - platform: openweathermap
    api_key: ***
    name: owm_daily
    mode: freedaily
  - platform: openweathermap
    api_key: ***
    name: owm_hourly
    mode: hourly
PierreScerri commented 4 years ago

Thank you. That is why I posted this in the first place. I cannot get the weather-card to display hourly forecast. My weather entity is this: Screenshot 2020-08-20 at 20 21 02

How can I create an hourly entity?

I imagine that an hourly forecast would display consecutive hours not all the same.

ipetrovits commented 4 years ago

Maybe it is because of some new feature, but when I added the above integration, it automatically added a daily and a hourly entity. Try to remove and readd, see what happens ;)

PierreScerri commented 4 years ago

No. Still the same.

Out of curiosity, wht are the names of the 2 entities you have?

I only have 1 entity: weather.home

tayuki commented 3 years ago

I had the same problem.

The entity weather.home_hourly was registered, but the status was disabled and could not be used. I changed the status to enable from the entity list and the problem was solved.

It was also possible to solve this problem by using the openweathermap integration. However, you will need to obtain an API key for Openweathermap.

PierreScerri commented 3 years ago

I could not find weather.home_hourly in my system.