English
English
简体中文
Contact Us
Register
Log In
layoutIndex

Standard Instruction Set

Last Updated on : 2022-04-01 01:09:44download

This topic describes the standard instruction set of lights (dj).

Standard instruction set of lights (dj)

Code
Name
Data type
Value description
Remarks
switch_led Switch Boolean {} None
work_mode Working mode Enum {“range”:[“white”,“colour”,
“scene”,“music”,“scene_1”,
“scene_2”,“scene_3”,
“scene_4”]}
None
bright_value Brightness Integer {“min”:25,“scale”:0,“unit”:“”,
“max”:255,“step”:1}
None
bright_value_v2 Brightness Integer {“min”:10,“scale”:0,“unit”:“”,
“max”:1000,“step”:1}
None
temp_value Color temperature Integer {“min”:0,“scale”:0,“unit”:“”,
“max”:255,“step”:1}
None
temp_value_v2 Color temperature Integer {“min”:0,“scale”:0,“unit”:“”,
“max”:1000,“step”:1}
None
do_not_disturb Do not disturb mode Boolean {} None
colour_data Colored light mode Json {} None
colour_data_v2 Colored light mode Json {} None
scene_data Scene mode Json {} None
scene_data_v2 Scene mode Json {} None
flash_scene_1 Soft light mode Json {} None
flash_scene_2 Colorful mode Json {} None
flash_scene_3 Dazzling mode Json {} None
flash_scene_4 Gorgeous mode Json {} None
music_data Musical light mode control Json {} None
control_data Adjust DP control Json {} None
countdown_1 Countdown Integer {“unit”:“”,“min”:0,“max”:86400,
“scale”:0,“step”:1}
None
scene_select Scene selection Enum {“range”:[“1”,“2”,“3”,“4”,“5”]} Legacy versions
switch_health
_read
Healthy reading switch Boolean {} Legacy versions
read_time Healthy reading—reading time setting Integer {“unit”:“minute”,“min”:1,“max”:60,
“scale”:0,“step”:1}
Legacy versions
rest_time Healthy reading—rest time setting Integer {“unit”:“minute”,“min”:1,“max”:60,
“scale”:0,“step”:1}
Legacy versions
rhythm_mode Circadian rhythm Raw {} None
sleep_mode Sleep Raw {} None
wakeup_mode Wake-up Raw {} None

Examples of standard instructions

switch_led

It indicates the power switch of the light.

  • Value description

    • true: switches on the light.
    • false: switches off the light.
  • Sample code

    {
        "commands":[
            {
                "code":"switch_led",
                "value":true
            }
        ]
    }
    

work_mode

Set the predefined color mode of the light. Different products support different mode settings.

  • Value description

    • white: white light.
    • colour: colored light.
    • scene: predefined color.
    • music: predefined color.
    • scene_1: predefined color.
    • scene_2: predefined color.
    • scene_3: predefined color.
    • scene_4: predefined color.
  • Sample code

    {
        "commands":[
            {
                "code":"work_mode",
                "value":"white"
            }
        ]
    }
    

bright_value

Adjust the brightness of the light.

  • Value description

    The reference value range is 25 to 255. The specific value range of each product is different, subject to the queried device attributes.

  • Sample code

    {
        "commands":[
            {
                "code":"bright_value",
                "value":120
            }
        ]
    }
    

bright_value_v2

Adjust the brightness of the light.

  • Value description
    The reference value range is 10 to 1000. The specific value range of each product is different, subject to the queried device attributes.

  • Sample code

    {
        "commands":[
            {
                "code":"bright_value_v2",
                "value":990
            }
        ]
    }
    

temp_value

Adjust the color temperature of the light (cool and warm)

  • Value description
    The reference value range is 25 to 255.

  • Sample code

    {
        "commands":[
            {
                "code":"temp_value",
                "value":120
            }
        ]
    }
    

temp_value_v2

Adjust the color temperature of the light (cool and warm)

  • Value description
    The reference value range is 0 to 1000.

  • Sample code

    {
        "commands":[
            {
                "code":"temp_value_v2",
                "value":990
            }
        ]
    }
    

colour_data

Control the color change of the light in the form of hue, saturation, and value (HSV).

  • Value description

    • Hue (h): 0–360
    • Saturation (s): 0–255
    • Value (v): 0–255
  • Sample code

    {
        "commands":[
            {
                "code":"colour_data",
                "value":{
                    "h":37,
                    "s":255,
                    "v":188
                }
            }
        ]
    }
    
    

colour_data_v2

Control the color change of the light in the form of hue, saturation, and value (HSV).

  • Value description

    • Hue (h): 0–360
    • Saturation (s): 0–1000
    • Value (v): 0–1000
  • Sample code

    {
        "commands":[
            {
                "code":"colour_data_v2",
                "value":{
                    "h":201,
                    "s":511,
                    "v":899
                }
            }
        ]
    }
    

scene_data

Control the color change of the light in the form of HSV.

  • Value description

    • Hue (h): 0–360
    • Saturation (s): 0–255
    • Value (v): 0–255
  • Sample code

    {
        "commands":[
            {
                "code":"scene_data",
                "value":{
                    "h":37,
                    "s":255,
                    "v":188
                }
            }
        ]
    }
    

scene_data_v2

Customize the control mode of the color changes for the light. Specific lights support this control mode.

  • Value description

    • scene_num: 1–256. scene mode number.
    • unit_change_mode: the unit mode that changes among the [“static”,“jump”,“gradient”] options. They represent “static”, “jumping”, and “gradient” respectively.
    • unit_switch_duration: 0–100 Switching time between each scene unit.
    • unit_gradient_duration: 0–100 The gradual speed of the scene unit switching from the last state to the target state.
    • bright: The brightness value ranges from 0 to1000.
    • temperature: The color temperature ranges from 0 to 1000.
    • Hue (h): 0–360
    • Saturation (s): 0–1000.
    • Value (v): 0–1000.
  • Sample code

    {
        "commands":[
            {
                "code":"scene_data_v2",
                "value":{
                    "scene_num":5,
                    "scene_units":[
                        {
                            "unit_change_mode":"static",
                            "unit_switch_duration":20,
                            "unit_gradient_duration":20,
                            "h":201,
                            "s":611,
                            "v":999,
                            "bright":500,
                            "temperature":800
                        }
                    ]
                }
            }
        ]
    }
    
    

music_data

Customize the control mode of the color changes for the light. Specific lights support this control mode.

  • Value description

    • change_mode: the color mode that changes among the [“direct”,“gradient”] options.
    • bright: The brightness value ranges from 0 to1000.
    • temperature: The color temperature ranges from 0 to 1000.
    • Hue (h): 0–360
    • Saturation (s): 0–1000
    • Value (v): 0–1000
  • Sample code

    {
        "commands":[
            {
                "code":"music_data",
                "value":{
                    "change_mode":"direct",
                    "bright":500,
                    "temperature":800,
                    "h":201,
                    "s":611,
                    "v":999
                }
            }
        ]
    }
    
    

control_data

Customize the control mode of the color changes for the light. Specific lights support this control mode.

  • Value description

    • change_mode: the color mode that changes among the [“direct”,“gradient”] options.
    • bright: The brightness value ranges from 0 to 1000.
    • temperature: The color temperature ranges from 0 to 1000.
    • Hue (h): 0–360.
    • Saturation (s): 0–1000.
    • Value (v): 0–1000.
  • Sample code

    {
        "commands":[
            {
                "code":"control_data",
                "value":{
                    "change_mode":"direct",
                    "bright":500,
                    "temperature":800,
                    "h":201,
                    "s":611,
                    "v":999
                }
            }
        ]
    }
    
    

flash_scene_1

Customize the control mode of the color changes for the light. Specific lights support this control mode.
flash_scene_2, flash_scene_3, and flash_scene_4 pass the values in the same way.

  • Value description

    • bright: The brightness is from 0 to 255.
    • temperature: The color temperature (cool and warm value) is from 0 to 255.
    • frequency: the interval at which the colors are switched. A larger the value specifies a longer frequency of switching between colors. Valid values: 1 to 255.
    • Hue (h): 0–360
    • Saturation (s): 0–255.
    • Value (v): 0–255.
  • Sample code

    {
        "commands":[
            {
                "code":"flash_scene_1",
                "value":{
                    "bright":100,
                    "frequency":76,
                    "hsv":[
                        {
                            "h":210.0,
                            "s":169.0,
                            "v":146.0
                        }
                    ],
                    "temperature":84
                }
            }
        ]
    }
    
    

countdown_1

Countdown setting. Control the switch function of the light. This function is supported by specific lights.

  • Value description

    • Unit: second.
    • Valid values: 0 to 86,400
  • Sample code

    {
        "commands":[
            {
                "code":"countdown_1",
                "value":1200
            }
        ]
    }
    

scene_select

Predefine certain scene settings. This function is supported by specific lights.

  • Value description

    • 1: reading
    • 2: use a computer
    • 3: night light
    • 4: leisure
    • 5: dimmer
  • Sample code

    {
        "commands":[
            {
                "code":"scene_select",
                "value":"1"
            }
        ]
    }
    

switch_health_read

Healthy reading switch. This function is supported by specific lights.

  • Value description

    • true: enable.
    • false: disable.
  • Sample code

    {
        "commands":[
            {
                "code":"switch_health_read",
                "value":true
            }
        ]
    }
    

read_time

Reading time setting. This function is supported by specific lights.

  • Value description

    • Unit: minutes.
    • Valid values: 1 to 60.
  • Sample code

    {
        "commands":[
            {
                "code":"read_time",
                "value":10
            }
        ]
    }
    

rest_time

Rest time setting. This function is supported by specific lights.

  • Value description

    • Unit: minutes.
    • Valid values: 1 to 60.
  • Sample code

    {
        "commands":[
            {
                "code":"rest_time",
                "value":20
            }
        ]
    }
    

Examples of common modes

  • Good night mode

    {
        "commands":[
            {
                "code":"scene_data",
                "value":{
                    "h":37.0,
                    "s":255.0,
                    "v":188.7
                }
            }
        ]
    }
    
    
    
  • Reading mode

    {
        "commands":[
            {
                "code":"scene_data",
                "value":{
                    "h":38.0,
                    "s":8.0,
                    "v":255.0
                }
            }
        ]
    }
    
    
    
  • Party mode

    {
        "commands":[
            {
                "code":"scene_data",
                "value":{
                    "h":16.0,
                    "s":255.0,
                    "v":207.0
                }
            }
        ]
    }
    
    
    
  • Leisure mode

    {
        "commands":[
            {
                "code":"scene_data",
                "value":{
                    "h":226.0,
                    "s":176.0,
                    "v":181.0
                }
            }
        ]
    }
    
    
    
  • Soft light mode

    {
        "commands":[
            {
                "code":"flash_scene_1",
                "value":{
                    "bright":100,
                    "frequency":76,
                    "hsv":[
                        {
                            "h":210.0,
                            "s":169.0,
                            "v":146.0
                        }
                    ],
                    "temperature":84
                }
            }
        ]
    }
    
    
    
  • Colorful mode

    
    {
        "commands":[
            {
                "code":"flash_scene_2",
                "value":{
                    "bright":255,
                    "frequency":80,
                    "hsv":[
                        {
                            "h":0.0,
                            "s":255.0,
                            "v":255.0
                        },
                        {
                            "h":120.0,
                            "s":255.0,
                            "v":255.0
                        },
                        {
                            "h":240.0,
                            "s":255.0,
                            "v":255.0
                        },
                        {
                            "h":0.0,
                            "s":255.0,
                            "v":255.0
                        },
                        {
                            "h":0.0,
                            "s":255.0,
                            "v":255.0
                        },
                        {
                            "h":0.0,
                            "s":255.0,
                            "v":255.0
                        }
                    ],
                    "temperature":255
                }
            }
        ]
    }
    
    
  • Dazzling mode

    {
        "commands":[
            {
                "code":"flash_scene_3",
                "value":{
                    "bright":100,
                    "frequency":76,
                    "hsv":[
                        {
                            "h":210.0,
                            "s":169.0,
                            "v":146.0
                        }
                    ],
                    "temperature":84
                }
            }
        ]
    }
    
    
    
  • Gorgeous mode

    {
        "commands":[
            {
                "code":"flash_scene_4",
                "value":{
                    "bright":255,
                    "frequency":80,
                    "hsv":[
                        {
                            "h":0.0,
                            "s":255.0,
                            "v":255.0
                        },
                        {
                            "h":120.0,
                            "s":255.0,
                            "v":255.0
                        },
                        {
                            "h":240.0,
                            "s":255.0,
                            "v":255.0
                        },
                        {
                            "h":300.0,
                            "s":255.0,
                            "v":255.0
                        },
                        {
                            "h":240.0,
                            "s":255.0,
                            "v":255.0
                        },
                        {
                            "h":0.0,
                            "s":255.0,
                            "v":255.0
                        }
                    ],
                    "temperature":255
                }
            }
        ]
    }
    
    
    

rhythm_mode

Circadian rhythm. Decode the Base64-encoded data.

  • The protocol fields are described as follows:
Version Task switch Mode selection Date setting Number of nodes Node 1 Node N
1 byte: 0x00 1 byte 1 byte 1 byte 1 byte 9 bytes All-in-one protocol of circadian rhythm, with 9 bytes.

Note: The 1-byte parameter mode field is added to the 0x01 protocol.

Version Task switch Mode selection Date setting Parameter mode Number of nodes Node 1 Node N
1 byte: 0x01 1 byte 1 byte 1 byte 1 byte: 0x01, including BT only</br> 0x02: HSV only </br>0x03: HSVBT


1 byte 5 to 9 bytes. 5 bytes, 7 bytes, 9 bytes


All-in-one protocol of circadian rhythm, with 5 to 9 bytes.
  • Protocol field description:
Field No. Length (byte) Description
Version 1 1 0x00: initial version.
Task switch 2 1 0x00: The task is closed.</br>0x01: The task is opened.
Mode selection 3 1 0x00: A gradual change is enabled between the two nodes.
0x0F: The gradual change starts after the node time is reached. The value of this field shows the time of completing the gradual change. The minimum allowable value is `15`.
For example, `0x0F` means that the gradual change is completed 15 minutes after the node time is reached.
Date setting 4 1 Parse the specific byte position. The settings take effect on a specified day, indicated by `1`. See the following description.
Number of nodes 5 1 0x00: one node. Valid values: 1 to 8.
Node parameters Node switch 6 1 The priority of the node switch is lower than that of the task switch.
The status of the node switch is determined only when the task switch is turned on.
0x00: The node is disabled and not effective.
0x01: The node is enabled and effective.
Hour 1 1. Parameter description: hour.
2. Valid values: 0x00 to 0x17.
3. Example: 0x10, 16:00.
Minute 1 1. Parameter description: minute.
2. Valid values: 0x00 to 0x3b.
3. Example: 0x10, 16 minutes.
Hue 2 1. Parameter description: Hue. The first byte represents the hundreds place and the second byte represents the tens place and the units place.
2. Valid values: 0x00 to 0x03 for the first byte and 0x00 to 0x64 for the second byte.
3. Example: 0x03, 0x10. The actual value is 316.
Saturation percentage 1 1. Parameter description: saturation percentage.
2. Valid values: 0x00 to 0x64.
3. Example: The hexadecimal value is 0x10 and the decimal value is 16. It means that the saturation is 16%. </td
Value percentage 1 1. Parameter description: value percentage.
2. Valid values: 0x00 to 0x64.
3. Example: The hexadecimal value is 0x10 and the decimal value is 16. It means that the value is 16%.
Brightness percentage 1 1. Parameter description: brightness percentage.
2. Valid values: 0x00 to 0x64.
3. Example: The hexadecimal value is 0x10 and the decimal value is 16. It means that the brightness is 16%.
Color temperature percentage 1 1. Parameter description: color temperature percentage.
2. Valid values: 0x00 to 0x64.
3. Example: The hexadecimal value is 0x10 and the decimal value is 16. It means that the color temperature is 16%.
  • Date

If all values are set to 0, the one-time mode is specified and takes effect only once. Otherwise, a cyclic mode is specified. If a bit is set to 1, the settings are valid on the day that is indicated by the bit. For example, 0x42 means that the task takes effect on Saturday and Monday. The task switch must be enabled.

Reserved Saturday Friday Thursday Wednesday Tuesday Monday Sunday
bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0
  • Example:

0001000104000000000000000500010002000000005032000538000000001419010B35000000006464 --> AAEAAQQAAAAAAAAABQABAAIAAAAAUDIABTgAAAAAFBkBCzUAAAAAZGQ=

Field Value Description
Version 00 Initial version.
Task switch 01 The task is enabled.
Mode selection 00 Gradient between two points.
Date setting 01 Take effect on Sunday.
Number of task nodes 04 Four nodes.
Node parameters Task switch 00 The node is closed.
Hour 00 0 o'clock.
Minute 00 0 minute.
Hue 0000 Hue is 0.
Saturation percentage 00 The saturation percentage is 0%.
Value percentage 00 The value percentage is 0%.
Brightness percentage 05 The brightness is 5%.
Color temperature percentage 00 The color temperature is 0%.
Node parameters Task switch 01 The node is enabled.
Hour 00 0 o'clock.
Minute 02 02 minutes.
Hue 0000 Hue is 0.
Saturation percentage 00 The saturation percentage is 0%.
Value percentage 00 The value percentage is 0%.
Brightness percentage 50 The brightness is 80%.
Color temperature percentage 32 The color temperature is 50%.
Node parameters Task switch 00 The node is closed.
Hour 05 5 o'clock.
Minute 38 56 minutes.
Hue 0000 Hue is 0.
Saturation percentage 00 The saturation percentage is 0%.
Value percentage 00 The value percentage is 0%.
Brightness percentage 14 The brightness is 20%.
Color temperature percentage 19 The color temperature is 25%.
Node parameters Task switch 01 The node is enabled.
Hour 0B 11 o'clock.
Minute 53 minutes.
Hue 0000 Hue is 0.
Saturation percentage 00 The saturation percentage is 0%.
Value percentage 00 The value percentage is 0%.
Brightness percentage 64 The brightness is 100%.
Color temperature percentage 64 The color temperature is 100%.

sleep_mode

Sleep mode setting. Encode with the Base64 to send a command.

  • The protocol fields are described as follows:
Version Number of task nodes Node 1 Node N
1 byte: 0x00 1 byte 11 bytes 11-byte sleep mode protocol

Note: The 1-byte parameter mode field is added to the 0x01 protocol.

Version Parameter mode Number of task nodes Node 1 Node N
1 byte: 0x00 1 byte: 0x01, including BT only</br> 0x02: HSV only </br>0x03: HSVBT


1 byte 11 bytes 11-byte sleep mode protocol
  • The protocol fields are described as follows:
Field No. Length (byte) Description
Version 1 1 0x00: initial version.
Number of task nodes 2 1 0x01: one node
...
0x04: four nodes
Node parameters Task switch 3 1 0x00: The task is closed.</br>0x01: The task is opened.
Date setting 1 Parse the specific byte position. The settings take effect on a specified day, indicated by `1`. See the following description.
Gradient step value 1 0x10: hexadecimal code, a step of 5 minutes. Calculation of the gradient duration: 16 × 5 = 90. Unit: minutes. Valid values: 0x01 to 0x48.
Starting hour 1 1. Parameter description: hour.
2. Valid values: 0x00 to 0x17.
3. Example: 0x10, 16:00.
Starting minute 1 1. Parameter description: minute.
2. Valid values: 0x00 to 0x3b.
3. Example: 0x10, 16 minutes.
Hue 2 1. Parameter description: Hue. The first byte represents the hundreds place and the second byte represents the tens place and the units place.
2. Valid values: 0x00 to 0x03 for the first byte and 0x00 to 0x64 for the second byte.
3. Example: 0x03, 0x10. The actual value is 316.
Saturation percentage 1 1. Parameter description: saturation percentage.
2. Valid values: 0x00 to 0x64.
3. Example: The hexadecimal value is 0x10 and the decimal value is 16. It means that the saturation is 16%. </td
Value percentage 1 1. Parameter description: value percentage.
2. Valid values: 0x00 to 0x64.
3. Example: The hexadecimal value is 0x10 and the decimal value is 16. It means that the value is 16%.
Brightness percentage 1 1. Parameter description: brightness percentage.
2. Valid values: 0x00 to 0x64.
3. Example: The hexadecimal value is 0x10 and the decimal value is 16. It means that the brightness is 16%.
Color temperature percentage 1 1. Parameter description: color temperature percentage.
2. Valid values: 0x00 to 0x64.
3. Example: The hexadecimal value is 0x10 and the decimal value is 16. It means that the color temperature is 16%.
  • Date

If all values are set to 0, the one-time mode is specified and takes effect only once. Otherwise, a cyclic mode is specified. If a bit is set to 1, the settings are valid on the day that is indicated by the bit. For example, 0x42 means that the task takes effect on Saturday and Monday. The task must be enabled.

Reserved Saturday Friday Thursday Wednesday Tuesday Monday Sunday
bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0
  • Example:

00010120050200000000000A64 --> AAEBIAUCAAAAAAAKZA==

Field Value Description
Version 00 Initial version.
Number of task nodes 01
One node.
Node parameters Task switch 01 The task is enabled.
Date setting 20 Takes effect on Friday.
Gradient step value 05 Calculation of the gradient duration: 5 × 5 = 25. Unit: minutes.
Starting hour 02 2 o'clock.
Starting minute 00 0 minute.
Hue 0000 Hue is 0.
Saturation percentage 00 The saturation percentage is 0%.
Value percentage 00 The value percentage is 0%.
Brightness percentage 0A The brightness is 10%.
Color temperature percentage 64
The color temperature is 100%.

wakeup_mode

Wakeup mode. Encode with the Base64 to send a command.

  • The protocol fields are described as follows:
Version Number of task nodes Node 1 Node N
1 byte: 0x00 1 byte 11 bytes 11-byte wakeup mode protocol

Note: The 1-byte parameter mode field is added to the 0x01 protocol.

Version Parameter mode Number of task nodes Node 1 Node N
1 byte: 0x00 1 byte: 0x01, including BT only</br> 0x02: HSV only </br>0x03: HSVBT


1 byte 11 bytes 11-byte wakeup mode protocol
  • The protocol fields are described as follows:
Field No. Length (byte) Description
Version 1 1 0x00: initial version.
Number of task nodes 2 1 0x01: one node
...
0x04: four nodes
Node parameters Task switch 3 1 0x00: The task is closed.</br>0x01: The task is opened.
Date setting 1 Parse the specific byte position. The settings take effect on a specified day, indicated by `1`. See the following description.
Gradient step value 1 0x10: hexadecimal code, a step of 5 minutes. Calculation of the gradient duration: 16 × 5 = 90. Unit: minutes. Valid values: 1 to 72.
Starting hour 1 1. Parameter description: hour.
2. Valid values: 0x00 to 0x17.
3. Example: 0x10, 16:00.
Starting minute 1 1. Parameter description: starting minute
2. Valid values: 0x00 to 0x3b
3. Example: 0x10, 16 minutes
Hue 2 1. Parameter description: Hue. The first byte represents the hundreds place, the second byte represents the tens place and the units place. 2. Valid values: 0x00 to 0x03 for the first byte, and 0x00 to 0x64 for the second byte. 3. Example: 0x03, 0x10. The actual value is 316.

Saturation percentage 1 1. Parameter description: saturation percentage.
2. Valid values: 0x00 to 0x64.
3. Example: The hexadecimal value is 0x10 and the decimal value is 16. It means that the saturation is 16%. </td
Value percentage 1 1. Parameter description: value percentage.
2. Valid values: 0x00 to 0x64.
3. Example: The hexadecimal value is 0x10 and the decimal value is 16. It means that the value is 16%.
Brightness percentage 1 1. Parameter description: brightness percentage.
2. Valid values: 0x00 to 0x64.
3. Example: The hexadecimal value is 0x10 and the decimal value is 16. It means that the brightness is 16%.
Color temperature percentage 1 1. Parameter description: color temperature percentage.
2. Valid values: 0x00 to 0x64.
3. Example: The hexadecimal value is 0x10 and the decimal value is 16, meaning that the color temperature is 16%.
Duration 1 1. Parameter description: The length of time to keep the light on after the gradient is completed. The decimal value corresponding to the hexadecimal code is calculated automatically, and then multiplied by 5 to get the duration.
2. Valid values: 0x00 to 0x18.
3. Example: The hexadecimal value is 0x10 and the decimal value is 16. In this mode, the light is turned off 90 minutes after the gradient is completed.
4. Note: `0` means that the light is not turned off after the gradient is completed.
  • Date

If all values are set to 0, the one-time mode is specified and takes effect only once. Otherwise, a cyclic mode is specified. If a bit is set to 1, the settings are valid on the day that is indicated by the bit. For example, 0x42 means that the task takes effect on Saturday and Monday. Note that the task switch must be turned on.

Reserved Saturday Friday Thursday Wednesday Tuesday Monday Sunday
bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0
  • Example:

AAEBIAYBBQAAAABkHgA= --> 0001012006010500000000641E00

Field Value Description
Version 00 Initial version.
Number of task nodes 01
One node.
Node parameters Task switch 01 The task is enabled.
Date setting 20 Takes effect on Friday.
Gradient step value 06 Calculation of the gradient duration: 6 × 5 = 30. Unit: minutes.
Starting hour 01 1 o'clock.
Starting minute 05 05 minutes
Hue 0000 Hue is 0.
Saturation percentage 00 The saturation percentage is 0%.
Value percentage 00 The value percentage is 0%.
Brightness percentage 64 The brightness is 100%.
Color temperature percentage 1E The color temperature is 30%.
Duration 00 A value of `0` indicates that the light is not turned off.