Set_relay_state no longer working
For years I've managed my switches via HTTP, but a few days ago I started getting HTTP/1.1 400 BAD_Request.
Example:
curl.exe --insecure --request POST "https://wap.tplinkcloud.com?token=%A% HTTP/1.1" -d @e:\ManageIT\LoveON.json --header "Content-Type: application/json"
Where %A% is the KasaToken and the JSON file is
{"method":
"passthrough",
"params": {
"deviceId": "DEVICEID",
"requestData":"{\"system\":{\"set_relay_state\":{\"state\":1}}}"
}
}
I can still pull status from all my Kasa Devices, but can no longer turn them off or on using the above. Tried several different things, but figured I'd ask for help since I'm shooting in the dark at this point. I am using an old curl.exe as the new one ends up with security issues.
Thanks