Qbittorrent binding

I have been looking for an easy way to get some rules to automate my qbittorrent client.
For example, set speed limit if my TV is on, get it off, if I leave… etc. Unfortunately, I have not been able to find a way to connect the two and get them talking. Is there a way that I am unaware of?

Yes, use the http binding with the qbittorrent API

Thanks!