Last Updated on : 2022-03-09 02:02:24download
Method description
Converts an air conditioner code library into a JSON object that is progressively sorted by mode, temperature, wind speed, and air sweeping. This helps you easily get a group of air conditioner codes.
Parameters
Parameter | Type | Optional | Default value | Description |
---|---|---|---|---|
codeList | Array | Yes | None | The list of air conditioner code library. |
Example
import { RemoteUtils } from '@tuya/tuya-panel-remote-sdk';
const { getAirKeyData } = RemoteUtils;
const airKeyData=[
{
compressPulse:'juuunujjna',
key:'M0_T16_S0_W0',
keyName:'M0_T16_S0_W0',
keyId:12
}
]
const airData = getAirKeyData(airKeyData);
Method description
Sets the transparency of a hexadecimal color.
Parameters
Parameter | Type | Optional | Default value | Description |
---|---|---|---|---|
color | string | Yes | None | The hexadecimal values of a color. |
opacity | number | Yes | None | The transparency, ranging from 0 to 1 . |
Example
import { RemoteUtils } from '@tuya/tuya-panel-remote-sdk';
const { hexToRgb } = RemoteUtils;
const color=hexToRgb('#ccc', 0.4)
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback