Help with image in notification

Hey everybody,

I’m having trouble displaying an image along with a notification sent to my android device. I recieve the notification just fine, but there isn’t an image attached to it.
Here is what I have in in my notification node:

{
    "title": "Lucy needs some love",
    "message": "Time for a watering",
    "data": {
        "color": "green",
        "images": "/config/www/images/plants/pachira macrocarpa.jpg"
    }
}

are you sure, you are following www section here? Standard Attachments | Home Assistant Companion Docs

I’ve tried with this as well, same issue:

{
    "title": "Lucy needs some love",
    "message": "Time for a watering",
    "data": {
        "color": "green",
        "images": "/local/images/plants/pachira macrocarpa.jpg"
    }
}

I have tried a couple of other online tutorials, and I don’t seem to be able to get images from any of them. Is there another setting somewhere I need to enable to allow images into the notifications?

You have a space in the file name. This could be a problem.

1 Like

I compared this with my only notification that I attach a picture to, and I use the /local/rest-of-the-address format, but I use it with the data image not images, so that may be the problem.

service: notify.mobile_app_wade
data:
  message: Prepare for Hell.
  data:
    image: /local/Pictures/simpsons-fire-gif.gif

That was it, removed the space and now it worked!
thank you so much

2 Likes