Hello,
I am trying to send a direct message from Mattermost to Home Assistant using a webhook.
When I run this from the command prompt, I receive the message as a direct message, as I expect:
curl -X POST 'https://mm.theunimatrix.com/hooks/s5n9rh34kjxxg5yy8irzdpfdh' -H "Content-Type: text/xml" -d "
cat ./t.json"
t.json contains:
{
"channel": "@mike_diehl",
"username": "jarvis" ,
"text": "Json file says hello"
}
However, when I put that json text into the notification’s data field in the UI and test it, the message goes to the Town Square channel, where the webhook is routed by default.
What am I doing wrong?
Thanks in advance,
Mike.