1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Added a file downloader

This commit is contained in:
Paulus Schoutsen
2013-10-07 00:15:47 -07:00
parent 1a22f1678c
commit 3b6b201428
3 changed files with 74 additions and 4 deletions

View File

@@ -3,7 +3,7 @@ from ConfigParser import SafeConfigParser
from homeassistant import StateMachine, EventBus, start_home_assistant
from homeassistant.observers import TomatoDeviceScanner, DeviceTracker, track_sun
from homeassistant.actors import HueLightControl, LightTrigger
from homeassistant.actors import HueLightControl, LightTrigger, setup_file_downloader
from homeassistant.httpinterface import HTTPInterface
from lib.pychromecast import play_youtube_video
@@ -32,6 +32,8 @@ if config.has_option("chromecast", "host"):
eventbus.listen("start_fireplace", lambda event: play_youtube_video(config.get("chromecast","host"), "eyU3bRy2x44"))
eventbus.listen("start_epic_sax", lambda event: play_youtube_video(config.get("chromecast","host"), "kxopViU98Xo"))
setup_file_downloader(eventbus, "downloads")
# Init HTTP interface
HTTPInterface(eventbus, statemachine, config.get("common","api_password"))