How do I set the filename for 'camera.snapshot'?

Yesterday I installed the latest HA running inside Docker on my Synology.

I’ve got an Amcrest camera, and it seems correctly configured, as the current image shows up on my dashboard.

I created an automation to take a picture, and the logbook says it executed, but … where is the file?

I searched the online docs and forum I couldn’t find a configuration or example. I looked in the source and this seems to indicate that ‘filename’ is the parameter to use, so I added the following as ‘service data’ to the ‘camera.snapshot’ action in the automation:

{
    "filename": "/tmp/foo.jpg"
}

Then bring up the automation dialog, click ‘trigger’ and… no file. Not inside the Docker container, at least.

Am I doing this right?

Thanks!

rodney

I did finally find some information on the site: https://www.home-assistant.io/components/camera/#service-snapshot

In particular, you need to whitelist the folder, even if it’s in your HA folder. https://github.com/home-assistant/home-assistant/issues/10356#issuecomment-341979635