Last Updated on : 2023-09-07 10:23:05download
Category | Device ID | Profile ID |
---|---|---|
Cool white light (C) | 0x0100 | 0x0104 |
Cool and warm white light (CW) | 0x010C | 0x0104 |
Colored light (RGB) | 0x0102 | 0x0104 |
Cool white and colored light (RGBC) | 0x010D | 0x0104 |
White and colored light (RGBCW) | 0x010D | 0x0104 |
Endpoint | Description |
---|---|
1 | The endpoint used by the current light. |
Input clusters (server) | Output clusters (client) |
---|---|
Basic (0x0000) | OTA Upgrade (0x0019) |
Identify (0x0003) | / |
Groups (0x0004) | / |
Scenes (0x0005) | / |
On/Off (0x0006) | / |
Level Control (0x0008) | / |
Color Control (0x0300) | / |
ZLL Commissioning (0x1000) | / |
Attributes contain the basic information about a Zigbee device. A gateway can get this information through the Read Attributes and Write Attributes defined by Zigbee Cluster Library Specification.
Attributes
ID | Name | Data type (ID) | Range | Default |
---|---|---|---|---|
0x0000 | ZCLVersion | uint8 (0x20) | 0x00 to 0xff | 0x03 , used for connection to Tuya-enabled Zigbee gateways. |
0x0001 | ApplicationVersion | uint8 (0x20) | 0x00 to 0xff | 0x40 0x40 in hex is 0100 0000 in binary. 0100 0000 represents version 1.0.0 , so 0x40 represents 1.0.0 . |
0x0002 | StackVersion | uint8 (0x20) | 0x00 to 0xff | 0x02 |
0x0003 | HWVersion | uint8 (0x20) | 0x00 to 0xff | 0x01 |
0x0004 | ManufacturerName | string (0x42) | 0 to 32 bytes | For example, _TZ3000_l6web2ir .The value of this attribute is 16 bytes in length, containing 8-byte prefix of capability value and 8-byte PID. The PID is the unique identifier of the Zigbee product you create on the Tuya IoT Development Platform. The capability value can be obtained from the Zigbee development documentation. |
0x0005 | ModelIdentifier | string (0x42) | 0 to 32 bytes | TS050xB , used for connection to Tuya-enabled Zigbee gateways. x represents the number of channels. For example, TS0505B is 5-channel lights. |
0x0007 | PowerSource | enum8 (0x30) | 0x00 to 0xff | 0x01 , used for connection to Tuya-enabled Zigbee gateways and representing mains-powered devices. |
0xFFFD | ClusterRevision | uint16 (0x21) | 0x0000 to 0xffff | 0x0001 |
Commands
ID | Name | Direction | Description |
---|---|---|---|
0x00 | Reset to Factory Defaults | Client to Server | / |
Attributes
ID | Name | Data type (ID) | Range | Default |
---|---|---|---|---|
0x0000 | OnOff | bool (0x10) | 0x00: Off 0x01: On |
0x00 |
0xF000 | CountDown | uint32 (0x23) | 0x00000000 to 0x00015180 | 0x0000 |
0xFFFD | ClusterRevision | uint16 (0x21) | 0x0000 to 0xffff | 0x0001 |
Commands
ID | name | Direction | Description |
---|---|---|---|
0x00 | Off | Client to Server | / |
0x01 | On | Client to Server | / |
0xF0 | CountDown | Client to Server | / |
Attributes
ID | Name | Data type (ID) | Range | Default |
---|---|---|---|---|
0x0000 | CurrentLevel | uint8 (0x20) | 0x00 to 0xff | 0x00 |
0xFFFD | ClusterRevision | uint16 (0x21) | 0x0000 to 0xffff | 0x0001 |
Commands
ID | name | Direction | Description |
---|---|---|---|
0x00 | MoveToLevel | Client to Server | Valid values range from 0x00 to 0xff . |
0x01 | Move | Client to Server | / |
0x02 | Step | Client to Server | / |
0x03 | Stop | Client to Server | / |
0x04 | MoveToLevel (with On/Off) | Client to Server | / |
0x05 | Move (with On/Off) | Client to Server | / |
0x06 | Step (with On/Off) | Client to Server | / |
0x07 | Stop (with On/Off) | Client to Server | / |
Attributes
ID | Name | Data type (ID) | Range | Default |
---|---|---|---|---|
0x0000 | CurrentHue | uint8 (0x20) | 0x00 to 0xfe | 0x00 |
0x0001 | CurrentSaturation | uint8 (0x20) | 0x00 to 0xfe | 0x00 |
0x0003 | CurrentX | uint16 (0x21) | 0x0000 to 0xfeff | 0x0000 |
0x0004 | CurrentY | uint16 (0x21) | 0x0000 to 0xfeff | 0x0000 |
0x0007 | ColorTemperatureMireds | uint16 (0x21) | 0x00 to 0xfeff | 0x0000 |
0x0008 | ColorMode | enum8 (0x30) | 0x00 to 0x02 | 0x02 |
0x4001 | EnhancedColorMode | enum8 (0x30) | 0x00 to 0xFF | 0x02 |
0x400A | ColorCapabilities | map16 (0x19) | 0x0000 to 0x001f | 0x0019 |
0x400B | ColorTempPhysicalMinMireds | uint16 (0x21) | 0x0000 to 0xfeff | 0x0099 |
0x400C | ColorTempPhysicalMaxMireds | uint16 (0x21) | 0x0000 to 0xfeff | 0x01F4 |
0xF000 | Mode (Tuya-specific attribute) | uint8 (0x20) |
|
0x00 |
0xF001 | Brightness of colored light (Tuya-specific attribute) | uint8 (0x20) | 0x00 to 0xff | 0x00 |
0xF002 | Full data (Tuya-specific attribute) | array (0x48) | On/Off (1 byte) + Mode (1 byte) + Hue (2 bytes)+ Saturation (2 bytes) + Value (2 bytes) + Brightness (2 bytes) + Color Temperature (2 bytes) | 0x0000 |
0xF003 | Scene data (Tuya-specific attribute) | array (0x48) | For more information about the data format, see the following section of DP6 Scene. | 0x0000 |
0xF007 | Light to sleep (Tuya-specific attribute) | array (0x48) | For more information about the data format, see the following section of DP31 Light to sleep. | 0x0000 |
0xF008 | Light to wake (Tuya-specific attribute) | array (0x48) | For more information about the data format, see the following section of DP32 Light to wake. | 0x0000 |
0xF009 | Biorhythm lighting (Tuya-specific attribute) | array (0x48) | For more information about the data format, see the following section of DP30 Biorhythm. | 0x0000 |
0xF00A | Random timing (Tuya-specific attribute) | array (0x48) | For more information about the data format, see the following section of DP210 Random timing. | 0x0000 |
0xF00B | Cycle timing (Tuya-specific attribute) | array (0x48) | For more information about the data format, see the following section of DP209 Cycle timing. | 0x0000 |
0xF00C | Power-on behavior (Tuya-specific attribute) | array (0x48) | For more information about the data format, see the following section of DP33 Power-on behavior. | 0x0000 |
0xF00D | Do Not Disturb (Tuya-specific attribute) | bool (0x10) | This attribute is one byte in length.
|
0x0000 |
0xF00E | On/Off gradient (Tuya-specific attribute) | array (0x48) | For more information about the data format, see the following section of DP35 On/Off gradient. | 0x0000 |
0xFFFD | ClusterRevision | uint16 (0x21) | 0x0000 to 0xffff | 0x0001 |
Commands
ID | name | Direction | Description |
---|---|---|---|
0x00 | Move to Hue | Client to Server | Valid values range from 0x00 to 0xfe . |
0x01 | Move Hue | Client to Server | / |
0x02 | Step Hue | Client to Server | / |
0x03 | Move to Saturation | Client to Server | Valid values range from 0x00 to 0xfe . |
0x04 | Move Saturation | Client to Server | / |
0x05 | Step Saturation | Client to Server | / |
0x06 | Move to Hue and Saturation | Client to Server | / |
0x07 | Move to Color | Client to Server | / |
0x08 | Move Color | Client to Server | / |
0x09 | Step Color | Client to Server | / |
0x0A | Move to Color Temperature | Client to Server | / |
0x47 | Stop Move Step | Client to Server | / |
0x4B | Move Color Temperature | Client to Server | / |
0x4C | Step Color Temperature | Client to Server | / |
0xE0 | Change color temperature (Tuya-specific command) | Client to Server | This attribute is two bytes. Valid values range from 0x0000 to 0x03E8 . |
0xE1 | Change color (Tuya-specific command) | Client to Server | For more information about the data format, see the following section of DP5 Color. |
0xF0 | Set mode (Tuya-specific command) | Client to Server | Change the mode.
|
0xF1 | Scene data (Tuya-specific command) | Client to Server | For more information about the data format, see the following section of DP6 Scene. |
0xF2 | Adjust music (Tuya-specific command) | Client to Server | For more information about the data format, see the following section of DP9 Adjust. |
0xF4 | Light to sleep (Tuya-specific command) | Client to Server | For more information about the data format, see the following section of DP31 Light to sleep. |
0xF5 | Light to wake (Tuya-specific command) | Client to Server | For more information about the data format, see the following section of DP32 Light to wake. |
0xF6 | Biorhythm (Tuya-specific command) | Client to Server | For more information about the data format, see the following section of DP30 Biorhythm. |
0xF7 | Random timing (Tuya-specific command) | Client to Server | For more information about the data format, see the following section of DP210 Random timing. |
0xF8 | Cycle timing (Tuya-specific command) | Client to Server | For more information about the data format, see the following section of DP209 Cycle timing. |
0xF9 | Power-on behavior (Tuya-specific command) | Client to Server | For more information about the data format, see the following section of DP33 Power-on behavior. |
0xFA | Do Not Disturb (Tuya-specific command) | Client to Server | For more information about the data format, see the following section of DP34 Do Not Disturb. |
0xFB | On/Off gradient (Tuya-specific command) | Client to Server | For more information about the data format, see the following section of DP35 On/Off gradient. |
0xFD | White gradient (Tuya-specific command) | Client to Server | For more information about the data format, see the following section of DP48 White gradient. |
0xFE | Color gradient (Tuya-specific command) | Client to Server | For more information about the data format, see the following section of DP49 Color gradient. |
DPID | DP description | Standard command |
---|---|---|
1 | Switch | Yes |
2 | Mode | No |
3 | Brightness | No |
4 | Color temperature | No |
5 | Color | No |
6 | Scene | No |
7 | Countdown | No |
8 | Music | No |
9 | Adjust | No |
30 | Biorhythm | No |
31 | Light to sleep | No |
32 | Light to wake | No |
33 | Power-on behavior | No |
34 | Do Not Disturb | No |
35 | On/Off gradient | No |
209 | Cycle timing | No |
210 | Random timing | No |
48 | White gradient | No |
49 | Color gradient | No |
The gateway sends the on/off command to the Zigbee device to turn on or off the device. The Zigbee device reports on/off status using the ZCL on/off attribute.
Direction | Cluster ID | Command/Attribute ID | Value |
---|---|---|---|
Client to server | 0x0006: On/Off | 0x00: On/Off | / |
Server to client | 0x0006: On/Off | 0x0000: On/Off |
|
The gateway sends the Tuya-specific command to switch between modes.
Direction | Cluster ID | Command/Attribute ID | Value |
---|---|---|---|
Client to server | 0x0300: Color Control | 0xF0: Tuya-specific command | One byte in length. Valid values:
|
Server to client | 0x0300: Color Control | 0xF000: Tuya-specific attribute | Data type is uint8. Valid values:
|
Direction | Cluster ID | Command/Attribute ID | Value |
---|---|---|---|
Client to server | 0x0008: Level Control | 0xF0: Tuya-specific command | Two bytes in length. Valid values range from 0x0000 to 0x03E8 . |
Server to client | 0x0008: Level Control | 0xF000: Tuya-specific attribute | Data type is uint16. Valid values range from 0x0000 to 0x03E8 . |
Direction | Cluster ID | Command/Attribute ID | Value |
---|---|---|---|
Client to server | 0x0300: Color Control | 0xE0: Tuya-specific command | Two bytes in length. Valid values range from 0x0000 to 0x03E8 . |
Server to client | 0x0300: Color Control | 0xE000: Tuya-specific attribute | Data type is uint16. Valid values range from 0x0000 to 0x03E8 . |
Direction | Cluster ID | Command/Attribute ID | Value |
---|---|---|---|
Client to server | 0x0300: Color Control | 0xE1: Tuya-specific command | Six bytes in length. Hue: Two bytes. 0x0000 ~to 0x0168 . Saturation: Two bytes. 0x0000 ~to 0x03E8 . Value: Two bytes. 0x0000 to 0x03E8 . |
Server to client | 0x0300: Color Control | 0xE100: Tuya-specific attribute | Data type is uint48. Hue: Two bytes. 0x0000 ~to 0x0168 . Saturation: Two bytes. 0x0000 ~to 0x03E8 . Value: Two bytes. 0x0000 to 0x03E8 . |
Direction | Cluster ID | Command/Attribute ID | Value |
---|---|---|---|
Client to server | 0x0300: Color Control | 0xF1: Tuya-specific command | Data length is 2 + 8 × n . n (n ≤ 8) represents the number of units of a scene. |
Server to client | 0x0300: Color Control | 0xF003: Tuya-specific attribute | Data type is array. |
The compressed scene data is formatted as illustrated in the following table.
Byte(s) | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
---|---|---|---|---|---|---|---|---|---|---|
Value | 0000 0000 | 1xxx xxxx | 1222 2222 | 4333 3333 | 4444 4444 | 5566 7788 | 5555 5555 | 6666 6666 | 7777 7777 | 8888 8888 |
Field | Description |
---|---|
0: Scene ID | Byte[0, 8 bits in length.] |
1: Transition mode | Two bits in length. Bit [7] of byte [1] is the most significant bit (MSB). Bit [7] of byte [2] is the least significant bit (LSB). For byte [1], bits 0 to 7 from left to right indicate scenes 1 to 8, in MSB order. |
2: Transition time | Seven bits in length. LSB 7 bits of byte [2]. |
3: Effect duration | Seven bits in length. LSB 7 bits of byte [3]. |
4: Hue (H) | Nine bits in length. Bit [7] of byte [3] + byte [4.] |
5: Saturation (S) | 10 bits in length. Bit [7:6] of byte [5] + byte [6] |
6: Value (V) | 10 bits in length. Bit [5:4] of byte [5] + byte [7.] |
7: Brightness (B) | 10 bits in length. Bit [3:2] of byte [5] + byte [8] |
8: Color temperature (T) | 10 bits in length. Bit[1:0] of byte[5] + byte[9] |
Direction | Cluster ID | Command/Attribute ID | Value |
---|---|---|---|
Client to server | 0x0006: On/Off | 0xF0: Tuya-specific command | Four bytes in length. Valid values range from 0x00000000 to 0x00015180 , in seconds. |
Server to client | 0x0006: On/Off | 0xF000: Tuya-specific attribute | Data type is uint32. The remaining time of the timer ranges from 0x00000000 to 0x00015180 . |
Direction | Cluster ID | Command/Attribute ID | Value |
---|---|---|---|
Client to server | 0x0300: Color Control | 0xF2: Tuya-specific command | The transition mode and HSVBT, 11 bytes in length. |
Server to client | / | / | / |
When users drag the selector on the mobile app to adjust color or brightness, the app will not send adjustment commands to the device until users release the selector. The interval to send commands to devices is 150 ms and 300 ms for unicast and multicast respectively.
Direction | Cluster ID | Command/Attribute ID | Value |
---|---|---|---|
Client to server | 0x0300: Color Control | 0xF2: Tuya-specific command | The transition mode and HSVBT, 11 bytes in length. |
Server to client | / | / | / |
Format of real-time commands:
Byte(s) | 0 | 1 to 2 | 3 to 4 | 5 to 6 | 7 to 8 | 9 to 10 |
---|---|---|---|---|---|---|
Value | 0: Direct gradient. 1: Full gradient. |
Hue | Saturation | Value | Brightness (B) | Color temperature (T) |
Direction | Cluster ID | Command/Attribute ID | Value |
---|---|---|---|
Client to server | 0x0300: Color Control | 0xF6: Tuya-specific command | Payload |
Server to client | 0x0300: Color Control | 0xF009: Tuya-specific attribute | Payload |
Payload format: 5 + 9 × n
. Fields from the Time Node On/Off are specified for a single time node. Multiple time nodes are added accordingly.
Feature | Length | Description |
---|---|---|
Version number | 1 byte | / |
Task on/off | 1 byte |
|
Gradient mode selection | 1 byte |
|
Day(s) of the week | 1 byte | Schedule the task to run on specific days of the week. For more information, see the following table for Weekly schedule. |
Number of time nodes | 1 byte | Up to six time nodes can be added. |
Time node on/off | 1 byte | Task on/off takes precedence over the time node on/off. Determining the on/off state of the time node is necessary only when the task is on. 0x00: Time node is off. 0x01: Time node is on. |
The hour of the start time | 1 byte | The hour of the day, ranging from 0 to 23. For example, 0x10 in hex indicates the hour is 16 (24-hour clock). |
The minute of the start time | 1 byte | The minutes of the hour, ranging from 0 to 59. For example, 0x10 in hex indicates the minute is 16. |
Hue | 2 bytes | Hue data is in hex, big-endian format. The first byte indicates hundreds. The second byte indicates tens and ones. Valid values range from 0 to 360. For example, 0x03 and 0x10 indicate the value of 316. |
Saturation (%) | 1 byte | Valid values range from 0 to 100. |
Value (%) | 1 byte | Valid values range from 1 to 100. |
Brightness (%) | 1 byte | Valid values range from 1 to 100. |
Color temperature (%) | 1 byte | Valid values range from 1 to 100. |
Weekly schedule
Reserved | Saturday | Friday | Thursday | Wednesday | Tuesday | Monday | Sunday |
---|---|---|---|---|---|---|---|
Bit 7 = 0 | Bit 6 | Bit 5 | Bit 4 | Bit 3 | Bit 2 | Bit 1 | Bit 0 |
Direction | Cluster ID | Command/Attribute ID | Value |
---|---|---|---|
Client to server | 0x0300: Color Control | 0xF4: Tuya-specific command | Payload |
Server to client | 0x0300: Color Control | 0xF007: Tuya-specific attribute | Payload |
Payload format: 2 + 11 × n
. Fields from the Time Node On/Off are specified for a single time node. Multiple time nodes are added accordingly.
Feature | Length | Description |
---|---|---|
Version number | 1 byte | / |
Number of time nodes | 1 byte | Up to four time nodes can be added. |
Time node on/off | 1 byte |
|
Day(s) of the week | 1 byte | Schedule the task to run on specific days of the week. For more information, see the following table for Weekly schedule. |
Gradient step | 1 byte | The step size is five minutes. Valid values range from 1 to 72. |
The hour of the start time | 1 byte | The hour of the day, ranging from 0 to 23. For example, 0x10 in hex indicates the hour is 16 (24-hour clock). |
The minute of the start time | 1 byte | The minutes of the hour, ranging from 0 to 59. For example, 0x10 in hex indicates the minute is 16. |
Hue | 2 bytes | Hue data is in hex, big-endian format. The first byte indicates hundreds. The second byte indicates tens and ones. Valid values range from 0 to 360. For example, 0x03 and 0x10 indicate the value of 316. |
Saturation (%) | 1 byte | Valid values range from 0 to 100. |
Value (%) | 1 byte | Valid values range from 1 to 100. |
Brightness (%) | 1 byte | Valid values range from 1 to 100. |
Color temperature (%) | 1 byte | Valid values range from 1 to 100. |
Weekly schedule
Reserved | Saturday | Friday | Thursday | Wednesday | Tuesday | Monday | Sunday |
---|---|---|---|---|---|---|---|
Bit 7 = 0 | Bit 6 | Bit 5 | Bit 4 | Bit 3 | Bit 2 | Bit 1 | Bit 0 |
Direction | Cluster ID | Command/Attribute ID | Value |
---|---|---|---|
Client to server | 0x0300: Color Control | 0xF5: Tuya-specific command | Payload |
Server to client | 0x0300: Color Control | 0xF008: Tuya-specific attribute | Payload |
Payload format: 2 + 12 × n
. Fields from the Time Node On/Off are specified for a single time node. Multiple time nodes are added accordingly.
Feature | Length | Description |
---|---|---|
Version number | 1 byte | / |
Number of time nodes | 1 byte | Up to four time nodes can be added. |
Time node on/off | 1 byte |
|
Day(s) of the week | 1 byte | Schedule the task to run on specific days of the week. For more information, see the following table for Weekly schedule. |
Gradient step | 1 byte | The step size is five minutes. Valid values range from 1 to 72. |
The hour of the start time | 1 byte | The hour of the day, ranging from 0 to 23. For example, 0x10 in hex indicates the hour is 16 (24-hour clock). |
The minute of the start time | 1 byte | The minutes of the hour, ranging from 0 to 59. For example, 0x10 in hex indicates the minute is 16. |
Hue | 2 bytes | Hue data is in hex, big-endian format. The first byte indicates hundreds. The second byte indicates tens and ones. Valid values range from 0 to 360. For example, 0x03 and 0x10 indicate the value of 316. |
Saturation (%) | 1 byte | Valid values range from 0 to 100. |
Value (%) | 1 byte | Valid values range from 1 to 100. |
Brightness (%) | 1 byte | Valid values range from 1 to 100. |
Color temperature (%) | 1 byte | Valid values range from 1 to 100. |
Duration | 1 byte | It is used to set how long the light stays on after it reaches full brightness. Valid values range from 0 to 24. 0 means the light stays on. 24 means the light comes off in 120 minutes. |
Weekly schedule
Reserved | Saturday | Friday | Thursday | Wednesday | Tuesday | Monday | Sunday |
---|---|---|---|---|---|---|---|
Bit 7 = 0 | Bit 6 | Bit 5 | Bit 4 | Bit 3 | Bit 2 | Bit 1 | Bit 0 |
Direction | Cluster ID | Command/Attribute ID | Value |
---|---|---|---|
Client to server | 0x0300: Color Control | 0xF9: Tuya-specific command | Payload |
Server to client | 0x0300: Color Control | 0xF00C: Tuya-specific attribute | Payload |
Payload format
Feature | Length | Description |
---|---|---|
Version number | 1 byte | / |
Gradient mode selection | 1 byte |
|
Hue | 1 byte | Hue, the upper 8 bits. |
Hue | 1 byte | Hue, the lower 8 bits. |
Saturation | 1 byte | Saturation, the upper 8 bits. |
Saturation | 1 byte | Saturation, the lower 8 bits. |
Value | 1 byte | Value, the upper 8 bits. |
Value | 1 byte | Value, the lower 8 bits. |
Brightness | 1 byte | Brightness, the upper 8 bits. |
Brightness | 1 byte | Brightness, the lower 8 bits. |
Color temperature | 1 byte | Color temperature, the upper 8 bits. |
Color temperature | 1 byte | Color temperature, the lower 8 bits. |
Direction | Cluster ID | Command/Attribute ID | Value |
---|---|---|---|
Client to server | 0x0300: Color Control | 0xFA: Tuya-specific command |
|
Server to client | 0x0300: Color Control | 0xF00D: Tuya-specific attribute |
|
Direction | Cluster ID | Command/Attribute ID | Value |
---|---|---|---|
Client to server | 0x0300: Color Control | 0xFB: Tuya-specific command | Payload |
Server to client | 0x0300: Color Control | 0xF00E: Tuya-specific attribute | Payload |
Payload format
Feature | Length | Description |
---|---|---|
Version number | 1 byte | / |
Fade-in duration | 3 bytes | Valid values range from 0 to 60000, in milliseconds. |
Fade-out duration | 3 bytes | Valid values range from 0 to 60000, in milliseconds. |
Direction | Cluster ID | Command/Attribute ID | Value |
---|---|---|---|
Client to server | 0x0300: Color Control | 0xF8: Tuya-specific command | Payload |
Server to client | 0x0300: Color Control | 0xF00B: Tuya-specific attribute | Payload |
Payload format: 2 + 16 × n
(n ≤ 4) Fields from the On/Off are specified for a single time node.
Feature | Length | Description |
---|---|---|
Version number | 1 byte | / |
Node length | 1 byte | 2 + 16 × n (n ≤ 4) |
Switch | 1 byte | Bit 0: used to turn on or off the node. 0: Off. 1: On. Bits 1 to 7 are reserved. |
Day(s) of the week | 1 byte | Schedule the task to run on specific days of the week. For more information, see the following table for Weekly schedule. |
The start time | 2 bytes | The value is in minutes. The maximum value is 1439. |
The end time | 2 bytes | The value is in minutes. The maximum value is 1439. |
The ON state duration | 2 bytes | The value is in minutes. The maximum value is 1439. |
The OFF state duration | 2 bytes | The value is in minutes. The maximum value is 1439. |
H (Hue) | 2 bytes | Valid values range from 0 to 360. |
Saturation (%) | 1 byte | Valid values range from 0 to 100. |
Value (%) | 1 byte | Valid values range from 1 to 100. |
Brightness (%) | 1 byte | Valid values range from 1 to 100. |
Color temperature (%) | 1 byte | Valid values range from 0 to 100. |
Weekly schedule
Reserved | Saturday | Friday | Thursday | Wednesday | Tuesday | Monday | Sunday |
---|---|---|---|---|---|---|---|
Bit 7 = 0 | Bit 6 | Bit 5 | Bit 4 | Bit 3 | Bit 2 | Bit 1 | Bit 0 |
Direction | Cluster ID | Command/Attribute ID | Value |
---|---|---|---|
Client to server | 0x0300: Color Control | 0xF7: Tuya-specific command | Payload |
Server to client | 0x0300: Color Control | 0xF00A: Tuya-specific attribute | Payload |
Payload format: 2 + 16 × n
(n ≤ 4) Fields from the On/Off are specified for a single time node.
Feature | Length | Description |
---|---|---|
Version number | 1 byte | / |
Node length | 1 byte | 2 + 16 × n (n ≤ 4) |
Switch | 1 byte | Bit 0: used to turn on or off the node. 0: Off. 1: On. Bits 1 to 7 are reserved. |
Day(s) of the week | 1 byte | Schedule the task to run on specific days of the week. For more information, see the following table for Weekly schedule. |
The start time | 2 bytes | The value is in minutes. The maximum value is 1439. |
The end time | 2 bytes | The value is in minutes. The maximum value is 1439. |
H (Hue) | 2 bytes | Valid values range from 0 to 360. |
Saturation (%) | 1 byte | Valid values range from 0 to 100. |
Value (%) | 1 byte | Valid values range from 1 to 100. |
Brightness (%) | 1 byte | Valid values range from 1 to 100. |
Color temperature (%) | 1 byte | Valid values range from 0 to 100. |
Weekly schedule
Reserved | Saturday | Friday | Thursday | Wednesday | Tuesday | Monday | Sunday |
---|---|---|---|---|---|---|---|
Bit 7 = 0 | Bit 6 | Bit 5 | Bit 4 | Bit 3 | Bit 2 | Bit 1 | Bit 0 |
Direction | Cluster ID | Command/Attribute ID | Value |
---|---|---|---|
Client to server | 0x0300: Color Control | 0xFD: Tuya-specific command | Payload |
Server to client | 0x0300: Color Control | 0xF013: Tuya-specific attribute | Payload |
Payload format
Feature | Length | Description |
---|---|---|
Version number | 1 byte | / |
White gradient duration. | 2 bytes | Valid values range from 0 to 10000, in milliseconds. |
Direction | Cluster ID | Command/Attribute ID | Value |
---|---|---|---|
Client to server | 0x0300: Color Control | 0xFE: Tuya-specific command | Payload |
Server to client | 0x0300: Color Control | 0xF014: Tuya-specific attribute | Payload |
Payload format
Feature | Length | Description |
---|---|---|
Version number | 1 byte | / |
Color gradient duration. | 2 bytes | Valid values range from 0 to 10000, in milliseconds. |
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback