# Is there any suggestion for a flow that restarts homey, if you lose contact with the network?

**URL:** <https://community.homey.app/t/is-there-any-suggestion-for-a-flow-that-restarts-homey-if-you-lose-contact-with-the-network/97401>\
**Category:** Questions & Help\
**Tags:** homey-pro\
**Created:** [December 10, 2023, 12:06pm UTC](https://community.homey.app/t/is-there-any-suggestion-for-a-flow-that-restarts-homey-if-you-lose-contact-with-the-network/97401 "2023-12-10T12:06:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jan\_Godeau](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jan_godeau/32/12397_2.png) [@Jan\_Godeau](https://community.homey.app/u/Jan_Godeau)\
**Post date:** [December 10, 2023, 12:06pm UTC](https://community.homey.app/t/is-there-any-suggestion-for-a-flow-that-restarts-homey-if-you-lose-contact-with-the-network/97401/1 "2023-12-10T12:06:47Z")

</div>

It sometimes happens that homey loses contact with the network. I would like to have a function. Where I can keep an eye on if Homey loses network connection. And then restarts.

---

<div class="post-metadata">

**Author:** ![anon61197305](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@anon61197305](https://community.homey.app/u/anon61197305)\
**Post date:** [December 10, 2023, 12:42pm UTC](https://community.homey.app/t/is-there-any-suggestion-for-a-flow-that-restarts-homey-if-you-lose-contact-with-the-network/97401/2 "2023-12-10T12:42:04Z")

</div>

Not really. There is no IF statement for losing network, so you need to do it from the router (app). But I wouldn’t do it. Why would you restart Homey if it lost it’s connection? Just wait for it to regain connection.

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [December 10, 2023, 3:09pm UTC](https://community.homey.app/t/is-there-any-suggestion-for-a-flow-that-restarts-homey-if-you-lose-contact-with-the-network/97401/3 "2023-12-10T15:09:27Z")

</div>

I don’t know if Homey itself can register when Homey loses the connection, but you may test it with this app:

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

---

<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:** [December 10, 2023, 10:14pm UTC](https://community.homey.app/t/is-there-any-suggestion-for-a-flow-that-restarts-homey-if-you-lose-contact-with-the-network/97401/4 "2023-12-10T22:14:51Z")

</div>

Yes, NetScan works perfect.  
@Jan_Godeau Keep in mind there’s a big difference in “No network connection” (Homey doesn’t respond to ping), and the app saying “Homey is offline”. The latter is a longtime bug, and most of the time it means _**only the (web)app can’t connect with Homey**_

With NetScan you can monitor the connection with the router, and start flows by connected / disconnected events.

I use it this way, but start a 15minute timer when the connection is down, to prevent Homey from rebooting by hickups and short outages;  
When the connection is up again within 15m, the timer gets paused;  
Only when the timer finishes, Homey gets rebooted.  
The timer did never finish here in several years 😛

---

<div class="post-metadata">

**Author:** ![ArieD](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/aried/32/79795_2.png) [@ArieD](https://community.homey.app/u/ArieD)\
**Post date:** [March 12, 2024, 11:49am UTC](https://community.homey.app/t/is-there-any-suggestion-for-a-flow-that-restarts-homey-if-you-lose-contact-with-the-network/97401/5 "2024-03-12T11:49:07Z")

</div>

Thanks, thanks, my question is not related to “homey is offline” messages, I actually never incurred that, or restarting Homey, it is really about the router not working and needing a restart of the router so that my internet works again (not only relevant for Homey but also for the other devices at home that use internet).

I will try to get netscan to work, thanks for the suggestion

---

<div class="post-metadata">

**Author:** ![ArieD](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/aried/32/79795_2.png) [@ArieD](https://community.homey.app/u/ArieD)\
**Post date:** [March 12, 2024, 12:18pm UTC](https://community.homey.app/t/is-there-any-suggestion-for-a-flow-that-restarts-homey-if-you-lose-contact-with-the-network/97401/6 "2024-03-12T12:18:19Z")

</div>

ok, this is the flow I now created (sorry in Dutch)

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/9/a91c0355c39890fb045a8d466f6c7e1dba436601.png)

both devices are in my wifi network and I gave them a static ip address

now when they go offline, this should trigger the flow with a check after 10 minutes that both are really offline

should work right?  
any suggestions?
