code: function handlePushEvent (req, res) {
      var topic = getTopicFor(req.body.name, req.body.type, TOPIC_READ_STATE),
          value = req.body.value;
  
      winston.info('Incoming message from SmartThings: %s = %s', topic, value);
      history[topic] = value;
  
      client.publish(topic, value, {
          retain: config.mqtt[RETAIN]
      }, function () {
          res.send({
              status: 'OK'
          });
      });
  }
docs: Handle Device Change/Push event from SmartThings
  
  @method handlePushEvent
  @param  {Request} req
  @param  {Object}  req.body
  @param  {String}  req.body.name  Device Name (e.g. "Bedroom Light")
  @param  {String}  req.body.type  Device Property (e.g. "state")
  @param  {String}  req.body.value Value of device (e.g. "on")
  @param  {Result}  res            Result Object