function buildFeatures(deviceName, deviceExternalId) {
  return [
    // light switch
    {
      name: `${deviceName}`,
      category: DEVICE_FEATURE_CATEGORIES.LIGHT,
      type: DEVICE_FEATURE_TYPES.LIGHT.BINARY,
      external_id: `${deviceExternalId}:light:binary`,
      selector: `${deviceExternalId}:light:binary`,
      min: 0,
      max: 1,
      read_only: false,
      has_feedback: false,
    },
    // light color
    {
      name: `${deviceName} color`,
      category: DEVICE_FEATURE_CATEGORIES.LIGHT,
      type: DEVICE_FEATURE_TYPES.LIGHT.COLOR,
      external_id: `${deviceExternalId}:light:color`,
      selector: `${deviceExternalId}:light:color`,
      min: 1,
      max: 16777215,
      read_only: false,
      has_feedback: false,
    },
    // light brightness
    {
      name: `${deviceName} brightness`,
      category: DEVICE_FEATURE_CATEGORIES.LIGHT,
      type: DEVICE_FEATURE_TYPES.LIGHT.BRIGHTNESS,
      external_id: `${deviceExternalId}:light:brightness`,
      selector: `${deviceExternalId}:light:brightness`,
      min: 0,
      max: 100,
      unit: DEVICE_FEATURE_UNITS.PERCENT,
      read_only: false,
      has_feedback: false,
    },
    // light temperature
    {
      name: `${deviceName} temperature`,
      category: DEVICE_FEATURE_CATEGORIES.LIGHT,
      type: DEVICE_FEATURE_TYPES.LIGHT.TEMPERATURE,
      external_id: `${deviceExternalId}:light:temperature`,
      selector: `${deviceExternalId}:light:temperature`,
      min: 0,
      max: 100,
      unit: DEVICE_FEATURE_UNITS.PERCENT,
      read_only: false,
      has_feedback: false,
    },
  ];
}
@description Builds light Broadlink features.
@param {string} deviceName - Device name.
@param {string} deviceExternalId - Device external ID.
@returns {Array} Gladys features.
@example
buildFeatures(a1Device);