From 036b09c3a953001c860dc7752ff892085493731b Mon Sep 17 00:00:00 2001 From: pullaf Date: Mon, 9 May 2022 11:01:24 +0200 Subject: [PATCH] Update README.md Added another way to integrate the addon with HA that enables toggling/monitoring alternate speeds --- qbittorrent/README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/qbittorrent/README.md b/qbittorrent/README.md index e42b72534..329ce8981 100644 --- a/qbittorrent/README.md +++ b/qbittorrent/README.md @@ -85,6 +85,21 @@ The installation of this add-on is pretty straightforward and not different in c Use the [qBittorrent integration](https://www.home-assistant.io/integrations/qbittorrent/) +You can use the following snippets to check and set the alternate speeds (the HA integration above is not needed for this) +``` +shell_command: + toggle_torrent_speed: curl -X POST https://:8081/api/v2/transfer/toggleSpeedLimitsMode -k +sensor: + - platform: command_line + name: get_torrent_speed + command: curl https://:8081/api/v2/transfer/speedLimitsMode -k +``` +If you're not using the SSL option, you can skip the -k parameter and use http instead of https in the URL + +These lines will expose a `sensor.get_torrent_speed` that updates every 60 seconds and returns 1 if the alternate speed mode is enabled, 0 otherwise, and a `shell_command.toggle_torrent_speed` that you can call as a Service in your automations + + + ## Common issues ### ipv6 issues with openvpn (@happycoo)