Add component collection
This commit is contained in:
parent
9702d39c42
commit
120dbf547d
113 changed files with 323 additions and 120 deletions
31
source/_components/downloader.markdown
Normal file
31
source/_components/downloader.markdown
Normal file
|
@ -0,0 +1,31 @@
|
|||
---
|
||||
layout: page
|
||||
title: "Downloader"
|
||||
description: "Instructions how to setup the downloader component with Home Assistant."
|
||||
date: 2015-01-24 14:39
|
||||
sidebar: false
|
||||
comments: false
|
||||
sharing: true
|
||||
footer: true
|
||||
ha_category: Other
|
||||
---
|
||||
|
||||
<img src='/images/supported_brands/emblem-downloads.png' class='brand pull-right' />
|
||||
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
|
||||
```
|
||||
|
||||
#### Service `downloader/download_file`
|
||||
|
||||
Download the specified url.
|
||||
|
||||
| Service data attribute | Optional | Description |
|
||||
| ---------------------- | -------- | ----------- |
|
||||
| `url` | no | The url of the file to download.
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue