SmartLampAdvancedAbility.getAdvanceHighEnabled(dpCode: "color_temp_control" | "temp_value" | "bright_value")

Requires:
≥1.15.0

Description

Check whether the specified DP’s advanced capability is enabled: supports bright_value (thousandth-level brightness), temp_value (standard color temperature), color_temp_control (Matter color temperature).

Parameters

ParameterTypeRequiredDescription
dpCode"color_temp_control" | "temp_value" | "bright_value"YesDP code; must be one of bright_value | temp_value | color_temp_control

Return Value

Type: Promise<boolean>
true indicates enabled; unsupported DPs return false. The same dpCode reuses the cache.

Valid Values

dpCode
ValueDescriptionSince
color_temp_control--
temp_value--
bright_value--

Examples

Example

const brightOn = await sdm.lampAdv.getAdvanceHighEnabled('bright_value');
const tempOn = await sdm.lampAdv.getAdvanceHighEnabled('temp_value');
const matterTempOn = await sdm.lampAdv.getAdvanceHighEnabled('color_temp_control');

Notes

  1. Loads advanced-capability config first, then checks the given DP code.
  2. Results are cached; repeated calls for the same DP return cached values.
  3. On Matter devices, color temperature uses color_temp_control; on standard devices, temp_value.
  4. Returns false if the device does not support the given DP code.