Notification via pushover with attachment

Hi, I just tried to set up a script with a notification to pushover. Unfortunately the attachment is not sent along. Only the message and subject arrives. The image URL works fine with an identical notification via telegram. Can anyone give me a tip?
My config is:

notify:
  - platform: pushover
    name: PushOver
    api_key: 'xxx'
    user_key: 'yyy'
  - platform: telegram
    name: Telegram
    chat_id: xxx

My script is:

service: notify.pushover
data:
  message: Ding Dong
  data:
    title: Testing
    attachment: 'http://someip:8123/api/camera_proxy/camera.entity_id'

the working telegram notification is:

service: notify.telegram
data:
  message: Ding Dong
  data:
    photo:
      url: 'http://someip:8123/api/camera_proxy/camera.entity_id'

Thanks for your help!

It seems that notify.pushover does not allow urls as attachment but only local files.
I solved it in downloading the image first.

service: camera.snapshot
data:
  filename: /tmp/filename.jpg
entity_id: camera.cameraid

and sending the file afterwards:

message: Ding Dong
data:
  title: Testing
  attachment: /tmp/filename.jpg
2 Likes

Thanks this solved my problem!!

Regards
James

I’m trying to do the same as you, but cannot get Pushover image attachments working even with a simple test file.

I receive the message without a picture. I can successfully send sounds, URLs, etc. I receive Pushover messages with images from my HomeSeer installation.

I’ve tried with the test file in the www (/local/test.png) and media (/media/local/test.png) directories, with and without quotes around the filename. I’ve tried png and jpg files around 100 kB in size.

I can send the image within a Home Assistant Notification, but I prefer the Pushover persistent notification history.

alias: Test Pushover - image
description: ""
trigger: []
condition: []
action:
  - service: notify.pushover
    metadata: {}
    data:
      message: Some message
      title: Title
      target: Pixel7
      data:
        attachment: "/local/test.png"
mode: single