Hello, I want to make a Python Script which send the Key Command to the API. In the docs it says:
The integration supports the remote platform. The remote allows you to send key commands to your TV with the remote.send_command service. The supported keys vary between TV models.
I have one more item in my header. I can’t remember where I found that info or if it’s necessary, but it’s worth a try. Specifically:
"Accept": "application/json"
Also, I think you have to convert the JSON dict to an actual string to send it using requests. At least that’s what I do when I’m sending JSON via the requests module. So instead of json=data in your call, try json=json.dumps(data). You need to add import json to use that.