Get notification if internet access lost

I see that there is a Netgear App which does what I want to do but I don’t have a netgear router. What I want to do is get a notification if I lose internet access. I can then automate to power the router off and on. This usually resolves the issue.

Can anyone advise how to detect if the internet connection is lost from Homey Pro.

You could try Net Scan if you have a Homey Pro

1 Like

But you need a local way to get the information in that case.
Push notification will not work without internet and cloud access.

1 Like

I check 3 websites with Netscan. If all three are unavailable, I consider my internet as down.

And if the network is down can you get a notification?

Could you share the flow please?

Peter

| Peter_Kawa Regular
April 10 |

  • | - |

I check 3 websites with Netscan. If all three are unavailable, I consider my internet as down.

You wanted to automate rebooting the router. That is something different then getting a notification.
A notification is not going to happen without Internet/Cloud access.
But switching of a plug powering your router and switching it on a minute later is possible because Homey can do that without Internet access.

You can also change the led ring to flashing red or something like that and maybe even get Homey to say something (if you have a Homey with a speaker). But that is only useful if you are at home.

Sure.

NetScan device for 1 IP:
(Don’t use a very low check interval value for outside IP’s)

.
Flow for 1 IP:
I created a numVar called [InternetDown]

When three IP’s are unreachable:

.
You can also monitor your router this way, and if LAN connection is lost, reboot your router the same way

1 Like

Thanks for that. Now thinking about making sure it doesn’t go into some loop turning the router off and on while the router is resetting. Is there any particular logic using the Numvar that you use to prevent this?

| Peter_Kawa Regular
April 10 |

  • | - |

Peter_Bittner:

Could you share the flow please?

Sure.

NetScan device for 1 IP:

.
Flow for 1 IP:
I created a numVar called [InternetDown]

When three IP’s are unreachable:

.
You can also monitor your router this way, and if LAN connection is lost, reboot your router the same way

You can also use logica

http GET to https://yoururlofwebserver.com met headers none and body none is equal to status-code 200.

Then you know your webserver is online.

I’m not sure what logica is?

Peter

| ChrisBoer
April 10 |

  • | - |

You can also use logica

http GET to https://yoururlofwebserver.com met headers none and body none is equal to status-code 200.

Then you know your webserver is online.

Logic is something you use in almost every flow.

The last one on the right you should take.

Use https://uptimerobot.com/
It’s free.

What mechanism do you use to have this trigger a flow or set a logic variable? @ChrisBoer included this to show how he does this with the GET command. I could use some more detail please.

I use it separate of Homey. I do a ping to my wan-ip. No coupling to Homey.
You can try the app “Smart presence” and and use the ip of Google for example.

Just a time trigger so every ten minutes or so depends on your needs

Use this, i think its the easiest way Network Check App für Homey | Homey

@Peter_Kawa : Which three sites do you monitor?

Hi,

I use this simple flow to check my internet connection. It is the same as Chris Boer mentioned.

1 Like

FWIW, http://www.nos.nl does not return a 200 status.

Then I don’t know what is happening here…