-
Notifications
You must be signed in to change notification settings - Fork 53
Getting an error after latest HA update these cards are having issues loading #88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Is this an actively supported project? |
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. :-( |
Same here. Was ok yesterday. Today is broken. |
Same for me today, Custom element doesnt exist... |
Same here, since this morning. A disaster because I use this element heavy in my setup :-( |
Getting those messages, if i remember correctly the card already had this problem in the past, with the same behaviour it was solved last time by adding http: to the config..sadly not working this time as it seems |
Please can you tell me where to put this?? I'm still learning HA... |
Problem also in other Cards |
Well, then we'll have to wait :) |
Haaaa ok. There is no work around? Why does it needs unpkg.com anyway |
The same: "Custom element doesn't exist: flex-horseshoe-card." |
The same: "Custom element doesn't exist: flex-horseshoe-card." |
1 similar comment
The same: "Custom element doesn't exist: flex-horseshoe-card." |
same for me , did a ha os update yesterday, this monring stopped working (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 ... |
You misread. It started after cleaning the cache. It is not fixed by cleaning the cache!!! |
Got it. :) |
After update HA operating system all my dashboard with this card crash |
Let's hope for a fix soon.... |
Did you read this post? |
Restore from backup don't help |
Same here, after updateing OS this morning... to 12.2 |
Cloudflare works just fine for me. I only have issues with the horseshoe-card. |
Same here, some JS broken (e.g. flex-horseshoe-card and custom js) |
Don't think it does. The stability of HACS repositories is a different matter.... |
The card need intrnet resources. It's bad idea |
Consider to now delete all horse shoe cards, as it is not reliable! |
Good morning. This doesn't work for me. I think it comes from modifying the "flex-horseshoe-card.js" file. Where do you paste the two lines of code? |
new today: -on Computerscreen is working |
Yes, the fix works on the local computer screen and over the LAN, but not on the Companion app on the mobile phone |
Try to flush app frontend cache: home-assistant/android#5119 By(t)e |
Download this: https://raw.githubusercontent.com/andbad/flex-horseshoe-card/refs/heads/develop/flex-horseshoe-card.js By(t)e |
Thx @andbad that steered me in the correct direction. I had to clear the app's storage in Android settings |
That worked for 2 days, not anymore.... :-(
|
Does not work for me anymore either... |
I think you not apply correctly the fix. By(t)e |
Thks. it works |
Fix not worked for me :( |
I too have the same issue. I already had that fix applied months ago but this morning all my devices are now showing the card does not exist :( Clearing the cache does not help either..... |
I have installed card through HACS, and in browser console I see this Try to
By(t)e |
Your screenshots gave me a clue and I searched the errors in mine. For whatever reason I was seeing an error now in finding the lit-core.min.js as I had it exactly as you had typed it. CHATGPT recommended changing the double quotes " to single quotes '...... I did this and hey presto it worked !!! My graphs are back.. Make the change, clear the cache and refresh the browser screen. |
Update - all my PCs (Chrome browsers) are now back working but my Android and iOS companion apps are not. Do I need to clear something similar to a cache here does anybody know? Cheers |
You need to clear companion app frontend cache: By(t)e |
Great - found that on iOS and it worked! Graphs working there now! |
WORKS !!! android app cache clear: How to clear app cache and data? Open Settings. |
This is the fix |
This has not worked for many people in the last 24 hours. Something has changed somewhere in the chain. I have had this fix implemented for many weeks and it was fine but not today. However quoting the lit file in single rather than double quotes made it work again. |
Unfortunately in my case it still doesn't work (both on the web and android app, the same behaviour), on my web page when I check the console, I still have an error: My file is in this place: \<my_host>\config\www\community\flex-horseshoe-card I changed quotes to single, cleared cache, even rebooted whole HA, no difference. Question: could any of you check resources (Settings → Dashboards → Resources ( click the top-right corner 3 dots)) and show me what is visible after filtering 'horseshoe'? Have you changed anything here? |
Problem solved. It seems that in my case something is wrong with the mapping of the /hacsfiles/ path. I started manually checking links by opening them in browser. This one was fine: //[host]/local/community/flex-horseshoe-card/lit-core.min.js and this one, which I had configured in resources - not //[host]/hacsfiles/flex-horseshoe-card/lit-core.min.js So I simply edited my Resources, replacing /hacsfiles/ with the full path. After saving, everything started working. Today, I was close to completely removing this component as the most problematic one in my HA. Fortunately, I decided to give it one last chance. And voilà :) |
Worked for me also changing double quotation marks (") to single one (') here: from "./lit-element/lit-element.js". How to clear the cache: https://community.home-assistant.io/t/how-to-clear-the-frontend-cache/670491 Thank you AA |
the hacstag is completely arbitrary, you can put any value you want, as long as it is different from the previous one. By(t)e |
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)
The text was updated successfully, but these errors were encountered: