Skip to content

card dead after core-2025.3.3 #103

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

Open
ruteclrp opened this issue Mar 15, 2025 · 94 comments · May be fixed by #105
Open

card dead after core-2025.3.3 #103

ruteclrp opened this issue Mar 15, 2025 · 94 comments · May be fixed by #105

Comments

@ruteclrp
Copy link

Seen increasingly more people having issues with the card loading after core-2025.2

It worked for me until core 2025.3.3 but it is now totally dead.

Not sure how to diagnose - but seems to be a more general issue

@GWilsnach
Copy link

Same here, it worked for me until core 2025.3.3 but it is now totally dead.

@IvoSvejcar
Copy link

Same issue:

Image

@boulete31
Copy link

sorry, but same here

Image

@BSD31
Copy link

BSD31 commented Mar 15, 2025

Same for me !

@boulete31
Copy link

Is this fix still good ?

#88 (comment)

@ElderingE
Copy link

Same issue over here. Hoping on a fix...

@bamnoru
Copy link

bamnoru commented Mar 15, 2025

Same issue, but on core-2025.2.4 (so, not an Home assistant issue).

JS Console errors:

Access to script at 'https://unpkg.com/lit-html@%5E1.0.0?module' from origin 'https://...' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.Understand this errorAI
lit-element.js:14

GET https://unpkg.com/lit-html@%5E1.0.0?module net::ERR_FAILED 520Understand this errorAI
interieur:1 Access to script at 'https://unpkg.com/lit-html@%5E1.0.0/lit-html?module' from origin 'https://...' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.Understand this errorAI
lit-element.js:19

GET https://unpkg.com/lit-html@%5E1.0.0/lit-html?module net::ERR_FAILED 520

@Steamerzone
Copy link

Same here, I'm sure I had it working for a few hours on core-2025.3.3 yesterday, this morning it stopped working.
Loading from unpkg.com looked slow yesterday.

So something external.

@Summer-of69
Copy link

Is this fix still good ?

#88 (comment)

I had the same problem after updating to 2025.3.3.
The change mentioned above solved the problem!

@ChristoduT
Copy link

Have the same issue on all of my home assistant devices. CUSTOM ELEMENT DOESN'T EXIST: FLEX-HORSESHOE-CARD

@boulete31
Copy link

Is this fix still good ?
#88 (comment)

I had the same problem after updating to 2025.3.3. The change mentioned above solved the problem!

Indeed, this fix works like a charm.

@Steamerzone
Copy link

The fix did work fine after a few tries.

  • make sure the name of the .js file is correct ( lit-core.min.js )
  • clear the browser cache!

@HaMs6josef
Copy link

HaMs6josef commented Mar 15, 2025

My HA-Version 2025.1.2
flex-horseshoe-card it works proberly, until today or yesterday
Error: Custom element doesn’t exist: flex-horseshoe-card

As i remind, it works until 1-2 days ago
I restored Backup from one week ago - same problem!?!?

Any hint?

This
#88 (comment)
worked for me :-)

@ChristoCoetzee
Copy link

Is this fix still good ?
#88 (comment)

I had the same problem after updating to 2025.3.3. The change mentioned above solved the problem!

Indeed, this fix works like a charm.

This worked for me

@taHC81
Copy link

taHC81 commented Mar 15, 2025

Yep, thanks for that!

@chimeranzl
Copy link

thanks, works for me now after a reboot

@comazone123
Copy link

I have the same problem but i not update my core

@Michael1101W
Copy link

I'm on 2025.3.3. In the companion app (Cellphone and Tablet) I have the same problem since yesterday. On my laptop in the browser I see the cards as usual. Strange. Will try the fix.

@Lobo2022
Copy link

Lobo2022 commented Mar 15, 2025

Some issue here but I'm still running 2025.2.3_. It worked fine until this morning.

Image

After the upgrade to 2025.3.3 and cleaning browser cache #88 (comment) worked very well. Thanks

@mxzy1969
Copy link

mxzy1969 commented Mar 15, 2025

@abu9 make my day, You so much! that worked perfectly

@IvoSvejcar
Copy link

Is this fix still good ?
#88 (comment)

I had the same problem after updating to 2025.3.3. The change mentioned above solved the problem!

Indeed, this fix works like a charm.

This worked for me

Thanks, this solution helped for me.

@RomMuc
Copy link

RomMuc commented Mar 15, 2025

Worked on iOS for me, but suddenly not on Android.

Just applied the fix from #88 (comment) , et voilà 😎.

Thanks again community 💪

@bigtomi
Copy link

bigtomi commented Mar 15, 2025

Can someone describe how to do it step by step?

@taHC81
Copy link

taHC81 commented Mar 15, 2025

Can someone describe how to do it step by step?

Not enough...? #88 (comment)

