code: function () {
        // Retrieve Service Types
      RED.httpAdmin.get('/homekit/service/types', RED.auth.needsPermission('homekit.read'), function (req, res) {
        var data = {}
        Object.keys(HapNodeJS.Service).forEach(function (key) {
          var val = HapNodeJS.Service[key]
          if (typeof val === 'function' && val.hasOwnProperty('UUID')) {
            data[key] = val.UUID
          }
        })
        res.json(data)
      })
    }
docs: Service API