Previously created timer and scheduling functions are stored on the device, and will not be lost when the smart electrical device loses Wi-Fi access as long as the device is still active.
If the power supply to the device is interrupted, such as during a power outage, the timer or scheduling will be lost until the smart electrical device can reconnect to the Wi-Fi network.