Ok, need a little help if there is anyone out there that understands rest commands
I have a device that has a web service that can turn it off and on. I was able to use Postman to do this. I would like to now add it as a rest command into HA. So I can setup and On/Off button. I cannot seam to get it to work. This is what I have in my configuration.yaml. I’m sure the issue is at this point the payload but I am unsure how to format it correctly to get it to work. I have tried a number of different ways to format the payload, including JSON and so far nothing.
Any help would be appreciated.
rest_command:
makeup_air_on:
url: "http://<DEVICE_IP>/php/status.php"
method: POST
payload: "makeup=true,filtration=false,iaq=false,whf=false,cooling=false,heating=false,heater=true,manual=false"
content_type: "application/x-www-form-urlencoded"
This is the setup I have in Postman that works