Sending image from media source in Discord Notification

I’m trying to send an image that is saved in the media folder as an attachment in a Discord Notification. I’ve tried with and without adding “local” as shown below. With local it works with an ios notification, but not with discord. Does anyone know how to do this, if it is possible?

service: notify.hass_discord
data:
  target:
    - '647880721846763559'
  message: bild
  data:
    images:
      - /media/motioneye/Camera4/2022-01-20/11-14-56.jpg
service: notify.hass_discord
data:
  target:
    - '647880721846763559'
  message: bild
  data:
    images:
      - /media/local/motioneye/Camera4/2022-01-20/11-14-56.jpg

Logs are saying:

Image not found: /media/local/motioneye/Camera4/2022-01-20/11-14-56.jpg
Image not found: /media/motioneye/Camera4/2022-01-20/11-14-56.jpg

Did you ever get this working? I’m looking to do the same.

I got it working just now. My problem turned out to be an issue writing to /tmp, instead of the /media folder.

1 Like

I have done it way different, using embed.
it send the data from my mounted drive on homeassistant to discord.
in a nice embed