@staxza
Copy link

staxza commented Mar 15, 2025

Can someone please explain. How do I download the file?

@riaanvwrdg
Copy link

riaanvwrdg commented Mar 15, 2025

Sorted after browser cache clear and reopening

Still not sorted in IOS though

@mxzy1969
Copy link

mxzy1969 commented Mar 15, 2025

@abu9 make my day, You so much! that worked perfectly.

.........................................................................................................................................................................................................................................

NOTE: There are 2 versions available V2 and V3. The link above points to V3 but you can also try the V2.

Just simplify the action:

  1. Download the LIT core file (see note) and put it under the Flex-Horseshoe-Card directory /homeassistant/www/community/flex-horseshoe-card/lit-core.min.js
  2. Modify /homeassistant/www/community/flex-horseshoe-card/flex-horseshoe-card.js
//import { LitElement, html, css, svg } from "https://unpkg.com/lit-element@2.0.1/lit-element.js?module";
import { LitElement, html, css, svg } from "./lit-core.min.js";
  1. Delete flex-horseshoe-card.js.gz in /homeassistant/www/community/flex-horseshoe-card/
  2. Force update in hacs resource:
  • Open Settings → Dashboards → Resources ( click the top-right corner 3 dots)
  • Modify hacstag/hacsfiles/flex-horseshoe-card/flex-horseshoe-card.js?hacstag=20729272514

@comazone123
Copy link

comazone123 commented Mar 15, 2025

@abu9 make my day, You so much! that worked perfectly.

.........................................................................................................................................................................................................................................

NOTE: There are 2 versions available V2 and V3. The link above points to V3 but you can also try the V2.

Just simplify the action:

  1. Download the LIT core file (see note) and put it under the Flex-Horseshoe-Card directory /homeassistant/www/community/flex-horseshoe-card/lit-core.min.js
  2. Modify /homeassistant/www/community/flex-horseshoe-card/flex-horseshoe-card.js
//import { LitElement, html, css, svg } from "https://unpkg.com/lit-element@2.0.1/lit-element.js?module";
import { LitElement, html, css, svg } from "./lit-core.min.js";
  1. Delete flex-horseshoe-card.js.gz in /homeassistant/www/community/flex-horseshoe-card/
  2. Force update in hacs resource:
  • Open Settings → Dashboards → Resources ( click the top-right corner 3 dots)
  • Modify hacstag/hacsfiles/flex-horseshoe-card/flex-horseshoe-card.js?hacstag=20729272514

Not work on my HA 2024.11.3

@dahadd
Copy link

dahadd commented Mar 15, 2025

fix is working ;-) Thanks

@Gavrik13
Copy link

Great, everything worked

@davidrapan
Copy link

Could you tell me step by step how you made it work? I did all the procedures mentioned here and nothing, I even reverted the core version and nothing

You must be doing something wrong. @jase0001 is just talking about saving the file properly.

@jase0001
Copy link

The manual changes to a local resource didn't work for me, however i tried some of the forks now available and the one that worked for me was andbad (thanks) you also need to open this link [https://cdn.jsdelivr.net/gh/lit/dist@3/core/lit-core.min.js](url) and copy and paste to a text editor such as notepad, ensuring you change the file type from .txt to all. Then upload this .js file to HA in the www/community/flex horseshow directory. I also removed the HACS flex horseshoe card prior to the fork install, with a reboot of HA at each stage. Finally the cards reappeared. I hope this works for you all too

Could you tell me step by step how you made it work? I did all the procedures mentioned here and nothing, I even reverted the core version and nothing

@wearver i struggled to get the manual changes to work too bud, happy to step you through my solution

  1. Remove the flexible horseshoe card from HACS, reboot
  2. Install the fork by andbad
  3. open the LIT file linked above and copy into notepad
  4. When in notepad save the file but ensure you change the file type from .txt to all, then save the file as lit-core.min.js
  5. Use your HA file editor to upload this file into your flex horseshoe card directory, normally in www/community
  6. Reboot HA
  7. force refresh your dashboard to clear the cache

That's all i did and it is now working. Best of luck!

@nexusis7
Copy link

  1. Download the LIT core file into /config/homeassistant/www/community/flex-horseshoe-card/lit-core.min.js

  2. Modify /config/homeassistant/www/community/flex-horseshoe-card/flex-horseshoe-card.js

    • Replace https://unpkg.com/lit-element@2.0.1/lit-element.js?module w/ ./lit-core.min.js
  3. Delete /config/homeassistant/www/community/flex-horseshoe-card/flex-horseshoe-card.js.gz

  4. In Settings → Dashboards (click the top-right corner 3 dots menu) → Resources

    • Modify hacstag in URL: /hacsfiles/flex-horseshoe-card/flex-horseshoe-card.js?hacstag=123456789

