Last Updated on : 2024-11-20 08:51:40download
This topic describes the common questions about the light to sleep and wake-up feature to help you troubleshoot problems.
With the light to sleep feature enabled, the lights can gradually fade out over a set period of time in the evening, providing a relaxing way to lull you into a peaceful slumber. The light to wake-up feature allows you to set the lights to gradually increase in brightness to wake you up gently and naturally with less startle.
Field description of light to sleep feature
Field | Subfield | No. | Length (byte) | Description |
---|---|---|---|---|
Version number | - | 1 | 1 | 0x00: the initial version |
The number of tasks | - | 2 | 1 |
|
Parameters of a task | Task on/off | 3 | 1 |
|
- | Day(s) of the week | 4 | 1 | Select the day of the week to have a task recur on that day every week. The value of a selected day is 1 . |
- | Gradient step | 5 | 1 | 0x10: a value in hexadecimal format. The step size is five minutes. The value ranges from 1 to 72. |
- | The start hour | 6 | 1 | 0x10: a value in hexadecimal format. The value ranges from 0 to 23. |
- | The start minute | 7 | 1 | 0x10: a value in hexadecimal format. The value ranges from 0 to 59. |
- | Hue | 8 and 9 | 2 | 0x03 and 0x10 are in hexadecimal format and represented in big endian. The first byte indicates hundreds. The second byte indicates tens and ones. The value ranges from 0 to 360. |
- | Saturation (%) | 10 | 1 | 0x10: a value in hexadecimal format. The value ranges from 0 to 100. |
- | Value (%) | 11 | 1 | 0x10: a value in hexadecimal format. The value ranges from 1 to 100. |
- | Brightness (%) | 12 | 1 | 0x10: a value in hexadecimal format. The value ranges from 1 to 100. |
- | Color temperature (%) | 13 | 1 | 0x10: a value in hexadecimal format. The value ranges from 0 to 100. |
Field description of light to wake-up feature
Field | Subfield | No. | Length (byte) | Description |
---|---|---|---|---|
Version number | - | 1 | 1 | 0x00: the initial version |
The number of tasks | - | 2 | 1 |
|
Parameters of a task | Task on/off | 3 | 1 |
|
- | Day(s) of the week | 4 | 1 | Select the day of the week to have a task recur on that day every week. The value of a selected day is 1 . |
- | Gradient step | 5 | 1 | 0x10: a value in hexadecimal format. The step size is five minutes. The value ranges from 1 to 72. |
- | The start hour | 6 | 1 | 0x10: a value in hexadecimal format. The value ranges from 0 to 23. |
- | The start minute | 7 | 1 | 0x10: a value in hexadecimal format. The value ranges from 0 to 59. |
- | Hue | 8 and 9 | 2 | 0x03 and 0x10 are in hexadecimal format and represented in big endian. The first byte indicates hundreds. The second byte indicates tens and ones. The value ranges from 0 to 360. |
- | Saturation (%) | 10 | 1 | 0x10: a value in hexadecimal format. The value ranges from 0 to 100. |
- | Value (%) | 11 | 1 | 0x10: a value in hexadecimal format. The value ranges from 1 to 100. |
- | Brightness (%) | 12 | 1 | 0x10: a value in hexadecimal format. The value ranges from 1 to 100. |
- | Color temperature (%) | 13 | 1 | 0x10: a value in hexadecimal format. The value ranges from 0 to 100. |
- | Duration | 14 | 1 | 0x10: a value in hexadecimal format. The step size is five minutes. It is used to set how long the light stays on after it reaches full brightness. The value ranges from 0 to 24. 0 means the light stays on. 24 means the light comes off in 120 minutes. |
Description of day(s) of the week
If all the bits are 0
, it indicates a one-time task. If a bit is set to 1
, it indicates the task recurs on that day every week.
Reserved | Saturday | Friday | Thursday | Wednesday | Tuesday | Monday | Sunday |
---|---|---|---|---|---|---|---|
bit7 | bit6 | bit5 | bit4 | bit3 | bit2 | bit1 | bit0 |
Other considerations
After a schedule is created, the mobile app will send the setting data to the module on the smart light. If you develop with the SDK, you need to register the raw data handler to receive data from the app.
Each time users create or delete a task, or edit settings such as recurring days, color temperature, and brightness, the mobile app will send the data to the light.
The light will calculate the target status and transition duration based on the current timestamp and run the task accordingly.
If the task is being run, its operation will be interrupted. If this is a recurring schedule, the task on that day cannot be run until the next week.
With the light to sleep and wake-up feature turned on, some operations on lighting by using the mobile app will interrupt the task scheduled in that time period. These operations can be:
For the light to sleep task, the reporting time is the set bedtime plus the fade-out time. Once the reporting time is reached, the module reports the result to the app.
For the light to wake-up task, the reporting time is the wake-up time minus the fade-in time. Once the reporting time is reached, the module reports the result to the app.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback