Sending pushbullet message with file image from URL in sensor value

Hi there,

I’m trying to send an image via pushbullet from an URL that’s retrieved by a sensor:

- service: notify.rudolf
  data:
     title: '{{states("sensor.current_artist")}} op de radio'
     message: '{{states("sensor.current_title")}}'
     data_template:
        file_url: >
           {{states('sensor.current_image')}}

Doesn’t work. (without error)

- service: notify.rudolf
  data:
     title: '{{states("sensor.current_artist")}} op de radio'
     message: '{{states("sensor.current_title")}}'
     data:
        file_url: '{{states('sensor.current_image')}}'

Doesn’t work either

last one does work when using a regular URL.

Any suggestions?

I believe your outside “data:” needs to be “data_template:” and inside one needs to be “data:”.

1 Like

That’s exactly what it should be. Stupid i’ve missed that. Thanks!
Correct config:

- service: notify.rudolf
  data_template:
     title: '{{states("sensor.current_artist")}} op de radio'
     message: '{{states("sensor.current_title")}}'
     data:
        file_url: >
           {{states('sensor.current_image')}}
1 Like