Advanced - Random Timing

Function Introduction

The light-watching function will simulate the scene of someone at home by randomly turning on and off the lights during the set time period, which plays a role in preventing theft.

  • Some parameters are explained as follows:
  • Repeat cycle: used to set a single turn-on or a cyclical turn-on. Select any time from Monday to Sunday, and the task will be repeated at the corresponding time; if no time is selected, the default is a single turn-on, and the task will automatically turn off after one execution
  • Custom color: used to customize the light status when the light is on during the execution of the light-watching function
  • Usage example:
  • Set the task time to 6:00 pm ~ 12:00 am, select the rest days Saturday and Sunday, and turn on the light-watching function. The light will automatically turn on and off randomly from 6:00 pm to 12:00 am on Saturday and Sunday to simulate the scene of someone at home.

DP protocol

  • DP: random_timing
Serial numberNameNumber of bytesIdentifierData typeField attributeField description
1Protocol version1versionEnumerationInitial version: 00Protocol version
2Node length1lengthValueMaximum value: 255 Minimum value: 0 Step distance: 1 Multiple: 0Node length
3Task switchon_offEnumerationTask off: 02 Task on: 03
4Week1weekWeekly dataInverse calculationIf all are 0, it means single mode, which is effective only once; otherwise, it is cyclic mode, and the corresponding bit is judged whether it is set to 1. Position 1 means it is effective on the same day. For example, 0x42 means that the task will take effect on Saturday and Monday (note that the corresponding task switch must be turned on)
5Start time2start_timeValueMaximum value: 1439 Minimum value: 0 Step: 1 Multiple: 0x10: hex code, 16%; Value range: 0~1439
6End time2end_timeValueMaximum value: 1439 Minimum value: 0 Step: 1 Multiple: 0x10: hex code, 16%; Value range: 0-1439
7Hue (hundreds)1H_hundredsValueMaximum value: 3 Minimum value: 0 Step: 1 Multiple: 00x03, 0x10: hex code. Big endian format, the first byte represents hundreds, the second byte represents tens, and the units. The actual value is 316, and the value range is: 0~360
8Hue (tens and ones)1 H_tens_onesValueMaximum value: 99 Minimum value: 0 Step: 1 Multiple: 00x03, 0x10: hex code. Big-endian format, the first byte represents hundreds, the second byte represents tens and ones. The actual value represents 316, and the range is 0-360
9Saturation percentage1SValueMaximum value: 100 Minimum value: 0 Step: 1 Multiple: 00x10: hex code, 16%; Range: 0-100
10Brightness percentage1VValueMaximum value: 100 Minimum value: 0 Step: 1 Multiple: 00x10: hex code, 16%; Range: 0-100
11Brightness percentage1BValueMaximum value: 100 Minimum value: 0 Step: 1 Multiple: 00x10: hex code, 16%; Range: 0-100
12Color temperature percentage1TValueMaximum value: 100 Minimum value: 0 Step: 1 Multiple: 00x10: hex code, 16%; value range: 0-100

How to develop

Notes

None

  • [Function page]:
    • None
  • [Component]:
    • None
  • [Tutorial]:
    • None
  • [SDK]:
    • None
  • [API]:
    • None