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
| Parameter | Type | Required | Description |
|---|---|---|---|
dpCode | "color_temp_control" | "temp_value" | "bright_value" | Yes | DP 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
| Value | Description | Since |
|---|---|---|
color_temp_control | - | - |
temp_value | - | - |
bright_value | - | - |
Examples
Example
Notes
- Loads advanced-capability config first, then checks the given DP code.
- Results are cached; repeated calls for the same DP return cached values.
- On Matter devices, color temperature uses
color_temp_control; on standard devices,temp_value. - Returns
falseif the device does not support the given DP code.