Nzbget download event (#10838)

* Add nzbget downloaded event.

* Move raw tags outside the code block

* Match event name to code
This commit is contained in:
chriscla 2019-11-04 13:03:38 -08:00 committed by Franck Nijhof
parent 50ca49be84
commit a866289e58

View File

@ -66,6 +66,35 @@ This component will create these sensors:
- `nzbget_uptime`: NZBGet server uptime.
- `nzbget_size`: Amount of data downloaded since server start in MB.
## Event Automation
The NZBGet integration continuously monitors nzbget's download history. When a download completes, an event usable for automation is triggered on the Home Assistant Bus.
Possible events are:
- `nzbget_download_complete`
The event includes the name, category, and status of the downloaded nzb.
Example automation to send a Telegram message on a completed download:
{% raw %}
```yaml
- alias: Completed Torrent
trigger:
platform: event
event_type: nzbget_download_complete
- event_data:
category: tv
action:
service: notify.telegram_notifier
data_template:
title: "Download completed!"
message: "{{trigger.event.data.name}}"
```
{% endraw %}
## Services
Available services: