SNoof85 / lovelace-tempometer-gauge-card-deprecated

Home Assistant Lovelace custom card with Barometer, Thermomer themes and customs themes as well !
102 stars 32 forks source link

Custom element not found: tempometer-gauge-card' #43

Closed pantha007 closed 3 years ago

pantha007 commented 3 years ago

Describe the bug Can not get card to display

Home Assistant Core Version core-2021.7.4

Version of the card Version : 1.40

Screenshots not found

Desktop (please complete the following information):

Additional context As you can see I have managed to get the MIN & Max working.

max-min

But all i get is the custom element not found ( installed card with HACS )

I really hope you can please help me with this :-)

Craig

harpaul commented 3 years ago

Card stopped being displayed all of a sudden with the error message as above

Home Assistant Core Version core-2021.8.0

Version of the card Version : 1.40

alanpocos commented 3 years ago

for me it's also with the same error, despite putting the code correctly, the graph doesn't appear. would be able to solve this?

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

cpvolvo commented 3 years ago

Not stale - same issue

SNoof85 commented 3 years ago

For all issues with Custom element not found, please check the ressources loaded in your lovelace dashboards. Or try to uninstall/reinstall with HACS.

Also think about clearing browser cache.

cpvolvo commented 3 years ago

Hey there - I wanted to explain how I resolved my issue...

I installed tempometer-gauge-card via HACS and when I went to resources, I noticed that it had been added similar to the following: /hacsfiles/lovelace-tempometer-gauge-card/tempometer-gauge-card.js?hacstag=XXXXXXXXXXXX

I removed the ?hacstag=XXXXXXXXXXXX from that line, clicked update, and the card now appears on the Lovelace dashboard.

Hopefully this works for someone else - I'd also be curious as to why this fixed the issue!

andras-tim commented 3 years ago

Hey there - I wanted to explain how I resolved my issue...

I installed tempometer-gauge-card via HACS and when I went to resources, I noticed that it had been added similar to the following: /hacsfiles/lovelace-tempometer-gauge-card/tempometer-gauge-card.js?hacstag=XXXXXXXXXXXX

I removed the ?hacstag=XXXXXXXXXXXX from that line, clicked update, and the card now appears on the Lovelace dashboard.

Hopefully this works for someone else - I'd also be curious as to why this fixed the issue!

I have a feeling only: I think, your browser had a hot cache for the tempometer-gauge-card.js and with the URL changing you forced that to fetch a new version.

But in this case, if you open the developer tools with F12 button, go to the Network tab, check the Disable cache for a page reloading then this issue should fix without any URL changes.


A dev note: I think, an auto-generated, special (dummy) query parameter is more sophisticated and future-proof. So, if the URL is populated with e.g. the component's version (e.g. tempometer-gauge-card.js?card-version=1.40) or with a unique hash (e.g. commit hash or hash of the .js file) then this problem be fixed forever.

SNoof85 commented 3 years ago

If you installed the card with hacs there is, in your Lovelace ressources (for storage mode), already a variable unique generated by hacs (tempometer-gauge-card.js?hacstag=xxxxxxxxxx)

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Enjoy-Combi commented 2 years ago

Same issue for me. I don't know what to do. csutom card installed through hacs

Enjoy-Combi commented 2 years ago

After further troubleshooting. It was due to sensor.barometer_min_this_week & max entity not defined. Using template statitics to create them and all good !