Added simple process state monitor source.
This commit is contained in:
parent
f4c77c85bd
commit
e36a53eea6
2 changed files with 66 additions and 0 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue