Class PluginWrapper

This class implements the following methods and properties:

class lib.plugin.PluginWrapper(smarthome, name, classname, classpath, args, instance, meta, configfile)[Quellcode]

Bases: threading.Thread

Wrapper class for loading plugins

Parameter
  • smarthome – Instance of the smarthome master-object

  • name (str) – Section name in plugin configuration file (etc/plugin.yaml)

  • classname (str) – Name of the (main) class in the plugin

  • classpath (str) – Path to the Python file containing the class

  • args (dict) – Parameter as specified in the configuration file (etc/plugin.yaml)

  • instance (str) – Name of the instance of the plugin

  • meta (object) –

run()[Quellcode]

Starts this plugin instance

stop()[Quellcode]

Stops this plugin instance

get_name()[Quellcode]

Returns the name of current plugin instance

Rückgabe

name of the current plugin instance

Rückgabetyp

str

get_ident()[Quellcode]

Returns the thread ident of current plugin instance

Rückgabe

Thread identifier of current plugin instance

Rückgabetyp

int

get_implementation()[Quellcode]

Returns the implementation of current plugin instance

Rückgabe

the current plugin instance

Rückgabetyp

object