Hi all,
Looking for some advice on how to embed media from a specific folder within the “/media” directory into a notification for iPhone. So far I have followed the guide here and am able to add attachments from the root of the “/media” folder just fine. However, I would like to create subdirectories and pull media from those so as to not clutter up the main media directory. When I try to pull media from a subdirectory, it gives me an error in my notification saying the URL is invalid. Here is my automation, any help would be greatly appreciated. Thanks.
alias: Doorbell Notification and Snapshot
description: >-
Sends a notification to the family that someone has rang the doorbell and
provides a snapshot plus a link to a live view.
trigger:
- platform: state
entity_id:
- binary_sensor.front_doorbell_ring
to: "on"
from: "off"
condition: []
action:
- service: camera.snapshot
data:
filename: /media/Doorbell Notifications/recent.jpg
target:
device_id: (id_goes_here)
- service: notify.family
data:
message: Someone rang the doorbell.
title: Doorbell Alert
data:
image: /media/local/Doorbell Notifications/recent.jpg
actions:
- action: URI
title: Live View
uri: /lovelace/cameras
mode: single