I'm trying to use a virtual IP device to send a POST REST request to Home Assistant. I'm so close. Home Assistant is receiving a request witht he correct URI, correct headers, correct method, but the SofaBaton is corrupting the Tesxt I enter in "Body (Optional)". I'm getting 400 Bad Request back from Home Assistant
The example below the field makes sense
eg: {"value1": "your_value1" }
My input is pretty simple
{"entity_id": "remote.tv", "command": ["screen_ratio"]}
when I inspect the request sent SofaBaton is encasing the JSON in double quotes and escaping the double quotes in the JSON
"{\"entity_id\": \"remote.pioneer_tv\", \"command\": [\"screen_ratio\"]}"
I tried single quoting the keys and values in the map, but it still gets encased in double quotes
{'entity_id': 'remote.pioneer_tv', 'command': ['screen_ratio']}
"{'entity_id': 'remote.pioneer_tv', 'command': ['screen_ratio']}"
I have set "Connect type (Optional)" to application/json and I see the expected "Content-Type:application/json" header sent.
How do I get it to stop encasing in double quotes and escaping other double quotes? I.e., how to treat my input as JSON