gallery-card icon indicating copy to clipboard operation
gallery-card copied to clipboard

Stopped working

Open mihaimdinca opened this issue 1 year ago • 26 comments

I am on Home Assistant 2024.1.3 and the card just returns an error message - Custom element does not exist: gallery-card.

mihaimdinca avatar Jan 15 '24 17:01 mihaimdinca

I am very sorry to learn that this project is not supported anymore. I found it very useful. Unfortunately I cannot get it to work anymore even after the latest update. I get the custom element does not exist: gallery-card error message. The card was installed via HACS. Its files are installed under the /www/community/gallery-card similar to other custom cards. I tried uninstalling and reinstalling without making any difference. Anyone willing to point me in the right direction?

mihaimdinca avatar Jan 28 '24 07:01 mihaimdinca

Apparently the card works but only if I access it from outside the home network

mihaimdinca avatar Feb 08 '24 16:02 mihaimdinca

Apparently the card works but only if I access it from outside the home network

I've just found the same, relatively recently.

FalconUK avatar Feb 13 '24 16:02 FalconUK

what do you mean from outside the network?

Judufu avatar Apr 12 '24 08:04 Judufu

My gallery card stopped working today... :-(

pgorod avatar Apr 12 '24 08:04 pgorod

Me too, it is no working anymore whereas it was ok the previous days. Any solution?

padrien51 avatar Apr 12 '24 09:04 padrien51

Same here ...

cvjensen avatar Apr 12 '24 10:04 cvjensen

Same for me. Has anyone found an alternative, as this isn't maintained any more?

FalconUK avatar Apr 12 '24 10:04 FalconUK

Yeah, definitely broken. I'll check later to see if there's an easy fix

TarheelGrad1998 avatar Apr 12 '24 10:04 TarheelGrad1998

https://github.com/luixal/lovelace-media-source-image-card not a plug and play replacement but depending on use case, you can use this with its templating features and two buttons and a number input for navigation between pictures. Not the same, but working well

mihaimdinca avatar Apr 12 '24 12:04 mihaimdinca

Hrm, I started to investigate, and mine started working again. Anyone else?

My guess is it was something with the unpkg.com dependencies. But hard for me to trouble shoot given it is working for me now.

TarheelGrad1998 avatar Apr 12 '24 13:04 TarheelGrad1998

Hrm, I started to investigate, and mine started working again. Anyone else?

My guess is it was something with the unpkg.com dependencies. But hard for me to trouble shoot given it is working for me now.

Mine is also working again . I saw some Cors errors in the browser when it didnt work . They mentioned unpkg

cvjensen avatar Apr 12 '24 13:04 cvjensen

Here also working again. Did a Home Assistant OS update with reboot.

jgverweij avatar Apr 12 '24 13:04 jgverweij

Yes, working again. A hard refresh on the browser is enough to get it working, I agree it must have been the unpkg problem

pgorod avatar Apr 12 '24 13:04 pgorod

Yes me too. Really strange…but good news :)

padrien51 avatar Apr 12 '24 13:04 padrien51

I'm having still trouble. What is a "hard refresh of the browser"? Just closing and restarting? That didn't work for me. Using another browser didn't work either.

harambe88 avatar Apr 12 '24 17:04 harambe88

It is basically clearing your browser cache. I usually do it by holding shift while hitting refresh, but it varies by browser and OS.

TarheelGrad1998 avatar Apr 12 '24 18:04 TarheelGrad1998

Thanks for the shift-F5 tip! I tried this and I in addition deleted all browser data under settings and also used Firefox as an alternative browser. Same result.

I uninstalled the gallery-card and reinstalled it. I also checked the paths in the lovelace resources. Nothing helped.

harambe88 avatar Apr 12 '24 19:04 harambe88

As this project has been discontinued, I've fork it to fix the issues and improved the ci: https://github.com/lukelalo/gallery-card

lukelalo avatar Apr 13 '24 15:04 lukelalo

Thank you! I found the reason for the card not working. Some how the path in the resources didn't match anymore. No idea why this happened. Wasn't me :))

harambe88 avatar Apr 13 '24 18:04 harambe88

As this project has been discontinued, I've fork it to fix the issues and improved the ci: https://github.com/lukelalo/gallery-card

Good luck with it. I'll be interested to see where it can go with more focus and attention. I've added a link to your repo in my readme.

TarheelGrad1998 avatar Apr 13 '24 20:04 TarheelGrad1998

for us mere mortals, what do we need to do to keep up to date? I guess the fork changes the identity on HACS? Do we need to remove this one and then install @lukelalo's version.

FalconUK avatar Apr 13 '24 20:04 FalconUK

Yes, just that. The name of the component is gallery-card, so you don't need to change it on your dashboards, only install the forked version and its done

lukelalo avatar Apr 14 '24 07:04 lukelalo

As this project has been discontinued, I've fork it to fix the issues and improved the ci: https://github.com/lukelalo/gallery-card

Good luck with it. I'll be interested to see where it can go with more focus and attention. I've added a link to your repo in my readme.

Thanks! I'll do my best

lukelalo avatar Apr 14 '24 07:04 lukelalo

Yes, just that. The name of the component is gallery-card, so you don't need to change it on your dashboards, only install the forked version and its done

The new version (pointing to your repo) doesn't show up in HACS in Home Assistant, but then I haven't removed the old version yet. How is it best to confirm that your forked version is in HACS, ready to be downloaded?

Thanks for your help.

FalconUK avatar Apr 14 '24 09:04 FalconUK

As for now, until I find how to add it on HACS repository, you need to download my github repo and add it to HACS

lukelalo avatar Apr 14 '24 10:04 lukelalo