home-assistant.io/source/_components/downloader.markdown
2015-10-26 01:15:13 +01:00

896 B

layout, title, description, date, sidebar, comments, sharing, footer, ha_category
layout title description date sidebar comments sharing footer ha_category
component Downloader Instructions how to setup the downloader component with Home Assistant. 2015-01-24 14:39 true false true true 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:

# 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.