I am trying to setup mqtt notifications and I’m not clear how to do it.
I have it working on command line using the curl command, and by using the shell_command options
Is there another way of doing this? If shell_command is the best option, is there a way to pass in an argument (for example the payload, and topic)?
This is what I have as a shell_command right now:
shell_command:
home_notify: >
curl -X POST -H “Content-Type: application/json” -d ‘{“payload”: “hello world!”, “topic”: “home/notify”, “retain”: 0}’ http://localhost:8123/api/services/mqtt/publish
Thanks!