aukedejong / lovelace-windrose-card

Home Assistant Lovelace Windrose Card
82 stars 3 forks source link

empty panel after HA update to 2023.6.1 #30

Closed TobiasSchwarz74 closed 1 year ago

TobiasSchwarz74 commented 1 year ago

After updating HA to version 2023.6.1 there is only an empty panel. Using latest windrose card version 1.0.0.

  - type: custom:windrose-card
    windspeed_bar_full: true
    speed_range_beaufort: false
    input_speed_unit: kph
    output_speed_unit: kph
    cardinal_direction_letters: NOSW
    windspeed_entities:
      - entity: sensor.gw1100a_v2_2_3_wind_speed
        name: ''
    wind_direction_entity:
      entity: sensor.gw1100a_v2_2_3_wind_direction
olivierouellet commented 1 year ago

Remove the input_speed_unit and put speed_unit under windspeed_entities

wind_direction_entity:
  entity: sensor.gw1100a_v2_2_3_wind_direction
windspeed_entities:
  - entity: sensor.gw1100a_v2_2_3_wind_speed
    speed_unit: kph

If it remains blank, please use Chrome and go to View > Developer > Developer tools. Do you see any error?

TobiasSchwarz74 commented 1 year ago

that was not the problem, but i think i found it:

The problem is "hours_to_show" - if you choose a time range, that is not available in the history, the panel stays empty! The update of HA seems to clear some history data of my weather station, so 4 hours after the update, the panel is woring again (with default 4h setting).

olivierouellet commented 1 year ago

Maybe same issue as #26 then.

If you do a full restart of Home Assistant, does the card go blank again? Any errors in the Developper tools?

ildar170975 commented 1 year ago

In my case the card is not displayed at all: изображение

It is displayed in Editor as blank: изображение

See no errors in Code Inspector. But when I open Editor - only then I see an error: изображение


Found an interesting thing: Decreased hours_to_show to 2 hours and got a picture! It is displayed with a value <= 8: изображение

And probably a reason is that in ~13:10 .. 13:15 interval (about 8 hours ago) the wind_speed entity became unavailable: изображение

The latest 1.0.1 release fixed "direction is not a number" issue; probably same should be done with a wind speed.

aukedejong commented 1 year ago

Can you add log_level: DEBUG to your config and post the browsers console output here?

ildar170975 commented 1 year ago

The code:

type: custom:windrose-card
title: Wind direction
wind_direction_entity:
  entity: sensor.xxx_gismeteo_wind_bearing
windspeed_entities:
  - entity: sensor.xxx_gismeteo_wind_speed
    name: Home
hours_to_show: 8

изображение

Chrome + Win10.

The card is still not displayed (F5 does not help): изображение

There are no errors in Code Inspector.

In Editor - the card is displayed: изображение

Still no errors in Code Inspector.


With hours_to_show: 9 - a blank card in Editor: изображение

Errors in console: изображение

And still not displayed here: изображение


As for Log, restarted HA with debug logging, will post later.

aukedejong commented 1 year ago

I think I found the problem. Testing the fix right now.

You don't need to restart HA for card config changes. Also not when you update the card version. Browser cache referesh is sometimes needed.

ildar170975 commented 1 year ago
  1. I always clear cache after updating any Lovelace plugin & updating HA (using HA in Docker).
  2. I was talking about a restart after adding "log_level: DEBUG".
aukedejong commented 1 year ago

Version 1.0.2 released.

ildar170975 commented 1 year ago

@aukedejong Thank you very much, now I can see a card even with hours_to_show: 168.

But still the card may not be displayed: изображение I will create a separate issue for this then.

aukedejong commented 1 year ago

Glad this works. I'll close this issue. Thanks.