I have Prosody setup in a separate Linux container. I want to be able to send an image via the service dev tool in Home Assistant. I know that the following YAML code translates to JSON code as follows:
data:
message: "Hello, XMPP!"
{"message":"Hello, XMPP!"}
How do I specify either a “url” or a “path” to a file for sending an image through XMPP?
I did get extra keys not allowed message in a log:
Invalid service data for notify.xmpp: extra keys not allowed @ data['path']. Got '/opt/homeassistant/GraysonPeddie.jpg'
According to the XMPP documentation, here’s the YAML code I’m referring to:
data:
title: ""
message: ""
data:
path: "/home/homeassistant/super_view.jpg"
How can I specify a path in a JSON format when using a service dev tool to call notify.xmpp?
PS: “xmpp” is the name of the entity I’ve chosen for the Jabber component.