This works for me. 😉

Changing the hacstag to 123456789 works for me to! Both in the browser as the companion app.

Thanks!

This has worked for me too..

As for the hacstag, i made it point to /local/community/flex-horseshoe-card/flex-horseshoe-card.js

restart then done.. working now

@wearver
Copy link

wearver commented Mar 21, 2025

The manual changes to a local resource didn't work for me, however i tried some of the forks now available and the one that worked for me was andbad (thanks) you also need to open this link [https://cdn.jsdelivr.net/gh/lit/dist@3/core/lit-core.min.js](url) and copy and paste to a text editor such as notepad, ensuring you change the file type from .txt to all. Then upload this .js file to HA in the www/community/flex horseshow directory. I also removed the HACS flex horseshoe card prior to the fork install, with a reboot of HA at each stage. Finally the cards reappeared. I hope this works for you all too

Could you tell me step by step how you made it work? I did all the procedures mentioned here and nothing, I even reverted the core version and nothing

@wearver i struggled to get the manual changes to work too bud, happy to step you through my solution

  1. Remove the flexible horseshoe card from HACS, reboot
  2. Install the fork by andbad
  3. open the LIT file linked above and copy into notepad
  4. When in notepad save the file but ensure you change the file type from .txt to all, then save the file as lit-core.min.js
  5. Use your HA file editor to upload this file into your flex horseshoe card directory, normally in www/community
  6. Reboot HA
  7. force refresh your dashboard to clear the cache

That's all i did and it is now working. Best of luck!

Still not working. Davidrapan suggested the change via github and I followed the procedures he laid out, it didn't work either.

@wehe64
Copy link

wehe64 commented Mar 21, 2025

Still not working.
Davidrapan suggested the change via github and I followed the procedures he laid out, it didn't work either.

mind your browser's page cache and maybe try a different browser.

@RobertoCravallo
Copy link

RobertoCravallo commented Mar 21, 2025

Hi guys, try this one. Worked for me and you only need to copy the .js

Working 4 me

@wearver
Copy link

wearver commented Mar 21, 2025

Hi guys, try this one. Worked for me and you only need to copy the .js

Working 4 me

This working ... but only on chrome in private, even clear all homeassitant cache. Edge same, but Firefox working fine

@spudje
Copy link

spudje commented Mar 21, 2025

I do hope we'll just get a regular update that fixes the issue (which I face as well) without "hacking".

@davidrapan
Copy link

I already made the PR to remove this external dependency but who knows. 😉

@spudje
Copy link

spudje commented Mar 21, 2025

Hi guys, try this one. Worked for me and you only need to copy the .js
Working 4 me

This working ... but only on chrome in private, even clear all homeassitant cache. Edge same, but Firefox working fine

Unfortunately this didn't help for me. I still get errors (after emptying cache and restarting HASS. I'm probably doing something wrong.

OK, it was me being very stupid indeed. Fixed. Thanks very much!

@RobertoCravallo
Copy link

RobertoCravallo commented Mar 22, 2025

This working ... but only on chrome in private, even clear all homeassitant cache. Edge same, but Firefox working fine

This works everywhere for me. Did you pull the right file? There are two links and I also pulled the wrong one at first.
All APP and BROWSER cache needs to be cleared after the fixed file is copied to your system!!!!

I do hope we'll just get a regular update that fixes the issue (which I face as well) without "hacking".
Keep hoping! You did see, how long this has been abandoned?

@Inoec
Copy link

Inoec commented Mar 22, 2025

The Card wasn't working for me on App and Chrome. But was still working on the Shelly Wall Display. I did the fix and it now works again on the App and the Chrome Browser. But somehow dissapeared from the Wall Display where i need it to display Solar power and Battery SoC
Maybe i have to clear the cache of the browser on the Shelly Wall Display (Kiosk Mode). But i have no Idea how ...

Edit:
a "full" reboot of the Wall display solved the Problem

@vyagi
Copy link

vyagi commented Mar 22, 2025

Please help with the fix :-) . I based 50% of my dashboards on this awesome card

@PV-Joe
Copy link

PV-Joe commented Mar 22, 2025

@vyagi

This is the right fix:
#103 (comment)

@dalegardener
Copy link

dalegardener commented Mar 22, 2025

👍🏼. Worked for me .thanks.

Download the LIT core file into /config/homeassistant/www/community/flex-horseshoe-card/lit-core.min.js

Modify /config/homeassistant/www/community/flex-horseshoe-card/flex-horseshoe-card.js

Replace https://unpkg.com/lit-element@2.0.1/lit-element.js?module w/ ./lit-core.min.js
Delete /config/homeassistant/www/community/flex-horseshoe-card/flex-horseshoe-card.js.gz

In Settings → Dashboards (click the top-right corner 3 dots menu) → Resources

