mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-18 23:06:58 +00:00
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:
parent
50ca49be84
commit
a866289e58
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user