code: function () {
          // Retrieve Accessory Types
      RED.httpAdmin.get('/homekit/accessory/types', RED.auth.needsPermission('homekit.read'), function (req, res) {
        res.json(HapNodeJS.Accessory.Categories)
      })
    }
docs: Accessory API