Advanced - Lighting for Sleeping
Function Introduction
The light-aiding sleep function will start at the set time, and after a period of gradual dimming, the light will be turned off to help people fall asleep better.
- Some parameters are explained as follows:
- Gradual dimming time: used to set the time from the start of the light-aiding sleep function to the time required to completely turn off the light. It can be set according to actual usage needs.
- Repeat cycle: used to set a single start or a cyclical repeated start. 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 single start, and the task will automatically turn off after one execution.
- Usage example
- Set the time to 11:00 pm, select Monday to Friday, and set the gradual dimming time to 30 minutes. At 11:00 pm from Monday to Friday every week, the light automatically adjusts to a low brightness and low color temperature state, and gradually dims until it is completely turned off at 11:30 pm.
DP protocol
- Wi-FI protocol DP: sleep_mode
- Ble Mesh protocol DP: sleep_mode
How to develop
- Monitor, report and send DP according to UI interaction
Notes
None
Related materials
- [Function page]:
- None
- [Component]:
- None
- [Tutorial]:
- None
- [SDK]:
- None
- [API]:
- None