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.
    1. 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.
    1. 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.
    1. 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

Serial numberNameNumber of charactersIdentifierData typeField attributesField description
1Change mode1change_modeEnumerationJump: 0, Gradual: 1
2Hue4HValueMaximum: 360 Minimum: 0 Step: 1 Multiple: 0Hue: 0 - 360, 0X0000 - 0X0168
3Saturation4SValueMaximum: 1000 Minimum: 0 Step: 1 Multiple: 0Saturation: 0 - 1000, 0X0000 - 0X03E8
4Brightness4VValueMaximum: 1000 Minimum: 0 Step: 1 Multiple: 0Brightness: 0 - 1000, 0X0000 - 0X03E8
5White brightness4BValueMaximum: 1000 Minimum: 0 Step: 1 Multiple: 0White brightness: 0 - 1000 0X0000 - 0X03E8
6Color temperature value4TValueMaximum value: 1000 Minimum value: 0 Step: 1 Multiple: 0Color temperature value: 0 - 1000, 0X0000 - 0X03E8
Serial numberNameNumber of charactersIdentifierData typeField attributesField description
1Chroma4HValueMaximum value: 360 Minimum value: 0 Step: 1 Multiple: 0Chroma: 0 - 360, 0X0000 - 0X0168
2Saturation4SValueMaximum value: 1000 Minimum value: 0 Step: 1 Multiple: 0Saturation: 0 - 1000, 0X0000 - 0X03E8
3Brightness4VValueMaximum value: 1000 Minimum value: 0 Step: 1 Multiple: 0Brightness: 0 - 1000, 0X0000 - 0X03E8

How to develop

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.