Hi.
I’ve started to work on Lovelace customization.
I’ve downloaded Lovelace cards for air visual and thermostat (https://github.com/ciotlosm/custom-lovelace/tree/master/thermostat-card)
I’ve put all the needed files in ~/config/www/ directory. Next I’ve added config lines in ui-lovelace.yaml
Restarted home assistant and I’ve got error “custom element doesn’t exist” for both cards. So it looks like it can’t access the www directory. On the other hand I have the images for device tracker in www dir and they show up just fine.
I had front-end configured to use latest JavaScript, changed it to auto, but nothing has changed.
Checked on mobile Chrome, Samsung Internet,
macOs Chrome, safari
ls -la www
total 244
drwxr-xr-x 3 pi pi 4096 Jan 25 16:00 .
drwxrwxrwx 9 pi pi 4096 Jan 25 16:14 ..
-rw-r--r-- 1 pi pi 8206 Jan 25 00:50 air-visual-card.js
drwxrwxrwx 2 pi pi 4096 Jun 7 2018 custom_ui
-rw-r--r-- 1 pi pi 95671 Aug 6 2017 ewelina.jpg
-rw-r--r-- 1 pi pi 61697 Aug 6 2017 karol.jpg
-rw-r--r-- 1 pi pi 4476 Jan 25 15:59 thermostat-card.js
-rw-r--r-- 1 pi pi 25855 Jan 25 16:00 thermostat-card.lib.js
Having same issue and have read all the post on clearing cache, hence don’t believe that’s the problem. Seems like others are experiencing this issue hence was hoping .86+ would solve this but it hasn’t. Besides the custom element doesn’t exist error, there is no further debug info. I can offer or use to drill into the problem.
Just want to make sure the location I’m putting the custom element is in the correct spot…
The base directory from my HA can be seen by all the yaml files, the lovelace file (which was auto created by HA) resides in .storage directory and the custom element is in the www directory which I created.
If okay can I PM you my lovelace file for advice?
I have the same problem, my Home-Assistant dont look to see the lovelace custom elements or files.
My setup is the following;
Home Assistant 0.89.2
Running in a docker
Host system, Unraid server
I tried to put my file in www folder but it does not see it (tested with the background image).
I finaly put the file directly in the root folder where the config files are located. /local/
In this folder, it see my background image, so it have access.
This is my lovelace config file
background: center / auto repeat url(“/local/surfgirl.png”) fixed
resources:
Just a note… make sure you’ve got the latest versions of your custom cards, including card-tools. I was having a similar problem after an update due to an old version of card-tools.
if in HA you write something like /local/pic.png, that means it is located in <HA config folder>/www/, i.e HA uses /local/ instead of <HA config folder>/www/ (as it considers it a root of all browser-related data or so).
therefore use HOMEASSISTANT\config\www