qBittorrent: 4.5.3-r0-2
Operating system: Home Assistant
What is the problem?
Trying to execute command on torrent added but got an error:
curl: (3) unmatched close brace/bracket in URL position 31:
"switch.passage_switch_center"}'
Examples of commands I have tried to use:
1) curl -X POST -H "Authorization: Bearer TOKEN -H "Content-Type: application/json" -d "{-backslash-"entity_id-backslash-": -backslash-"switch.passage_switch_center-backslash-"}" http://x.x.x.x:port/api/services/switch/toggle
qBittorrent & operating system versions
qBittorrent: 4.5.3-r0-2 Operating system: Home Assistant
What is the problem?
Trying to execute command on torrent added but got an error: curl: (3) unmatched close brace/bracket in URL position 31: "switch.passage_switch_center"}'
Examples of commands I have tried to use: 1) curl -X POST -H "Authorization: Bearer TOKEN -H "Content-Type: application/json" -d "{-backslash-"entity_id-backslash-": -backslash-"switch.passage_switch_center-backslash-"}" http://x.x.x.x:port/api/services/switch/toggle
-backslash- == \ github do not show it correctly
2) curl -X POST -H "Authorization: Bearer TOKEN -H "Content-Type: application/json" -d ‘{“entity_id": "switch.passage_switch_center”}’ http://x.x.x.x:PORT/api/services/switch/toggle
Both returns the same error.
Steps to reproduce
Additional context
No response
Log(s) & preferences file(s)
No response