I am at a loss here. I made one change further down an automation to fix an update process, and that has seemingly permanently broken my images in notifications.
Trying to send an alert image to an android device. I can confirm in /config/media/DS720/Alerts, the image I am referencing is there from an SSH terminal. Previously it didn't work unless I used a different path, /media/local/DS720/Alerts, but now that is not working either.
What is the correct way to reference a network share for an alert image?
Full automation code as I've stripped it down to just the first step while debugging:
alias: Notify on AI Object Motion with Video Update
description: ""
mode: parallel
max: 100
trigger:
- platform: mqtt
topic: BI/motion
condition: []
action:
- variables:
file_name: "{{ trigger.payload_json.file }}"
cam: "{{ trigger.payload_json.cam }}"
memo: "{{ trigger.payload_json.memo }}"
object: "{{ trigger.payload_json.object }}"
image_path: /media/local/DS720/Alerts/{{ trigger.payload_json.alert_path }}"
- delay: 00:00:02
- service: notify.mobile_app_sm_s918u
data:
message: "Confidence Rating: {{ memo }}"
title: "{{ cam }} detected {{ object }}"
data:
image: "{{ image_path }}"
tag: ai_motion_{{ file_name }}```
Logbook showing the full path and image filename:
```Executed: September 17, 2024 at 1:53:34 PM
Result:
params:
domain: notify
service: mobile_app_sm_s918u
service_data:
message: 'Confidence Rating:'
title: Doorbell detected
data:
image: /media/local/DS720/Alerts/Doorbell.20240917_135329.0.17-0.jpg"
tag: ai_motion_Doorbell.20240917_135330.mp4
target: {}
running_script: false```
(Proof the file exists within the HA scope, see image 1)
(Notificaiton received, see image 2 posted below)