I can’t get past this part, it seems to me that the system can’t read the CSS file or the SVG file. ERROR /local/floor plan/home simple/home simple.css?_=1690925319635: Error fetching resource (See console for more info)
To test it, I tried changing the path of the files inside the yaml from /local/floorplan/home_simple to /config/www/floorplan/home_simple.
But the error changes to "WARNING CONFIG Cannot find ‘light.hueXYZ_light’ in Home Assistant entities " which is normal because I don’t have this entities registered, however the image that appears is of the Home Assistant Logo and not the image from the example that comes inside 1_getting_started_with_ha-floorplan
After all, is the /local path an alias for /config/www?
I spent like 12 hours behind the solution lol
First I notice in the original error there are spaces in the URL. is that right? /local is mapped by HA to /config/www so that should work. You have it working with the long form of the url though which is good.
The CSS file is just the style rules to be used with the SVG. If you aren’t seeing an image then that indicates your SVG can’t be loaded. If you paste in and format with the </> button your YAML then we can see more about what might be going wrong.
One thing to try with these issues is put the path to your files in your browser address bar and you should see them appear. If they don’t then you either have the wrong path, the file doesn’t exist or there is a permission problem.
Note that I changed the CSS path to /config/www/ and kept the SVG path /local/
I believe I should start by correcting the fact that HA does not find the /local/ folder, because if I change the SVG path to /config/www/ it can read the file, but without showing the image.
I am not sure why the local mapping is not working. Let’s not worry about that for now. Change the paths to /config/www
It looks like in one screen capture you provided that you are trying to edit the floorplan in the GUI. Make sure you are only editing the raw yaml.
You could have a caching problem. Try Shift-F5 or better yet if using Chrome open the developer tools, selectt the network tab and ensure disable cache is selected and then keeping that open refresh the page.
If it still doesn’t work put this in your address bar http://<YOUR_HA_IP>:8123/local/floorplan/home_simple/home_simple.svg and you should see the basic floorplan
I did a fresh install of HAOS on VMWare and the path /local/ was found, with that everything worked perfectly.
Still on VMWare, I changed the path to /config/www/ and the same error happened with the Rapisberry Pi server, so I came to the conclusion that it is necessary to have the link /local/ working.
Do you have any tips for me to fix this? Or should I reinstall everything from scratch?
I was experiencing almost the exact symptoms that this post described. Turns out, my *.css file was empty, and needed at least one newline added. Everything showed after that. Yikes, hours lost to the void.