Send picture with xmpp notification

I want to get notifications from my 3d printer via home assistant. So far the automation is working great with sending a message when a print has started or stopped.
It would be really nice to send a picture from the webcam as well. Is the xmpp notification capable of doing so? I can’t get it to work.

Here is the automation:

Url need the pic…seems that your URL is like a script that takes a pic. Httupuload work as custom component …downloaded xmpp.py from here:

https://raw.githubusercontent.com/home-assistant/home-assistant/5418e0510d898da100ec4b65e6b6e99781760317/homeassistant/components/notify/xmpp.py

Then use httupuload like this:
https://deploy-preview-6788-home-assistant-docs.netlify.com/components/notify.xmpp

I replaced the xmpp.py with the one you provided.

This url isn’t going anywhere for me :confused:

Give me your kid.link is converted somehow here

Are you trying to link me to the xmpp documentation? If so I have xmpp working - only the image sending doesn’t work so far.

Nope…there’s a preview with description how to setup the httupuload part

2_send_jabber_message_with_image_url:
  alias: "Send Image via Jabber from website"
  sequence:
    - service: notify.jabber
      data:
        title: ""
        message: ""
        data:
          url: "https://www.graz.at:8443/webcam_neu/getimg.php"
          verify: false

My jid: [email protected] :slight_smile:another example:

3_send_jabber_message_with_local_image_path:
  alias: "Send Image via Jabber from local file"
  sequence:
    - service: notify.jabber
      data:
        title: ""
        message: ""
        data:
          path: "/home/homeassistant/super_view.jpg"
4_send_jabber_message_with_file:
  alias: "Send text file via Jabber"
  sequence:
    - service: notify.jabber
      data:
        title: ""
        message: ""
        data:
          url: "https://raw.githubusercontent.com/arsaboo/homeassistant-config/master/HASS%20Cheatsheet.md"
          path: "Hass_Cheatsheet.txt"
          timeout: 10
5_send_jabber_message_with_image_and_text:
  alias: "Send Image and Text via Jabber"
  sequence:
    - service: notify.jabber
      data:
        title: "The Time is now"
        message: " {{ now() }} , templating works as well..."
        data:
          url: "https://github.com/home-assistant/home-assistant.io/raw/next/source/images/favicon-192x192.png"