It seems there are a couple different options to send whatsapp via HA. I might be wrong, but I am under the impression that if there is an “addon” I should use that instead of a HACS.
That said, I have the Whatsapp AddOn by
giuseppecastaldo from this github link GitHub - giuseppecastaldo/ha-addons: Home Assistant Whatsapp Add-on
I can send text messages without a problem, but now trying to send an image and can’t seem to figure it out.
Documentation gives this example:
service: whatsapp.send_message
data:
clientId: default
to: [email protected]
body:
image:
url: "https://dummyimage.com/600x400/000/fff.png"
caption: Simple text
I am able to get the message with that dummy picture on the example if I put my correct phone number on the “to” section. I can get the URL of the picture I want to send, stored in “media” folder of HA, but that URL ONLY works on a browser where I have an active session with HA. If I try to view the same URL on firefox where I am not logged in to anything, I get “401: Unauthorized”
Is there a way to load the file from HA instead of using a public url?