DavidFW1960 / bom-weather-card

Custom Animated Weather Card for any weather provider
Apache License 2.0
162 stars 37 forks source link

Card doesn't work well with HA 2022.6.x #98

Closed bieniu closed 2 years ago

bieniu commented 2 years ago

After update HA to 2022.6.3 the card doesn't work and there is an error in the browser console:

image

I have this problem on Opera (Windows) and on HA Companion App (Android).

rudders commented 2 years ago

And on Companion App iOS

andriej commented 2 years ago

can confirm, same on Chrome and Companion after update to 2022.6.3

DavidFW1960 commented 2 years ago

There was an issue recently with browsers but it didn't cause and console errors but the layout of the card was screwed up. I am on 2022.6.4 and My card is displaying perfectly.

Do you all have the latest version of the card and have you tried hard clearing the cache (F12 in chrome for dev tools and right click refresh select clear cache and hard reload) You may also need to refresh (CTRL+R) a few times.

@Makin-Things Simon can you add anything to this?

We did recently add a whole lot of error checking into the card. We are currently rewriting the card in Typescript. The new card is in beta now and should bring in any options from the YAML. It will also allow full GUI config. Typescript prevents some console errors we were seeing but none prevent the card from loading. The test repo is here: https://github.com/Makin-Things/makin-things-weather-card which can be added into hacs. Or download manually (don't forget to add the resource) Just change the card type to custom:weather-card and it will load the old lovelace config. Backup the card config first as the new one is making some changes (Or add to a new dashboard) Feedback is welcome.

DavidFW1960 commented 2 years ago

This is my old card with the new card adjacent to it in 2022.6.4 image

Makin-Things commented 2 years ago

I occasionally see an error in the actual card on refresh, but it disappears really quickly and shows the card correctly. This seems to only happen on a card I have inside a grid card though. I don't get any errors in the console log. I am also on 2022.6.4 with the latest browser version. Also fine in the companion app for me.

bieniu commented 2 years ago

Strange, but today the card is displayed without errors. I will observe it a bit longer before closing the issue.

Makin-Things commented 2 years ago

Good to hear that it may have sorted itself out. It would be great if you could test out the upcoming version as well. We are adding more flexibility and a gui config to the card. The comment above provides the links for the beta https://github.com/DavidFW1960/bom-weather-card/issues/98#issuecomment-1150586532. We are keen to get feedback from anyone in Europe as you tend to have a lot of locale variations.

bieniu commented 2 years ago

Sorry, I forgot to close the issue. The card works as it should all the time.

DavidFW1960 commented 2 years ago

No worries I closed it today.