# What if my internet connection fails

**URL:** <https://forum.ewelink.cc/t/what-if-my-internet-connection-fails/7730>\
**Category:** Uncategorized\
**Created:** [November 1, 2022, 5:38pm UTC](https://forum.ewelink.cc/t/what-if-my-internet-connection-fails/7730 "2022-11-01T17:38:43Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![morgan](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/morgan/32/3184_2.png) [@morgan](https://forum.ewelink.cc/u/morgan)\
**Post date:** [November 21, 2023, 4:22pm UTC](https://forum.ewelink.cc/t/what-if-my-internet-connection-fails/7730/9 "2023-11-21T16:22:47Z")

</div>

> [@guilbaud.usa](#):
>
> Hi all,  
> i am reading your posts about the Sonoff modules (Basic, MiniR2, etc) keeping the proprammed On/Off settings EVEN WHEN WIFI IS OFF.  
> I have a few Sonoff MiniR2 installed and working fine for a long time, but when my Router is OFF (no WIFI at all), all the Sonoff Mini R2 are OFFLINE on the Ewelink app, and they do not start their programmed cycles On/Off.  
> Of course, when the Wifi is restored, the Sonoff modules work fine again because they are back online.  
> I am only interested in the fact that the Sonoff modules continue to work during the period when internet is OHH (even if it lasts days).  
> So my question is : does it really work with Sonoff BASIC ? Is it only with Sonoff BASIC ? Is there another Sonoff Wifi relay/switch that keeps executing the programs even without Wifi ?  
> Thank you very much !

> [@guilbaud.usa](#):
>
> Hello,  
> I tried the following with Sonoff MiniR2 and Sonoff BasicR2 : same result. Not functionning without Wifi.  
> All my Sonoff devices have the firmware 3.7.6 as of today. They all have LAN activated (but I dont understand the point since my network was turned off foor this test).  
> My Sonoff devices were programmed (via Ewelink) to turn On at a certain hour and then Off later in the day. Then I unplugged my wifi router to check if they were still following the program (turning On and Off) at the hours I programmed. The Sonoff devices did NOT turn On or Off when they were Offline.  
> So i guess it is because they only work when ONline, meaning the orders to tun On / Off come from the network/Wifi and are NOT stored in the memory of the Sonoff devices.  
> Sad for me because I was really hoping it would work.  
> Is there another Sonoff device that would store the programmed On/Off settings and function when they dont receive a Wifi signal ?  
> Thank you very much for your help.  
> JC

Sonoff devices usually do not work as you would like.  
Many functions are cloud-dependent, meaning they stop working without internet access.

There are two issues to distinguish… no internet connection and no wifi connection to your LAN for the sonoff device.

If there is no Internet, some functions, depending on the device model, may not work, and scenes will not work either.

LAN mode is intended for communication between devices within the LAN network, but they still must be connected to WiFi and have communication within the LAN network. If your situational model is to turn off the Wi-Fi router and the devices lose connection to the network, it is obvious that they will not work, LAN mode has nothing to do with it.

Many Sonoff devices in 2023 have LAN mode… what does this mean, it means that when the devices are connected to the WiFi router and communication in your LAN network is available, you can then run the ewelink app and still control devices that support LAN mode. But remember that control does not mean support for scenes or other cloud-dependent functions.

The device that replaces the cloud or creates a local cloud is the iHost, which is intended to provide cloud functionality but locally in the LAN without the need for Internet access.

Another example is Sonoff Zigbee Bridge Pro which supports local scenes but only for devices paired to it, i.e. ZigBee.

Many people replace the ewelink cloud with their own automation systems such as Home Assistant in order to, among other things, be able to function when there is no Internet access.

Can the device have a running schedule in LAN mode? Yes, provided that it was set when there was Internet access. Tested on S26R2 and Micro. You cannot edit or add new variables in LAN mode.

Will the schedule work when the device is not only without the Internet but also not connected to Wi-Fi? Yes, tested on S26R2.  
But there is a very important thing to note! The device cannot perform a power loss cycle! Otherwise it won’t work.  
When the device is connected to Wi-Fi and has access to the cloud, we set the schedule, then turn off Wi-Fi, the device is still able to execute the schedule (tested only a few minutes after going offline), but if there is a power outage, the device will not work. Probably the software not loaded into memory and the boot sequence which will not do anything more than try to connect to Wi-Fi.  
The above conclusions are based on short testing based on only two devices and may not be reliable on a large scale and over the long term.

---

_[View the full topic](https://forum.ewelink.cc/t/what-if-my-internet-connection-fails/7730)._
