Hi there,
I’m fairly new to HA but slowly learning my way around it.
For context I am running HA in a container and have mapped an extra drive to it ‘/tmp’.
I have my CCTV take a line detection snapshot and drop it in a folder ‘/tmp/cctv’ this all works no problems.
I am trying to display the image on a card however when I use the file path ‘/tmp/cctv/drive.jpg’ no image is displayed.
I have added the ‘/tmp’ directory to the ‘allowlist_external_dirs’ section of my configuration.yaml.
I cant seem to find any logs that show an error loading the file it just doesnt show.
Any help greatly received.
Just in case - copy this jpg into “/config/www” folder & then address it as “/local/drive.jpg” in the Card editor. See if it works.
Then you will think why “/tmp” does not work…
1 Like
Can’t find the ‘www’ folder within my config directory.
What File Editor are you using?
Do you have HACs installed?
Create it manually.
Just in case: “/config” = a folder containing “configuration.yaml” file.
I’ve made it manually and now my image works. Interesting as I must have missed a security config option on my created mount somewhere.
So, when the jpg is stored in www - you CAN use it in a Picture card, right?
Now you have to find out why “/tmp” does not work.
- If docker installation - must be mounted, kind of this:
sudo docker run -d --name="HA" -v /home/path-to-folder/HA:/config -v /path-to-folder/tmp:/tmp -v /etc/localtime:/etc/localtime:ro --restart unless-stopped --net=host homeassistant/home-assistant:stable
- The external folder must be “allowed”:
homeassistant:
...
allowlist_external_dirs:
- ...
- /tmp
1 Like
I did all that and HA was able to drop
Files into it but not read from it.
Access permissions may be?
If HA has write then it’s got read