AmoebeLabs / flex-horseshoe-card

Flexible Horseshoe card for Home Assistant Lovelace UI. A card with a flexible layout, a horseshoe-like donut graph, multiple entities or attributes, graphics and animations!
278 stars 43 forks source link

Getting an error after latest HA update these cards are having issues loading #88

Open Shredder5262 opened 8 months ago

Shredder5262 commented 8 months ago

Since the latest HA frontend and supervisor update i am experiencing a lot of errors, one of those things is that the horseshoe cards are not wanting to load when i first navigate to a page on the dashboard, It is not until i refresh that they load. This was not an issue prior to updating. Strangely one of the cards i had for a PC in my home just disappeared for no reason..there are some other things that have disappeared as well so the disappearance may be related to the update, but just mentioning it here.

I see this error message in the logs.

Logger: frontend.js.latest.202403070 Source: components/system_log/init.py:306 First occurred: 5:13:44 PM (3 occurrences) Last logged: 9:56:16 PM

Uncaught error from Chrome 122.0.0.0 on Windows 10 TypeError: Cannot read properties of undefined (reading 'substr') FlexHorseshoeCard._colorToRGBA (/hacsfiles/flex-horseshoe-card/flex-horseshoe-card.js:1952:24) FlexHorseshoeCard._getGradientValue (/hacsfiles/flex-horseshoe-card/flex-horseshoe-card.js:1893:33) FlexHorseshoeCard._calculateStrokeColor (/hacsfiles/flex-horseshoe-card/flex-horseshoe-card.js:1822:17) set hass (/hacsfiles/flex-horseshoe-card/flex-horseshoe-card.js:783:29) createCardElement (src/panels/lovelace/cards/hui-stack-card.ts:107:21) createCardElement (src/panels/lovelace/cards/hui-stack-card.ts:124:27) createCardElement (src/panels/lovelace/cards/hui-stack-card.ts:113:13) dispatchEvent (src/common/dom/fire_event.ts:76:7) tag.includes (src/panels/lovelace/create-element/create-element-base.ts:136:14)

Shredder5262 commented 8 months ago

Is this an actively supported project?

RobertoCravallo commented 7 months ago

Was working fine for me until today. Doesn't load at all anymore. This would be a huge disaster for me, as I know of no other card like this. :-(

pviegas commented 7 months ago

Same here. Was ok yesterday. Today is broken. Says that the custom element does not exist.

RobertoCravallo commented 7 months ago

Says that the custom element does not exist.

Yupp, same here! This would be really bitter, as this is my favorite card and there is nothing even remotely like it!!!!

3ba9677f01cbf70e8c00a350bd632eecb9ba38fe

MichalSamek commented 7 months ago

Same for me today, Custom element doesnt exist...

jorritdb commented 7 months ago

