I spent almost 2 days trying to add a few custom lovelace cards, but no luck. I saw similar issues on the internet, but the recipe did not work for me. Can someone help me?
Here is some info about my setup and what I tried so far:
my HA 2020.12.2 is running in a docker container on a x86 host
a directory with HA configuration files is mapped to /config directory in the container
allowlist_external_dirs setting in the configuration.yaml enables /config
tried installing cards manually, as well as via HACS
the error is not for one card only - I tried several different ones
I see cards I installed listed on HACS->frontend tab
I see cards code located in /www/community
I tried different base ULRs in the resources section of my ui-lovelace.yaml
Unfortunately I continue geting the āCustom element doesnāt exist: simple-thermostat.ā error for all options I tried. Does anyone know what is wrong?
I realized what was wrong - some of the card code was cached by browser. Just in case if someone else hit the same issue, here are a few things to try:
Restart HA
Force browser to reload lovelace page (Ctrl-F5 on PC)
Base URL for custom cards in the resource section is /local/community/ (it loads files located at /www/community
Today this happened to me on my phone (android) I logged out of the app and closed it fully, then opened it up again and relogged in, after that it works fine. Looks like a cache issue.
Yes, Itās a caching issue, but it keeps giving errors. Very annoying. Also, the IOS app does give this error. But the strange thing is a completely new phone, never had the app installed, gives directly the error once logged in. Close the app and reopen it all worked fine.
It seems like these custom files are loaded on the end of the page, and therefore it gives this error. Reloading the page works because the files have been cached.
Can we have a preloading in place to have a workaround for this issue?