-
Notifications
You must be signed in to change notification settings - Fork 47
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
Getting an error after latest HA update these cards are having issues loading #88
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! |
Wow, never thought to look! Big thanks to down-under.... |
How i can do it ? What is this "([email protected])" |
Darn, so why did he post it? Fake news.... |
Maybe just the same or similar issue? |
Hi, this does not solve the problem, but
|
This fork works! |
Works. |
Much better, it does not pull from internet anymore: import { |
Thanks, just replaced the flex-horseshoe-card.js file with this new one and it works! |
It is now working again without any intervention. At least on my site... |
This was a very bad experience. |
You're absolutely right. |
+1 I tried to add the lit-element and lit-html folders but it does not work. |
did you look at this fork? |
Stupid question, but I don't know how to use/implement a "fork".... |
HACS > 3 dots in top right corner > Custom repositories > Repository "https://github.com/imval/flex-horseshoe-card" , Category "Lovelace" > Add. |
Does not work. I get a "No manifest.json file found 'manifest.json'" |
Al-Dek: THX for the installation details. l'add-on s'installe mais ne fonctionne pas ! In flex-horseshoe-card.js I can see the line : from "./lit-element/lit-element.js" |
Got it installed, but then I have the error of it not working again.... |
I have the initial version "https://github.com/AmoebeLabs/flex-horseshoe-card", and it works well. |
Same here... |
LIT-ELEMENT installed locally is for me the most perennial solution. Lit-element module need to be installed with NPM but fortunately there is a bundle version. This facilitate the workaround for us. I also made it works for my other custom add-on using :
NOTE: There are 2 versions available V2 and V3. The link above points to V3 but you can also try the V2. |
Hi adnovea, I do not understand how to implement this. I copied the JS into the lit-element directory. But how does horseshoe know to use this? I do not understand at all, what "bundle version" has to do with this. How do I use the "import" function and what exactly does it do? Thank you from Germany |
Change the corresponding line in config\www\community\flex-horseshoe-card\flex-horseshoe-card.js file.
|
I added a ";" to the end of the line, is that correct? } from "./lit-element/lit-element.js"; Restarted HA and everything works as before. So seems like a good fix. Thank you for your input!! |
Just simplify the action:
|
@abu9 Thanks man! Well written, that worked perfectly. |
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: