# Get notification if internet access lost

**URL:** <https://community.homey.app/t/get-notification-if-internet-access-lost/62539>\
**Category:** Questions & Help\
**Tags:** flow, homey-pro\
**Created:** [April 9, 2022, 9:01pm UTC](https://community.homey.app/t/get-notification-if-internet-access-lost/62539 "2022-04-09T21:01:15Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peter\_Bittner](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_bittner/32/16698_2.png) [@Peter\_Bittner](https://community.homey.app/u/Peter_Bittner)\
**Post date:** [April 9, 2022, 9:01pm UTC](https://community.homey.app/t/get-notification-if-internet-access-lost/62539/1 "2022-04-09T21:01:15Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [April 9, 2022, 9:19pm UTC](https://community.homey.app/t/get-notification-if-internet-access-lost/62539/2 "2022-04-09T21:19:14Z")

</div>

You could try Net Scan if you have a Homey Pro

> **[Net Scan](https://homey.app/en-gb/app/com.netscan/Net-Scan/)**
>
> Watch devices on your local network by scanning for TCP ports

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [April 9, 2022, 9:42pm UTC](https://community.homey.app/t/get-notification-if-internet-access-lost/62539/3 "2022-04-09T21:42:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [April 10, 2022, 1:53am UTC](https://community.homey.app/t/get-notification-if-internet-access-lost/62539/4 "2022-04-10T01:53:08Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Peter\_Bittner](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_bittner/32/16698_2.png) [@Peter\_Bittner](https://community.homey.app/u/Peter_Bittner)\
**Post date:** [April 10, 2022, 2:36am UTC](https://community.homey.app/t/get-notification-if-internet-access-lost/62539/5 "2022-04-10T02:36:09Z")

</div>

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

Could you share the flow please?

Peter

> ![](https://sea1.discourse-cdn.com/flex015/user_avatar/community.homey.app/peter_kawa/45/45413_2.png "Peter\_Kawa") | [Peter\_Kawa](https://community.homey.app/u/peter_kawa) Regular  
> April 10 |
> 
> - | - |

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

---

<div class="post-metadata">

**Author:** ![PetervdK](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/petervdk/32/20669_2.png) [@PetervdK](https://community.homey.app/u/PetervdK)\
**Post date:** [April 10, 2022, 12:41pm UTC](https://community.homey.app/t/get-notification-if-internet-access-lost/62539/6 "2022-04-10T12:41:10Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [April 10, 2022, 3:15pm UTC](https://community.homey.app/t/get-notification-if-internet-access-lost/62539/7 "2022-04-10T15:15:45Z")

</div>

> [@Peter\_Bittner](#):
>
> Could you share the flow please?

Sure.

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

> ![Screenshot_20220410-165108_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/8/a84ec5429bd42020da74a491221aab2e6cff4307.jpeg)

.  
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

---

<div class="post-metadata">

**Author:** ![Peter\_Bittner](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_bittner/32/16698_2.png) [@Peter\_Bittner](https://community.homey.app/u/Peter_Bittner)\
**Post date:** [April 10, 2022, 8:21pm UTC](https://community.homey.app/t/get-notification-if-internet-access-lost/62539/8 "2022-04-10T20:21:27Z")

</div>

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?

> ![](https://sea1.discourse-cdn.com/flex015/user_avatar/community.homey.app/peter_kawa/45/45413_2.png "Peter\_Kawa") | [Peter\_Kawa](https://community.homey.app/u/peter_kawa) Regular  
> April 10 |
> 
> - | - |

> ![](https://sea1.discourse-cdn.com/flex015/user_avatar/community.homey.app/peter_bittner/40/16698_2.png)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

---

<div class="post-metadata">

**Author:** ![ChrisBoer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/chrisboer/32/1252_2.png) [@ChrisBoer](https://community.homey.app/u/ChrisBoer)\
**Post date:** [April 10, 2022, 9:52pm UTC](https://community.homey.app/t/get-notification-if-internet-access-lost/62539/9 "2022-04-10T21:52:02Z")

</div>

You can also use logica

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

Then you know your webserver is online.

---

<div class="post-metadata">

**Author:** ![Peter\_Bittner](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_bittner/32/16698_2.png) [@Peter\_Bittner](https://community.homey.app/u/Peter_Bittner)\
**Post date:** [April 11, 2022, 12:54am UTC](https://community.homey.app/t/get-notification-if-internet-access-lost/62539/10 "2022-04-11T00:54:27Z")

</div>

I’m not sure what logica is?

Peter

> ![](https://sea1.discourse-cdn.com/flex015/user_avatar/community.homey.app/chrisboer/45/1252_2.png "ChrisBoer") | [ChrisBoer](https://community.homey.app/u/chrisboer)  
> April 10 |
> 
> - | - |

You can also use logica

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

Then you know your webserver is online.

---

<div class="post-metadata">

**Author:** ![ChrisBoer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/chrisboer/32/1252_2.png) [@ChrisBoer](https://community.homey.app/u/ChrisBoer)\
**Post date:** [April 11, 2022, 7:11am UTC](https://community.homey.app/t/get-notification-if-internet-access-lost/62539/11 "2022-04-11T07:11:09Z")

</div>

Logic is something you use in almost every flow.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/f/0f51da92cd7fbc0c4ecfd8a42b9bbdd9b1ab7c60.png)

The last one on the right you should take.

---

<div class="post-metadata">

**Author:** ![Kees\_de\_Vries](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kees_de_vries/32/21389_2.png) [@Kees\_de\_Vries](https://community.homey.app/u/Kees_de_Vries)\
**Post date:** [April 12, 2022, 10:45am UTC](https://community.homey.app/t/get-notification-if-internet-access-lost/62539/12 "2022-04-12T10:45:17Z")

</div>

Use [https://uptimerobot.com/](https://uptimerobot.com/)  
It’s free.

---

<div class="post-metadata">

**Author:** ![Peter\_Bittner](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_bittner/32/16698_2.png) [@Peter\_Bittner](https://community.homey.app/u/Peter_Bittner)\
**Post date:** [April 14, 2022, 5:10am UTC](https://community.homey.app/t/get-notification-if-internet-access-lost/62539/13 "2022-04-14T05:10:20Z")

</div>

> [@Kees\_de\_Vries](#):
>
> [https://uptimerobot.com/](https://uptimerobot.com/)

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.

> [@Peter\_Bittner](#):
>
> http GET to [https://yoururlofwebserver.com](https://yoururlofwebserver.com) met headers none and body none is equal to status-code 200.

---

<div class="post-metadata">

**Author:** ![Kees\_de\_Vries](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kees_de_vries/32/21389_2.png) [@Kees\_de\_Vries](https://community.homey.app/u/Kees_de_Vries)\
**Post date:** [April 14, 2022, 5:32am UTC](https://community.homey.app/t/get-notification-if-internet-access-lost/62539/14 "2022-04-14T05:32:14Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ChrisBoer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/chrisboer/32/1252_2.png) [@ChrisBoer](https://community.homey.app/u/ChrisBoer)\
**Post date:** [April 14, 2022, 5:41am UTC](https://community.homey.app/t/get-notification-if-internet-access-lost/62539/15 "2022-04-14T05:41:04Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Tolga](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tolga/32/12563_2.png) [@Tolga](https://community.homey.app/u/Tolga)\
**Post date:** [April 17, 2022, 6:49am UTC](https://community.homey.app/t/get-notification-if-internet-access-lost/62539/16 "2022-04-17T06:49:55Z")

</div>

Use this, i think its the easiest way [Network Check App für Homey | Homey](https://homey.app/de-de/app/nl.deskweb.netcheck/Network-Check/)

---

<div class="post-metadata">

**Author:** ![Robert\_Larsson](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robert_larsson/32/43192_2.png) [@Robert\_Larsson](https://community.homey.app/u/Robert_Larsson)\
**Post date:** [April 19, 2022, 11:27am UTC](https://community.homey.app/t/get-notification-if-internet-access-lost/62539/17 "2022-04-19T11:27:56Z")

</div>

@Peter_Kawa : Which three sites do you monitor?

---

<div class="post-metadata">

**Author:** ![Ronald\_de\_Boer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronald_de_boer/32/13873_2.png) [@Ronald\_de\_Boer](https://community.homey.app/u/Ronald_de_Boer)\
**Post date:** [April 19, 2022, 2:08pm UTC](https://community.homey.app/t/get-notification-if-internet-access-lost/62539/18 "2022-04-19T14:08:40Z")

</div>

Hi,

I use this simple flow to check my internet connection. It is the same as Chris Boer mentioned.  
[https://homey.app/f/w2G921](https://homey.app/f/w2G921)

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [April 19, 2022, 2:14pm UTC](https://community.homey.app/t/get-notification-if-internet-access-lost/62539/19 "2022-04-19T14:14:34Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Ronald\_de\_Boer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronald_de_boer/32/13873_2.png) [@Ronald\_de\_Boer](https://community.homey.app/u/Ronald_de_Boer)\
**Post date:** [April 19, 2022, 2:37pm UTC](https://community.homey.app/t/get-notification-if-internet-access-lost/62539/20 "2022-04-19T14:37:10Z")

</div>

Then I don’t know what is happening here…

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/b/5b7c1011c006b45ffdad2998e24183024a9371a6.jpeg)

[Next page](https://community.homey.app/t/get-notification-if-internet-access-lost/62539.md?page=2)
