H Martins Posted July 27 Share Posted July 27 I have an Internet router, cell phone 4G type. From time to time the router looses the 4G network. It is not related to the router but to the 4G comm company. Other different router does the same. I power-off and power-on the router and it recovers 4G connectivity. Many hours later it happens again. I would like to use a Shelly 1 Mini the following way: The Shelly 1 mini NC contact would power the router. If the router looses connection to 4G network, the Shelly device would loose connectivity to Shelly servers, open the NC contact for a few seconds powering off the router, close the NC contact after these couple seconds and wait a couple minutes to evaluate is connectivity came beck or not. If connectivity doesn’t come back it would open the NC contact for some seconds again … and so on. Can this be done? I am used to code for Arduinos, some hints will, probably be enough. Thanks H. Martins Quote Link to comment Share on other sites More sharing options...
Members thgoebel Posted July 27 Members Share Posted July 27 Unfortunately, all Shellies have NO contacts. Hence, the logic has to be reconsidered. Quote Link to comment Share on other sites More sharing options...
H Martins Posted July 27 Author Share Posted July 27 (edited) Should not be a problem to invert the logic. Energize the relay just in case and de-energize for some seconds if contact to server (internet) is lost. Edited July 27 by H Martins Quote Link to comment Share on other sites More sharing options...
wimb Posted July 27 Share Posted July 27 I've seen a script that does something like that. Before it was called internetmonitor.js but I think it was rewritten and now it is https://github.com/shelly-tools/shelly-script-examples/blob/main/monitor_internet_connection.js 1 Quote Link to comment Share on other sites More sharing options...
H Martins Posted July 27 Author Share Posted July 27 It is surely a good start. Thank you. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.