     # @param [Object] lastState state information stored in database
     constructor: (@config, plugin, lastState) ->
       @debug = plugin.config.debug ? plugin.config.__proto__.debug
-      env.logger.debug "[UniPiAnalogOutput] initializing:", util.inspect(config) if @debug
-      @_lastError = ""
-      @id = config.id
-      @name = config.name
-      @circuit = config.circuit
+      env.logger.debug "[UniPiAnalogOutput] initializing:", util.inspect(@config) if @debug
+      @_lastError = ""
+      @id = @config.id
+      @name = @config.name
+      @circuit = @config.circuit
       @evokDeviceUrl = uniPiHelper.createDeviceUrl plugin.config.url, "ao", @circuit
       @options = {
         timeout: 1000 * uniPiHelper.normalize plugin.config.timeout ? plugin.config.__proto__.timeout, 5, 86400

    # @param [Object] lastState state information stored in database
    constructor: (@config, plugin, lastState) ->
      @debug = plugin.config.debug ? plugin.config.__proto__.debug
      env.logger.debug '[UniPiAnalogInput] initializing:', util.inspect(config) if @debug
      @_inputVoltage = lastState?.inputVoltage?.value or 0.0
      @id = config.id
      @name = config.name
      @circuit = config.circuit
      @_lastError = ""

      super()

    # @param [Object] lastState state information stored in database
    constructor: (@config, plugin, lastState) ->
      @debug = plugin.config.debug ? plugin.config.__proto__.debug
      env.logger.debug "[UniPiRelay] initializing:", util.inspect(@config) if @debug
      @_lastError = ""
      @id = @config.id
      @name = @config.name
      @circuit = @config.circuit
      @evokDeviceUrl = uniPiHelper.createDeviceUrl plugin.config.url, "relay", @circuit
      @options = {
        timeout: 1000 * uniPiHelper.normalize plugin.config.timeout ? plugin.config.__proto__.timeout, 5, 86400
