Advanced - Biorhythm
Function Introduction
- Biorhythm: Bring the concept of natural light indoors through the device: Set a day to N moments (1≤N≤8), and set the corresponding brightness and color temperature. The device simulates the sun and automatically changes gradually according to these N moments in a day.
- Tuya Human Lighting (Advanced Function): You can choose to locate the destination with precise latitude and longitude. After clicking Save Address, the longitude and latitude biorhythm function is turned on. After the function is turned on, the smart lighting device will automatically adjust its color temperature and brightness according to the time change to simulate the natural lighting conditions in the location area. The natural light environment can not only help balance the visual perception of the human eye, but also regulate hormone levels and biological clocks, thereby positively affecting the psychological and emotional health of the human body. Currently only a single device has this function, and the group is blocked. The number of channels only supports two and five channels
Biorhythm default mode
- The default mode displays 4 nodes, WIFI protocol: 6 nodes are actually sent by dp, and sigMesh protocol: 4 nodes are sent.
- The color and time of the sent data are not adjustable. Click the color wheel to gray it out. The default is the display function.
Biorhythm Natural Mode
- The natural mode displays 3 nodes. When using the WIFI protocol: 5 nodes are actually sent. When using the sigMesh protocol: 3 nodes are sent. When entering [Natural Mode] for the first time, the default value is the same as [Default Mode]. There is a prompt above the color ring to select a city. Click to jump to the map page to select longitude and latitude. If the positioning function is not turned on on the phone, you need to be reminded to turn on the positioning function. When entering the map, if the GPS is not turned on, the default location is Beijing; if the GPS is turned on, the default location is the longitude and latitude of the phone's location. As long as the longitude and latitude have been selected, regardless of whether it is saved, the longitude and latitude selected last time will be remembered when entering [Natural Mode] next time. After selecting the longitude and latitude, the interface will obtain the three time nodes of sunrise, noon, and sunset according to the longitude and latitude, and supplement the remaining two hidden nodes based on these three nodes and send them down.
Biorhythm Custom Mode
- The custom mode displays 4 nodes. When using the WIFI protocol: 6 nodes are actually sent down by dp, and 4 nodes are sent down by the sigMesh protocol.
- Click the color circle below the time to customize the time and color temperature.
DP protocol
Default data:
Specific protocol
- Version 0x00
- Version 0x01
- Field description
- The current biorhythm cannot select a date, the default is all 1
- If all 0, it means single mode, which only takes effect once; otherwise, it is a cyclic mode, judging whether the corresponding bit is set to 1, and position 1 means it takes effect on the same day. For example, 0x42 means that the task takes effect on Saturday and Monday (note that the corresponding task switch must be turned on)
Biorhythm interface
How to develop
-
Monitor, report and send DP according to UI interaction
-
Component reference example
Notes
- If Wi-Fi and zigbee devices are turned on when biorhythm is enabled, biorhythm needs to be downloaded again to make it effective
Related materials
- [Function page]:
- None
- [Component]:
- [Tutorial]:
- None
- [SDK]:
- None
- [API]: