message: feat: custom plugins loader
diff: @@ -113,6 +113,15 @@ function ZwaveClient (config, socket) {
  this.healTimeout = null
  this.status = ZWAVE_STATUS.closed
  +
  + // load custom plugins
  + if (config.plugin) {
  + try {
  + require(config.plugin)(this)
  + } catch (error) {
  + logger.error(`Error while loading ${config.plugin} plugin`, error.message)
  + }
  + }
  }
  inherits(ZwaveClient, EventEmitter)
  