I am using Google Cast to cast a dashboard to my Google Hub. It works fine as long as I don’t use a custom component.
As soon as I use a custom component, I will always get the message “Custom element doesn’t exist: -name of card-”. I will only get this message when viewing the dashboard on the Google Hub, If i view the dashboard on any other browser it will work fine.
I have read all the posts I could find on this. And it seems many people solved it by adding an extra URL for the resource. So next to “/hacsfiles/…” also add “/local/comunity/…”, but this does nothing for me. A custom component will always show the error message. This is the case for EVERY custom component. Also manually installing the custom component does not solve anything.
I also understand that some custom components need to be updated to work. But it happens with EVERY custom component.
yes its custom element I think. Its a bit confusing. The card that I want to show most is the custom button-card. But that always gives the error I mentioned.
The post that I use (probably more, but these are the main ones) something about this are :
but they all mention changing the Resource URL. I have changed it to just “/hacsfiles/…”, just “/local/…” and also both. But nothing works.
As far as I know there is no way to clear the cache of the Google Hub device. So what I did to achieve this is to reboot the google hub. But it makes no difference.
sorry should have been more clear. Just wanted to shorten the text. But yes thats what I did. I first added all urls that had /hacsfiles to also have an url that had /local/community/… .
I also sure I could access the .js files that are mentioned in the URLs.
I also removed all the urls with /hacsfiles (so just had the /local/community/… ). Which still made my dashboards work fine on my computer browser. But not on the hub
I also tried with just the /hacsfiles url, Which also made my dashboards work fine on my computer browser. But not on the hub
Then I also had both URLs for all the resources Which also made my dashboards work fine on my computer browser. But not on the hub
So changing the URLs of the resources does not seem to be the cause of this issue.
That’s the only thing that would block the resources from use, that and cache on the device. What’s the name of your device. You’ve said google hub but googling that turns up nothing. So what’s the actual device name.
Well thats the strange thing of this issue indeed. I installed it through hacs. Which indeed puts the files in /www/community/button-card But if I then add the resource /hacsfiles/button-card/button-card.js and/or /local/community/button-card/button-card.js it just wont work. It works fine in a normal browser but not on the Google Hub with a cast.
If I however copy the button-card.js to the root /www folder and then add /local/button-card.js as resource it does work in both a normal browser and on the Google Hub.
Afaik there is no way to reset the cache. You can factory reset the device, which would be a bit overkill. I can also reboot the device using the google Home app. I assume/hope that a reboot cleans the cache.
Thanks for searching, but unfortunately no, that’s not the interface.
The device is quite limited in changing any setting on the Google Nest Hub itself. All is done through the app. But there is no option to clean the cache.
Unfortunately I just wanted to add a 2nd custom card to my dashboard and rebooted the Google Nest Hub again. Only to see that the button-card is now not working again …
So I guess it does seem to be a cache issue, but its an issue with the Google Nest Hub, so probably not something that can be fixed in HA.
Well, you know the correct community path, and you have 3 options for making it work, all 3 are the same location. at a minimum, the 2nd one should work for everything.