I have Hass.io installed in container on a linux Ubuntu machine
Installation folder /usr/share/hassio/homeassistant
I am tryng to configure a snapshot for a camera but every time I run the service receive error no access to path!
The only time I don’t recevie error is if I specify path /tmp , but no file is saved in /usr/share/hassio/tmp
If I go with a browser to http://192.168.0.112/cgi-bin/snapshot.cgi I required to login and the I can see the snapshot
I am going crazy Any idea where is my mistake?
Thank you for answering me I can’t understand well how docker and linux manage files and folder.
Just for be sure I made a locate search for snapshot.jpg without find the file…
I tried many folder in whitelist_external_dirs: all with errors.
If you look inside home-assistants docker container /tmp directory the snapshot will be there, its what happened to me.
Try:
docker exec -it homeassistant /bin/bash
Do you have a www directory in your home assistant config folder?
Try creating a folder there called snapshots or whatever.
If it doesnt work try whitelisting the folder.
In my case i had to whitelist /config and its working:
Hi, i have identical configuration as yours. I am running home assistant installed in container on ubuntu machine. Everytime i try to run camera.snapshots service, i got this error
Failed to call service camera/snapshot. a bytes-like object is required, not 'NoneType'
I’ve already add /config/snapshots to whitelist in the configuration.yaml file but still this error happens. Do you have any idea to figure this out? Thanks.
I just followed your guide to set the whitelist folder and update the verify_ssl but still unable to capture the correct snapshot.
The snapshot file is created sucessfully in the folder but the size is only 14 bytes. The content in the created file is just “404: Not Found.”
Is there any one who got this same issue and solution?