32 lines
896 B
Markdown
32 lines
896 B
Markdown
---
|
|
layout: component
|
|
title: "Downloader"
|
|
description: "Instructions how to setup the downloader component with Home Assistant."
|
|
date: 2015-01-24 14:39
|
|
sidebar: true
|
|
comments: false
|
|
sharing: true
|
|
footer: true
|
|
ha_category: Other
|
|
---
|
|
|
|
|
|
The `downloader` component provides a service to download files. It will raise an error and not continue to set itself up when the download directory does not exist.
|
|
|
|
To enable it, add the following lines to your `configuration.yaml`:
|
|
|
|
```yaml
|
|
# Example configuration.yaml entry
|
|
downloader:
|
|
download_dir: downloads
|
|
```
|
|
If the path is not absolute, it's assumed to be relative to the HASS configuration directory.
|
|
|
|
#### Service `downloader/download_file`
|
|
|
|
Download the specified url.
|
|
|
|
| Service data attribute | Optional | Description |
|
|
| ---------------------- | -------- | ----------- |
|
|
| `url` | no | The url of the file to download.
|
|
|