mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-24 01:37:23 +00:00
Tidy Downloader docs (#22595)
This commit is contained in:
parent
02f7ddf9ae
commit
28a8ad3df0
@ -28,7 +28,7 @@ download_dir:
|
||||
|
||||
### Use the service
|
||||
|
||||
Go to the "Developer Tools", then to "Call Service", and choose `downloader/download_file` from the list of available services. Fill the "Service Data" field as shown in the example below and hit "CALL SERVICE".
|
||||
Go to the "Developer Tools", then to "Services", and choose `downloader/download_file` from the list of available services. Fill the "Service Data" field as shown in the example below and hit "CALL SERVICE".
|
||||
|
||||
```json
|
||||
{"url":"http://domain.tld/path/to/file"}
|
||||
@ -45,8 +45,8 @@ This will download the file from the given URL.
|
||||
|
||||
### Download Status Events
|
||||
|
||||
When a download finished successfully, Home Assistant will emit a 'downloader_download_completed' event to the event bus which you can use to write automations against.
|
||||
In case download failed another event 'downloader_download_failed' is emitted to indicate that the download did not complete successfully.
|
||||
When a download finished successfully, Home Assistant will emit a `downloader_download_completed` event to the event bus which you can use to write automations against.
|
||||
In case download failed another event `downloader_download_failed` is emitted to indicate that the download did not complete successfully.
|
||||
|
||||
Along with the event the following payload parameters are available:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user