What will happen when the Internet is turned off in a smart home

In fact, it doesn't matter whether an opensource solution for a smart home or some proprietary gateways are used, a smart home still depends heavily on the Internet, why can there be such a big dependence, because in fact, if branded gateways are used, then they use one hundred percent different cloud solutions for storing scripts, for remote access, and from-because of this, of course, they have to connect there and still store information on external servers.

Also, if this implies integration with other ecosystems, then in general they all connect only at the level of cloud solutions, that is, for example, if you connect a gateway from Xiaomi or Tuya to the Yandex ecosystem, then the signal will go from a sensor of some kind to the Tuya gateway, then it will go to the Tuya or Xiaomi cloud and, accordingly, then it will already go to the Yandex cloud and the control signal will already come from it there to control some other devices connected to the Yandex smart home, that is, it will not be possible to directly connect the two ecosystems to each other there anyway it will be already in internet delaetsya.

Wi-fi devices they work without a gateway, but also for example, some wi-fi devices can be connected to the Yandex ecosystem directly and then the conditional path will be shorter, but then they will not work for example already in the Tuya app, but if you first add them to the Tuya app, then this integration will go exactly the same way through the cloud and back if you use a smart speaker from Yandex, then when a command is given to turn on a device, the signal cannot be processed on the speaker itself, it is sent to the Yandex cloud where the speech itself is processed then some basic words for the command are highlighted and after that there if Yandex recognized that you need to turn on some device, it sends a signal to the cloud through its cloud, for example, Tuya, and then the Tuya cloud sends it to its gateway or to its wi-fi device, and then the device is triggered, that is, smart speakers are also very dependent on the Internet and of course nothing will work if the Internet disappears.

Now many branded gateways they advertise such a feature that they can work even without the Internet, that is, if the connection is lost, then they will still execute some scripts locally, of course the simplest script can be handled this way it is advertised for Aqara gateways and for gateways and devices new from Yandex, there are speakers or a hub, then in fact yes, that is, it can certainly be done, for example, if you take something more expensive, for example Legrand, then they generally have the whole ecosystem built in this way and the zigbee protocol itself supports such a way of interaction that when two devices are connected, for example, a relay and a wireless switch, these devices contain information about what they are connected to they were connected and can perform actions directly, but in fact it does not always work if some more complex scenario or a certain action, for example, these devices do not support, then of course you will not be able to link them, and for this, again, if for example these connections and the simplest scenarios are saved on the gateway, that is, then of course, this can be handled locally, if they are not saved, then nothing will work at all without the Internet, no script and the house will turn into a pumpkin.

Well, of course, if the Internet connection is lost, then of course you will not be able to connect to this smart home in a remote way, for example, if you use the application, then for example in the Home Assistant application it works locally, but it can also connect via the Internet, but for example OpenHAB it also works when connected if wi-fi and phone are connected there or the tablet is located on a local network with the smart home server, then it then selects the local access connection mode, that is, just directly, and if, for example, it determines that it is not connected to this wi-fi or not connected to wi-fi at all and does not see the smart home server, then it tries to connect via the cloud is already becoming dependent on the Internet again.

For example, if the phone is not connected to wi-fi there and even from home it is obtained via 4G, it will go online and from there it will not be able to connect to the smart home server.

Some wi-fi devices they work in diy mode, that is, they allow you to connect directly to them without using clouds, this is an interesting mode, usually a device from Sonoff has this mode, that is, you can activate it there before you had to change the firmware there or solder something there, but now in most devices you have they already have, basically, some relays, they have the ability such that this mode is activated and then just connects over the network to this device and you can give different commands and if the smart home server, then of course it will be able to control such a device via wi-fi, because it is not from the cloud it depends and you can also get the status of the os state of this device, which in principle is quite convenient.

For example, I have a device that is made on the basis of esp8266 and esp32 they work on wi-fi and if I need to get some information from them there or if they can control something, for example, I have one that controls the relay, then accordingly I can in any case, even if there is no Internet, write a script and it will work without any problems, but of course there may be a problem on the router's side, but usually if the router does not work, it is not connected to the Internet, it still routes the local network normally and in principle everything will work.

In my smart home, of course, there are difficulties associated with the Internet because I first store the database on an external hosting and I have all the data written there and if the Internet disappears, then of course my system will not be able to save the values already, I have now made it so that it still saves locally all the values of the latest sensors, but for example, if I use some averaged data for a period somewhere in the script, then of course I take it from an external hosting service and then these scripts will no longer be executed without the Internet, so of course some compromise is needed here-still make a decision completely locally or some kind of dependent on Internet, or for example the temperature on the street, the weather, I also take from the Internet and if I have respectively the Internet will not be available, then of course I can not remove this data and show it on my dashboards will not work, this is of course a big minus you can use different sensors, for example, there the Aqara sensor can also show pressure and the temperature and humidity, of course, it can be placed so that it can still measure the temperature on the street, for example, put it on the balcony, but this is still not complete information, of course, for example, it will not be able to show current precipitation or weather forecast there, but if you need data from some other location, then of course you will not be able to get it this way without the Internet.

Well, since my data is saved to this external database, then when I load or restart the smart home server, each time the value is obtained from this external database, the latter are loaded so that the system can work with the current sensor values, for example, many Home Assistant or OpenHAB systems, they often simply do not show any value when rebooting, because they do not know, there is of course for example MQTT to get the last value and so they do of course often, but it also does not come instantly, although it should happen when loading, that is, when the primary connection to MQTT is made, then at this moment this broker sends the saved value, but not always not immediately appears and some are not actually saved, so there is also how to handle it in scripts, it needs to be provided for and will not be very easy, but I get it so that the download goes from an external hosting, from an external database, and if there is no Internet, the download simply does not go correctly and in general the whole smart home stops working there, this is certainly inconvenient, and I plan to switch more to local data loading solutions in the near future, but related to statistics for a certain period or for past periods, of course, you can't do anything special, anyway, because storing the database locally is very large volumes and if you store it on an sd card, the sd card can fail quickly, but connecting hard drives, there is an SSD for example, it doesn't matter this is already a separate solution, and even connecting it to the Raspberry and Orange server is not very easy, and this is not a typical solution for a smart home.

Automation in a smart home should be useful and create additional comfort, but sometimes everything goes wrong… The reasons for this, and how to configure everything, see on my channel.

You may also watch

Article By Alex

If you have any ideas on how to improve automation, make it more reliable, fast and useful, then you can leave a comment below. I will try to implement the proposals and tell you in the following videos.