You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've setup two integrations with OpenWeatherMap (using the OneCall API). The first one retrieves hourly forecasts and is known as entity.openweathermap. The second one fetches daily forecasts and is known as entity.openweathermap_daily.
sensors are named accordingly. Those associated with the hourly forecast are named sensor.openweathermap_cloud_coverage. The same sensor associated with the daily forecasts is named sensor.openweathermap_cloud_coverage_daily
Note
I first created the subscription to the hourly forecast. Next, I added a second integration using the daily forecast. The latter was originally named entity.openweathermap_2, but I renamed it to entity.openweathermap_daily (and all of its sensors).
Issue
Create v-weather-card card in Lovelace with the following configuration:
Here, things are broken as the card is simply not displayed (note that I'm using the correct entity for hourly forecasts). If I set hourly_forecast to false without changing anything else, the card is rendered. It is however not using the time as a reference for each of the forecasts, but repeats the day names:
Additional information:
Looking at the code, I suspect line 321 in card.ts to be the source of the issue. It seems when hourly_forecast is enabled, the suffix _hourly is appended to the entity's name. In reality, this entity does not need to have that name. You just need to know you configured an entity to fetch hourly predictions. SO my guess is that you don't need to append anything to the entity's name. A user just need to make sure that the correct entity is used when suggesting it provides hourly forecasts.
The text was updated successfully, but these errors were encountered:
Tried to dig a bit deeper into the issue by creating an entity weather.openweathermap for the daily forecasts and one named weather.openweathermap_hourly for the hourly forecasts. Assumed that pointing v-weather-card to the one without the _hourly suffix would make the card behave as intended when hourly_forecast is enabled. Didn't do the trick however... So, not sure if the above assessment makes any sense...
Checklist:
Release with the issue:
Last working release (if known):
Browser and Operating System:
Description of problem:
Context
entity.openweathermap
. The second one fetches daily forecasts and is known asentity.openweathermap_daily
.sensor.openweathermap_cloud_coverage
. The same sensor associated with the daily forecasts is namedsensor.openweathermap_cloud_coverage_daily
Note
I first created the subscription to the hourly forecast. Next, I added a second integration using the daily forecast. The latter was originally named
entity.openweathermap_2
, but I renamed it toentity.openweathermap_daily
(and all of its sensors).Issue
weather.openweathermap_daily
entity.hourly_forecast
tofalse
without changing anything else, the card is rendered. It is however not using the time as a reference for each of the forecasts, but repeats the day names:Additional information:
Looking at the code, I suspect line 321 in card.ts to be the source of the issue. It seems when
hourly_forecast
is enabled, the suffix_hourly
is appended to the entity's name. In reality, this entity does not need to have that name. You just need to know you configured an entity to fetch hourly predictions. SO my guess is that you don't need to append anything to the entity's name. A user just need to make sure that the correct entity is used when suggesting it provides hourly forecasts.The text was updated successfully, but these errors were encountered: