Help - I can't get my Blink Camera to save a picture on my HomeAutomation...what am i doing wroing

Hi all,

im quite new to HA and have no programming experience.
I am running HA on a rasberry Pi and have a Blink camera stystem intrgeation with a few cameras active.

Now I have tried dozens on times follwing different instructions but am not successfull in running an automation that on motion detection triggers one of my blink cameras and saves the picture on my HA.


Step Details

Executed: March 1, 2025 at 11:47:47
Result:
params:
domain: camera
service: snapshot
service_data:
filename: /media/red.jpg
device_id:
- e797b726d8e45fd6cd4f71b68c2950c7
target:
device_id:
- e797b726d8e45fd6cd4f71b68c2950c7
running_script: false

Step config

action: camera.snapshot
metadata: {}
data:
filename: /media/red.jpg
target:
device_id: e797b726d8e45fd6cd4f71b68c2950c7



I read that i might have to allow HA to save in certain directories. so I added below in the /homeassistant/configuration.yaml using “File editor”

Loads default set of integrations. Do not remove.

default_config:

Load frontend themes from the themes folder

frontend:
themes: !include_dir_merge_named themes

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

homeassistant:
customize: !include customize.yaml
allowlist_external_dirs:
- “/media”
- ‘/media’


greatfull for any tips or ideas!

Hello P2theGmann,
Welcome to the Home Assistant Forum!

Thanks for coming here and asking a question.
Would you be so kind as to adjusting the format of your code so that we can read it properly & check the YAML spacing, etc. Editing your original is the preferred way. It is very hard for us to tell what is what when the text formatter jumbles everything like that.
Use the </> button or this:
Here is an example of how to fix it from the site FAQ Page.
How to help us help you - or How to ask a good question.