Camera snapshot in Discord notification

Hello everyone, :slight_smile:

Rather new in the HA world, I am facing my first real challenge in trying to send a Discord notification with a Camera snapshot.

I am on an install on Proxmox done with the community script. I have set as well an external access through cloudflare and my own domain name. Obviously, I have set as well the connection with Discord. Not sure if those details are useful...

What I am trying to achieve sounds simple, but I am struggling. I have created a simple automation in which I'd like to get a camera snapshot in my Discord server.

I have tested in parallel to send the notification to the companion app and this is working well:

action: notify.mobile_app_pixel_8_pro_seb
data:
  message: On sonne au portail
  title: Portail
  data:
    image: https://xxx.ovh/local/doorbell.jpg

But when trying to do that for Discord, I only receive the message but no snapshot

action: notify.ha_prod_bot_disc
metadata: {}
data:
  message: On sonne au portail
  target: "MYTARGETID"
  title: Portail
  data:
    image: https://xxx.ovh/config/www/doorbell.jpg

I've found the information that for Discord, we need to use the config/www path instead of the local path, but this is not working

I've also seen in the threads to add that in the configuration.yaml, but still without success

# Loads default set of integrations. Do not remove.
default_config:
allowlist_external_dirs:
  /config/

Any clue where I am failing?
Thank you in advance for your help! :slight_smile:

No guess on that? No one is using the notification with image feature in Discord around here?

If more information is required, just let me know. Thanks :slight_smile:

I'll ignore the 'are we there yet' comment...
Collecting and Sharing Media Files might help you sort this out.

Thank you for the feedback! :slight_smile:

I've modified the action YAML as below:

action: notify.ha_prod_bot_disc
metadata: {}
data:
  message: On sonne au portail
  target: "722111608045699115"
  title: Portail
  data:
    attachments:
      - media_content_id: media-source://media_source/www/doorbell.jpeg
        media_content_type: image/jpeg

adding as well the add-on in the configuration file, but image is still not showing up in the Discord notification... :frowning:

I am confused that we are using attachments instead of picture here

For the sake of clarity, the snapshot of my camera is being recorded here:
/config/www/doorbell.jpg

I'll try extra possibilities