i wanted to create a fan speed control entity on my home assistant dashboard and i came across fan-control-entity-row but i keep getting the error that Custom element doesn’t exist: fan-control-entity-row.
i’ve created the www folder under configs…added the js file to it and restarted quite a few times but it seems to not find it. i tried changing www to local but it still doesnt work. my current code is below. what am i missing here?
What was the method used to copy the js file from the repo?
Did you download the repo as a zip, click on the file in the repo then click on “raw” then copy the contents of the window, or did you just copy the contents of the first window (not “raw”)?
either of the first two options should work. the last won’t work.
I don’t use the ui but I believe you need to go to where ever the editor is and I think in the top right corner there will be a three-dot menu. In there is a “raw” selection or something like that.
once you open that you need to edit the raw file and add to the top:
but of course you need to make sure the path is correct for your install.
/local/ is the correct path for the /www/ directory. As an example mine actually is located at “/config/www/lovelace/…” but the /"config/www/gets referenced as “/local/” in the code.