Modify hacstag in URL: /hacsfiles/flex-horseshoe-card/flex-horseshoe-card.js?hacstag=123456789

Restart browsers

@RobertoCravallo
Copy link

👍🏼. Worked for me .thanks.

What did? There are different choices here!!

@dalegardener
Copy link

👍🏼. Worked for me .thanks.

What did? There are different choices here!!

My bad. Added to original comment

@donzeg
Copy link

donzeg commented Mar 22, 2025

@mrgrey916
Copy link

mrgrey916 commented Mar 22, 2025

Hi guys, try this one. Worked for me and you only need to copy the .js

Working 4 me

I can confirm this works.

  1. Download the new/forked flex-horseshoe-card.js https://github.com/MelleD/flex-horseshoe-card-bundle/blob/main/flex-horseshoe-card.js Click the "Download Raw File" button rather than copying the code and saving in Notepad or whatever, to prevent any possible issues in that process.
  2. Delete existing .js file and .gz files.
  3. Paste/save new .js file.
  4. clear the cache in browser and app.

That's all I did, no other files needed, no editing needed, no hacstag change needed.

Thanks very much @MelleD

@vyagi
Copy link

vyagi commented Mar 22, 2025

Hmm.. thanks for your responses. It does not work for me though. I assume that I need to go to this file:

Image

and replace the content with :
https://raw.githubusercontent.com/MelleD/flex-horseshoe-card-bundle/refs/heads/main/flex-horseshoe-card.js

save the changes and go to the dashboard, clear the cache and reload.

If this is the case... well.. didn't help

@RobertoCravallo
Copy link

RobertoCravallo commented Mar 22, 2025

and replace the content with :
https://raw.githubusercontent.com/MelleD/flex-horseshoe-card-bundle/refs/heads/main/flex-horseshoe-card.js

Looks like you managed to download the wrong file.

https://github.com/MelleD/flex-horseshoe-card-bundle/blob/main/flex-horseshoe-card.js

This is what you need and it should work. You MUST delete all cache, before this works!!!!

@MelleD
Copy link

MelleD commented Mar 22, 2025

Hi everyone,

The kids went to sleep early today ;). I noticed some people were having trouble installing the card, so I created a proper HACS integration.
https://github.com/MelleD/flex-horseshoe-card

Follow the installation instruction.

Have fun

@Mange131
Copy link

Hej alla,

Barnen somnade tidigt idag ;). Jag märkte att vissa människor hade problem med att installera kortet, så jag skapade en ordentlig HACS-integration. https://github.com/MelleD/flex-horseshoe-card

Följ installationsanvisningen.

Ha roligt

Thanks a lot
I erased all of old card first then i used your hack's integration and cleared the cache and then it worked

@wtoyoz
Copy link

wtoyoz commented Mar 23, 2025

Hi everyone,

The kids went to sleep early today ;). I noticed some people were having trouble installing the card, so I created a proper HACS integration. https://github.com/MelleD/flex-horseshoe-card

Follow the installation instruction.

Have fun

Thanks for your effort, but I have this error.

Image

@MelleD
Copy link

MelleD commented Mar 23, 2025

Yes its not an integration because it have no sensor

@RobertoCravallo
Copy link

RobertoCravallo commented Mar 23, 2025

You have to use "dashboard" and not "integration". Would have been easy, if you would have just tried the other options!!!

@wtoyoz
Copy link

wtoyoz commented Mar 23, 2025

Ah great, I'm not an expert in this so don't want to crash anything.

Its now available in the HACS store as well!

@raphael303
Copy link

  1. Download the LIT core file into /config/homeassistant/www/community/flex-horseshoe-card/lit-core.min.js

  2. Modify /config/homeassistant/www/community/flex-horseshoe-card/flex-horseshoe-card.js

    • Replace https://unpkg.com/lit-element@2.0.1/lit-element.js?module w/ ./lit-core.min.js
  3. Delete /config/homeassistant/www/community/flex-horseshoe-card/flex-horseshoe-card.js.gz

  4. In Settings → Dashboards (click the top-right corner 3 dots menu) → Resources

    • Modify hacstag in URL: /hacsfiles/flex-horseshoe-card/flex-horseshoe-card.js?hacstag=123456789

This works for me. 😉

Worked for me too. However, I have no idea whatsoever what I did there and if this will survive any future updates.

@RobertoCravallo
Copy link

You should really use this fix, as you have to change nothing. MelleD bundled all dependancies and HorseShoe needs nothing from the net after this "fix". Highly recommended way of "fixing" this problem.

The kids went to sleep early today ;). I noticed some people were having trouble installing the card, so I created a proper HACS integration. https://github.com/MelleD/flex-horseshoe-card

@Github-Jarimo
Copy link

Its worked great. Thanks @MelleD 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.