Hi all.
I am currently working on a 3D floorplan. I use the software Inkscape, and in there I need to specify a path to an image. However, HA is running on a different machine so when I upload the SVG file it generates, HA can’t find these images… So I have to change all the paths in Inkscape to /local/ then it works fine. However, as soon as I do that, the image goes away in inkscape because /local/ doesn’t mean anything on the machine I am working on. So I wanted to create a network shared folder that both machines can access so the path stays the same…
HA is running on a server that runs VirtualBox. I created a folder on the server and shared it. I put all the images in there. In virtualbox I mapped the shared folder.
Now here comes the trick… When I load my dashboard and look into the DevTools, it says that HA can’t access that folder and open those images… But when I go through the file editor addon, it can… I am confused, and no network expert. So hopefully someone can point me in the right direction.
I also tried to install sambashare and then get that path so I can store those images directly, but then it still doesn’t work…
The folder images should go into in HA is config/www/
In dashboards this maps onto local/ so the route in a picture-elements card (for example) might be:
image: /local/ground_floor5.png
install the samba addon. Then you will indeed have a network share folder.
I know but that is not the point.
In Inkscape I need to link an image path. This works fine as long as my PC can reach this file, even when I put this images in the HA folder over the network via Sambashare! It will look something like file:\\homeassistant\… But then when I upload the SVG file inkscape creates, homeassistant can’t find this image because the path needs to be /local/…blabla. Now the problem is that when I change the path to /local/ in Inkscape the image disappears because my PC can’t find it anymore.
So I need HA to have access to a network shared folder, so both my PC and HA can reach the file but the path naming of the image file remains the same. But when I do this… Homeassistant says he doesn’t have access to the file, but when I go there via File Editor I can reach the file on the network without any issue…
Tried that already, but it doesn’t understand the pathing. When you install sambashare, the path to the file will look like file:\\homeassistant.…
But HA doesn’t understand this. My PC does, even when the images live in that exact folder. HA needs the /local/ file path, or a network folder, but it is complaining about access.