aukedejong / lovelace-windrose-card

Home Assistant Lovelace Windrose Card
60 stars 2 forks source link

No longer displaying after switching to Beaufort scale supported by HA 2024.4 #58

Closed ChaoticOrb closed 2 months ago

ChaoticOrb commented 3 months ago

I changed over the units for wind speed and gusts as they are now supported in HA and the windrose stopped displaying. It doesn't error just won't display. If I change back, it works again. Could this be supported?

etmnidj1 commented 2 months ago

Same problem here, card is not displaying anything. Bft would be great! Really like the card; on top of my weatherstation page!

aukedejong commented 2 months ago

Hi I'll try to find the time to fix this. Hopefully it's a quick fix.

aukedejong commented 2 months ago

Update: Just had a quick look at the code and did some tests. I'm not sure it's is a HA bug, but when you change the unit to Beaufort, historical measurements are not changed. The windrose uses history data to create the rose.

So, if the unit switch is within the windrose data period, the windrose will discard measurements or maybe interpret wrong.

Later this week more.

ChaoticOrb commented 2 months ago

Ah good point, it just flips the units over and keeps recording against the same entity. In a couple of other cards it tries to display both B and km/h together which makes a mess. I’ll see if it clears up once the historical data being used is all using Beaufort. Thanks for looking!

aukedejong commented 2 months ago

Release v1.5.0. Should be fixed now. If you have any problems, please let me know.

ChaoticOrb commented 2 months ago

That works perfectly! Thank you