Auto recovery after failure ->Auto OFF and ON a switch, if the ST is offline

I have a local processing Z-Wave Switch power plug. Let’s say that in this plug I will connect the Wi-Fi router and the SmartThings hub.

Is there any possibility to set the Z-Wave Switch to auto OFF and ON after 5 sec (or a minute) if the SmartThings hub is offline? In this way I can restore the internet and the control…

Unfortunately, no. At the present time there is no custom code which can operate locally that match this use case.

However, this is a common need, and there are smart plugs you can buy that can handle this situation. They are usually standalone Wi-Fi devices. They can recognize when the Internet is not available and then reboot after certain period of time. They don’t integrate with smartthings, but they do solve the need for many people.

You can read about how various people have approached these issues by using the quick browse lists in the community – created wiki, look down the page to the project reports section, and check the list about “power.“

Or you can just go straight to the following thread, which lists several of the more popular devices. I know the 3G brand does offer their switch in a number of European formats. I’m not sure about the other ones.