Same here, since this morning. A disaster because I use this element heavy in my setup :-(

cyriax commented 7 months ago

Getting those messages, if i remember correctly the card already had this problem in the past, with the same behaviour

image

it was solved last time by adding

http: cors_allowed_origins:

to the config..sadly not working this time as it seems

jorritdb commented 7 months ago

Please can you tell me where to put this?? I'm still learning HA...

koni1980 commented 7 months ago

Problem also in other Cards the url https://unpkg.com/lit-html@%5E1.0.0/lit-html?module is not reachable grafik

cyriax commented 7 months ago

Well, then we'll have to wait :)

jorritdb commented 7 months ago

Haaaa ok. There is no work around? Why does it needs unpkg.com anyway

Al-Dek commented 7 months ago

The same: "Custom element doesn't exist: flex-horseshoe-card." :(

pulss commented 7 months ago

The same: "Custom element doesn't exist: flex-horseshoe-card."

Vlastik123 commented 7 months ago

The same: "Custom element doesn't exist: flex-horseshoe-card."

eddysteurs commented 7 months ago

same for me , did a ha os update yesterday, this monring stopped working (cache renewal?)

RobertoCravallo commented 7 months ago

(cache renewal?)

I think it was the same for me. Only started acting up, after I cleared the cache (which I regularly do).

Al-Dek commented 7 months ago

(cache renewal?)

I think it was the same for me. Only started acting up, after I cleared the cache (which I regularly do).

What cache you mean? Browser's ? I had cleaned Chrome - no results ...

RobertoCravallo commented 7 months ago

You misread. It started after cleaning the cache. It is not fixed by cleaning the cache!!!

Al-Dek commented 7 months ago

Got it. :)

comazone commented 7 months ago

After update HA operating system all my dashboard with this card crash

comazone commented 7 months ago

image image

RobertoCravallo commented 7 months ago

Let's hope for a fix soon....

koni1980 commented 7 months ago

Problem also in other Cards the url https://unpkg.com/lit-html@%5E1.0.0/lit-html?module is not reachable grafik

Did you read this post? Thats` the Problem!

comazone commented 7 months ago

Restore from backup don't help

andreasbuff commented 7 months ago

Same here, after updateing OS this morning... to 12.2

RobertoCravallo commented 7 months ago

Problem also in other Cards the url https://unpkg.com/lit-html@%5E1.0.0/lit-html?module is not reachable grafik

Cloudflare works just fine for me. I only have issues with the horseshoe-card.

adnovea commented 7 months ago

Same here, some JS broken (e.g. flex-horseshoe-card and custom js) Spend time to backup and trying to fix the issue without success Too frequent updates may ruin the stability of HA. [Edit] it's not a HA issue but the unavailability of unpkg called by the add-ons.

RobertoCravallo commented 7 months ago

Too frequent updates may ruin the stability of HA.

Don't think it does. The stability of HACS repositories is a different matter....

comazone commented 7 months ago

The card need intrnet resources. It's bad idea

7xy commented 7 months ago

Consider to now delete all horse shoe cards, as it is not reliable!

comazone commented 7 months ago

Thats true. Whet i block the internet on my wall tablet dashbord this card not work normally

comazone commented 7 months ago

I can't find analog of this card

adnovea commented 7 months ago

Don't think it's a Horse shoe cards only because my JS script located in www no longer work.

comazone commented 7 months ago

On my tablet device in hall where the internet is off the flex card work normally)

ccie11827 commented 7 months ago

same problem: "Custom element doesn't exist: flex-horseshoe-card."

RobertoCravallo commented 7 months ago

On my tablet device in hall where the internet is off the flex card work normally)

How is HA running without Internet? Must be attached to a router or not? Try stopping HA, clear the cache and restart HA. Still working?

comazone commented 7 months ago

On my tablet device i always block internet. It work only in lockal network. I use PFsense rule. HA work on miniPC server

comazone commented 7 months ago

I think if i refresh page on it now the flex cards was broken too

jorritdb commented 7 months ago

The card need intrnet resources. It's bad idea

Yes really a bad idea. Is there no way to make it work without internet resource?

comazone commented 7 months ago

Comrade is right. Using this internet dependent card is a very bad idea.

caitotheonlypotato commented 7 months ago

Another useless 'same here' post from me. Recently changed ally gauges to horseshoe, hope it can come back soon! I cleared my phone cache which brought up the issue, I'll resist clearing the PC browsers for as long as possible.

caitotheonlypotato commented 7 months ago

Screenshot_2024-04-12-20-46-11-26

RobertoCravallo commented 7 months ago

I think if i refresh page on it now the flex cards was broken too

Sorry, but I thought so...

adnovea commented 7 months ago

The culprit seems to be unpkg website that is offline if possible, may be a local install of the code (lit-element@2.0.1) would be preferable in the future

RobertoCravallo commented 7 months ago

Wow, never thought to look! Big thanks to down-under....

comazone commented 7 months ago

The culprit seems to be unpkg website that is offline if possible, may be a local install of the code (lit-element@2.0.1) would be preferable in the future

How i can do it ? What is this "(lit-element@2.0.1)"

pviegas commented 7 months ago

Screenshot_2024-04-12-20-46-11-26

That’s from 2023. Tricked me to 😋

RobertoCravallo commented 7 months ago

That’s from 2023. Tricked me to 😋

Darn, so why did he post it? Fake news....

JaroslawPrzybyl commented 7 months ago

Maybe just the same or similar issue? Here is the current status: https://community.fly.io/t/fly-app-servers-down/19229/42

andreasbuff commented 7 months ago

Hi, this does not solve the problem, but