2022-05-11 16:41:13 +10:00
|
|
|
template:
|
|
|
|
- sensor:
|
|
|
|
- unique_id: nzbget_speed_kilobytes_per_sec
|
|
|
|
name: "NZBGet Speed"
|
|
|
|
unit_of_measurement: kB/s
|
|
|
|
state: |
|
|
|
|
{% if states('sensor.nzbget_speed') is number %}
|
|
|
|
{{ states('sensor.nzbget_speed') / 1000.0 }}
|
|
|
|
{% else %}
|
|
|
|
{{ states('sensor.nzbget_speed') }}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
sensor:
|
|
|
|
- platform: rtorrent
|
2022-07-19 18:53:10 +10:00
|
|
|
url: !secret rtorrent_url
|
2022-05-11 16:41:13 +10:00
|
|
|
monitored_variables:
|
|
|
|
- "current_status"
|
|
|
|
- "download_speed"
|
|
|
|
- "upload_speed"
|
|
|
|
- "all_torrents"
|
|
|
|
- "uploading_torrents"
|
|
|
|
- "downloading_torrents"
|
|
|
|
- "active_torrents"
|