Sending local image to Notify.Events with Node Red?

I just finished setting up the Notify Events Integration. I’m able to send messages to my Iphone Telegram app with Node Red but I can not figure out the JSON formatting to send a local picture file.
Here is the service call I’m trying to figure out.

- service: notify.events
  data:
    message: 'Backyard motion detected!'
    data:
      level: 'warning'
      priority: 'high'
      images:
        - name: 'local_photo.jpg'
          path: '/tmp/backyard_cam/motion.jpg'

Not sure if this is 100% required but i believe it is. You need to have the pictures be accessible from outside your network. So save them @ your www folder and then just link to your external URL like this:

{ data: { "message": "Unregelmäßigkeit bei " + msg.data.new_state.attributes.friendly_name + " wurde erkannt",
    "data":{"photo":[{"url":"https://YOURSERVER.duckdns.org/local/snapshots/snapshot_living.jpg"}]}} 

Yeah I guess that will not work for me. I do not expose Home Assistant to the internet. Guess I need to stick with sending emails for now. Thanks

Did you figure this out without exposing Home Assistant, @Dayve67? I have the same wish :slight_smile:

@Dayve67 This works for me:

{
    "message": "Motion detected at entrance!",
    "data": {
        "images": [
            {
                "path": "/config/www/snapshots/snap.jpg",
                "name": "Motion detected at entrance!"
            }
        ]
    }
}

Hope you can use it still after 6 months :wink: