Added simple process state monitor source.

This commit is contained in:
Markus Stenberg 2014-04-23 23:55:22 +03:00
parent f4c77c85bd
commit e36a53eea6
2 changed files with 66 additions and 0 deletions

View file

@ -134,6 +134,13 @@ def from_config_file(config_path):
add_status("WeMo", wemo.setup(bus, statemachine))
# Process tracking
if has_section("process"):
process = load_module('process')
kwargs = dict(config.items('process'))
add_status("process", process.setup(bus, statemachine, **kwargs))
# Light control
if has_section("light.hue"):
light = load_module('light')