General - Color Light
Function Introduction
- The color value of Tuya Color Light DP adopts HSV color model, and the string value corresponding to the HSV model color is sent through the panel.
-
- Hue (H) Hue adjustment range: 0-360, the range of the value sent by the panel is 0-360, and the color ring adjustment range and the value sent by the panel are in a linear correspondence.
-
- Saturation (S) Saturation adjustment range: 0%-100%, the range of the value sent by the panel is 0-1000, and the color ring adjustment range and the value sent by the panel are in a linear correspondence.
-
- Brightness (V) Brightness adjustment range: 1%-100%, the value range sent by the panel is 10-1000, and the color ring adjustment range and the value sent by the panel are linearly corresponding.
- Color light supports display:
- Three channels
- Four channels
- Five channels
DP protocol
- Real-time DP: control_data (For specific device availability, refer to Device Communication Protocol)
- Color light DP: colour_data
How to develop
- Monitor, report and send DP according to UI interaction
Notes
- Protocol issues:
- Sig Mesh
- dpCode "control_data" is not supported for real-time sending
- It is not recommended to have a smearing interaction mode. If the operation is fast, it is easy to lose packets. You can consider the click interaction mode.
- If the interaction is changed after smearing, it is also possible to send it down.
- The principle is: a large amount of DP data cannot be sent down in a short period of time.
- Beacon
- Since Beacon DP data is only sent down and not reported, the relevant data needs to be stored in the cloud to ensure the synchronization of the status.
- Sig Mesh
Related materials
- [Function page]:
- None
- [Component]:
- [Tutorial]:
- None
- [SDK]:
- None
- [API]:
- None