Camera.snapshot: struggling to save

For clarity:

  1. Post your configuration.yaml (part with “allowlist_external_dirs”).
  2. Post a code of a service call you are trying to use.

Asking 'cause it seems you/we may be lost in a forest with 3 trees (russian proverb).

homeassistant:
  auth_mfa_modules:
    - type: totp

  allowlist_external_dirs:
    - /config
    - '/media'
action: camera.snapshot
metadata: {}
data:
  filename: /config/www/tmp/cam.jpg
target:
  entity_id: camera.cam1

Also tried (by request of @Mikefila)

action: camera.snapshot
metadata: {}
data:
  filename: http://172.16.0.4:8123/local/tmp/cam.jpg
target:
  entity_id: camera.cam1

Now I imagine us running around those 3 trees, looking at the ground! :crazy_face:

One more stupid question: are you sure that you ran “chmod 777 tmp” to the proper tmp???

Because your efforts to help me, I will disregard the fact that you call it stupid! :wink:

in www
image

Is the popup from the companion app? If this is only for a text message, not a need to save the file, you can try to use the camera’s entity picture attribute.

And “camera.cam1” is operational?

Just checked on my site:

action: camera.snapshot
target:
  entity_id: camera.test_static_pink
data:
  filename: /config/www/test_file_io/pink.jpg
  allowlist_external_dirs:
    - /config

Probably you should create a simple generic camera out of some image.

You mean to be used with the companion app? Yes
I tried with the camera entity but that doesn’t work either…
Another advantage of saving the snapshot would be to be able who has rang before.

Yes Sir, very much!

Don’t know if you have read everything: in HAOS it works with the same config/actions…

(The dogs wanna go out!)

That does make it different thinking:

It also means I’m out (as I run HAOS)

Oh…final idea…use ftp?

Post a issue here?