Hello,
I’ve created a very simple automation that saves a snapshot to the /media directory upon motion detection by a doorbell (eufy E340), and then sends this snapshot to the Companion App on my Android smartphone.
The code looks like this:
alias: Eingang Person
description: ""
triggers:
- type: motion
device_id: ac7fcf99317ff623628eb635b61d4771
entity_id: 2e132be66ec485eb6acbbcac99abd024
domain: binary_sensor
trigger: device
conditions: []
actions:
- delay:
hours: 0
minutes: 0
seconds: 5
milliseconds: 0
- action: image.snapshot
metadata: {}
data:
filename: /media/eingang.jpg
target:
entity_id: image.haupteingang_event_image
- delay:
hours: 0
minutes: 0
seconds: 5
milliseconds: 0
- action: notify.mobile_app_pixel_10_pro_xl
metadata: {}
data:
message: Person am Eingang
title: Eingang
data:
image: "/media/eingang.jpg"
mode: single
The first part works flawlessly. The snapshot is correctly created and saved under /media.
The push notification also arrives, but without the image. ![]()
If I remove the quotation marks, i.e.,
image: /media/eingang.jpg
nothing changes (which was expected).
Other images from /media also don’t work.
However, other images from an external source, such as:
image: "https://design.home-assistant.io/images/brand/logo.png"
work perfectly fine.
Read permissions are available for /media and for the image itself.
I hope someone can help me figure out what I’m missing. Thanks.