Merge pull request #3 from fingon/process-source-up

Added a simple process state monitor
This commit is contained in:
Paulus Schoutsen 2014-04-24 14:47:07 -07:00
commit b30aeb1777
2 changed files with 58 additions and 0 deletions

View file

@ -156,6 +156,13 @@ def from_config_file(config_path, enable_logging=True):
add_status("WeMo", wemo.setup(hass, hosts))
# Process tracking
if has_section("process"):
process = load_module('process')
processes = dict(config.items('process'))
add_status("process", process.setup(hass, processes))
# Light control
if has_section("light.hue"):
light = load_module('light')