1, How is the offline status determined?
The device's online or offline status in the App depends on the server's judgment of the device state. According to our server's judgment logic, if no data or ping packets from the device are received during two consecutive detection cycles, the server will consider the device to be offline. A single detection cycle is 60*1.25 seconds, meaning that after the device is powered off for 60*1.25*2 seconds, the server will consider the device to be offline. There is a time difference of about 140 seconds, during which the device will still be shown as online in the App, but control will not be effective.
2, Is it possible to shorten this offline determination time?
We have considered shortening the time difference by two methods. The first is to consider the device offline if no data is received from the device during one detection cycle. The second is to shorten the detection cycle from 60 seconds. However, based on Tuya's 6 years of practical experience, shortening the offline detection cycle will generate a large number of offline events, which cannot truly indicate whether the device is offline. It will also bring a significant amount of traffic costs and message storage costs. We do not recommend shortening the offline time determination from the perspective of user-friendliness and cost. The current time difference of 2-3 minutes to display offline is the most suitable solution we have found through long-term practice.