SmartLampAdvancedAbility.getAdvancedTemperatureVas()

Requires:
≥1.15.0

Description

Get advanced color temperature VAS (value-added service) info, including keypoints (display value, raw value, unit) for color-temperature range and display.

Parameters

None

Return Value

Type: VasKeypoints['vasInfo']
Query the corresponding capability codes under Matter and the standard protocol respectively; may be undefined if unsupported. Network required.

Referenced Types

interfaceVasKeypoints
PropertyTypeDescription
bizIdstringBusiness ID
bizTypenumberBusiness type
VAS information

Examples

Example

const vasInfo = await sdm.lampAdv.getAdvancedTemperatureVas();
vasInfo?.forEach(item => {
  console.log('VAS:', item.vasCode, item.abilityEnabled);
  item.keyPoints.forEach(kp => console.log(kp.originalValue, kp.displayValue, kp.unit));
});

Notes

  1. Detects device type (Matter vs standard) and uses the matching capability code.
  2. On Matter devices, uses matterColorTemperature.
  3. On standard protocol devices, uses colorTemperature.
  4. May return an empty array or null if color temperature is not supported.
  5. Calls a cloud API; network is required.