code: function AvrYamahaNodeGet(config) {
      RED.nodes.createNode(this, config);
  
      // Save settings in local node
      this.device = config.device;
      this.deviceNode = RED.nodes.getNode(this.device);
      this.name = config.name;
      this.topic = config.topic;
  
      var node = this;
      if (this.deviceNode) {
  
    		// Input handler, called on incoming flow
        this.on('input', function(msg) {
  
          // If no topic is given in the config, then we use the topic in the msg.
          var topic = (node.topic) ? node.topic : msg.topic;
          if (!topic) {
            node.error('No topic given. Specify either in the config or via msg.topic!');
            return;
          }
  
          // Get data from the device.
          node.deviceNode.sendGetCommand(topic).then(function(value) {
            msg.payload = value;
            node.send(msg);
          }).catch(function(error) {
            node.error("Failed to request data from AVR with error: " + error);
          });
  
        });
  
      } else {
        this.error(RED._("avr-yamaha.errors.missing-config"));
      }
    }
docs: /* ---------------------------------------------------------------------------
  GET node
  -------------------------------------------------------------------------