Last Updated on : 2024-06-21 03:56:47download
This topic describes the types and settings of weekly schedules and the data parsing example for MCU integration protocol.
Time format: hh:mm (24-hour clock)
Extension: Allow the user to set on/off, mode, and temperature for a schedule. This requires support for the corresponding standard functions (DPs).
Limitations:
Trigger logic:
Time format: hours (24-hour clock)
Extension: Allow the user to set mode (default), temperature and mode, temperature, and on/off for a schedule.
Limitation: Schedules cannot be sent to the device without an internet connection.
You can select either cloud timing or week_program_free to implement the weekly schedule.
Trigger logic: Schedule processing depends on the cloud. When the time has elapsed, the cloud sends the specified DP command to the device.
Time format: hours (24-hour clock), 28, 56, 84, 112, 140, or 168 bytes.
Extension: Up to six segments can be configured.
Trigger logic: Data in hex is transmitted. MCU’s clock is used to trigger the schedule.
Raw data format:
01 86 01 5e
.
01 86
is 390 (minutes) in decimal, indicating the time 06:30.01 5e
is 350 in decimal, indicating the temperature is 35.0.Time format: hours (24-hour clock), 84 bytes.
Extension: The mode enum value is retrieved from the DP mode
. You can hide an unnecessary mode on the Tuya Developer Platform.
Trigger logic: Data in hex is transmitted. MCU’s clock is used to trigger the schedule.
Raw data format:
mode
determines the available modes.100000000000000000000000
, indicating that a mode is set for the first hour on Monday. The mode displayed is determined by the valid values of DP 4 mode
. For example, 1
for smart
, 2
for auto
, and 3
for cold
.Command parsing:
100000000000000000000000
100000000000000000000000
200000000000000000000000
002222200000000000000000
000000000000000000000000
333333300000000000000000
000000000000000000000000
Time format: hours (24-hour clock), 21 bytes.
Trigger logic: Data in hex is transmitted. MCU’s clock is used to trigger the schedule.
Raw data format:
On/off state can be set per hour. This DP is 21 bytes. Every three bytes indicate an on/off state.
Take the schedule on Monday as an example, d40000
in hex is 11010100 00000000 00000000
in binary, 1
for on and 0
for off.
d40000
fc0000
000000
000000
000000
000000
000000
Time format: hours (24-hour clock), 168 bytes.
Trigger logic: Data in hex is transmitted. MCU’s clock is used to trigger the schedule.
Raw data format:
06060606ffffffffffffffffffffffffffffffffffffffff
indicating the temperature at 00:00, 01:00, 02:00, and 03:00 is set to 6°C. ff
means no temperature set.The temperature range is consistent with the value range of the DPs temp_set
and temp_set_f
. After the temperature unit is changed, the value range is changed accordingly and the weekly schedule should be set again.
Command parsing:
06060606ffffffffffffffffffffffffffffffffffffffff
ffffffffffffffffffffffffffffffffffffffffffffffff
ffffffffffffffffffffffffffffffffffffffffffffffff
ffffffffffffffffffffffffffffffffffffffffffffffff
ffffffffffffffffffffffffffffffffffffffffffffffff
ffffffffffffffffffffffffffffffffffffffffffffffff
ffffffffffffffffffffffffffffffffffffffffffffffff
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback