You can create a scheduled task on the App and save the task on Tuya Cloud. At the scheduled time, Tuya Cloud sends the on/off operation command to the device for execution. If the network is disconnected at the scheduled time, the device cannot execute the command.