#Images in notifications stopped working

1 messages · Page 1 of 1 (latest)

minor crypt
#

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)
#

I tried changing the path back to /media/DS720/ just to see if it started working the other way but nope, that doesn't work either. Also tried copying to www folder, still not working. IDK why it just broke and won't come back even with previously working code? Also tried completely removing and reinstalling the home assistant android app, no help.

iron hinge
#

Check a few places. in the app settings > companion app > notification history and check to see the image path looks correct. Then go to troubleshooting section and look at the logs to see if there was a failure. There is an existing issue with media file location but the local folder should definitely work as long as the file is externally accessible