# Scheduled App Restart

**URL:** <https://community.homey.app/t/scheduled-app-restart/8508>\
**Category:** Questions & Help\
**Created:** [February 2, 2019, 12:02pm UTC](https://community.homey.app/t/scheduled-app-restart/8508 "2019-02-02T12:02:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leon\_van\_Efferen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/leon_van_efferen/32/6638_2.png) [@Leon\_van\_Efferen](https://community.homey.app/u/Leon_van_Efferen)\
**Post date:** [February 2, 2019, 12:02pm UTC](https://community.homey.app/t/scheduled-app-restart/8508/1 "2019-02-02T12:02:33Z")

</div>

Does someone have a clue if it is possible to restart app in a scheduled manner. My case for this question is, the Toon app which seems to loose connectivity after some time. Only a restart of the app brings back communication. between homey (v 2.0.2) and the Toon app (v 2.0.6). So until the app is finally fixed (and stable) i’ll need to settle for scheduled app restart.

---

<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:** [February 2, 2019, 12:19pm UTC](https://community.homey.app/t/scheduled-app-restart/8508/2 "2019-02-02T12:19:54Z")

</div>

It used to be possible in v1.5 (using the Candy app), but I think the functionality that’s required to do this is removed from v2.

---

<div class="post-metadata">

**Author:** ![Marlon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marlon/32/3794_2.png) [@Marlon](https://community.homey.app/u/Marlon)\
**Post date:** [February 2, 2019, 2:18pm UTC](https://community.homey.app/t/scheduled-app-restart/8508/3 "2019-02-02T14:18:58Z")

</div>

I must say I’m still running Homey v1.5 but below is the script I use to restart certain apps daily. You’ll have to check if this works for version 2.0 of Homey.

The homeyscript I use contains the following:

```
await Homey.apps.restartApp({id: 'magic.home.wifi'});
await Homey.apps.restartApp({id: 'com.swttt.homekit'});
await Homey.apps.restartApp({id: 'nl.scanno.mqtt'});
return true;

```

I called it restartApps.js

Then create a flow and trigger on a specific sunevent or scheduled time and run the homeyscript.

 ![PNG](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/b/b36a156a36434655a4979697245c9c07335f90e7.jpeg)

Hopefully you can recreate this for version 2.0.

---

<div class="post-metadata">

**Author:** ![bvdbos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bvdbos/32/2352_2.png) [@bvdbos](https://community.homey.app/u/bvdbos)\
**Post date:** [February 2, 2019, 2:27pm UTC](https://community.homey.app/t/scheduled-app-restart/8508/4 "2019-02-02T14:27:37Z")

</div>

As Athom made Homey more secure:  
 ![afbeelding](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/2/2cb4c54b88d65d61b43c21482d250ef8de337fa5.png)

---

<div class="post-metadata">

**Author:** ![bvdbos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bvdbos/32/2352_2.png) [@bvdbos](https://community.homey.app/u/bvdbos)\
**Post date:** [February 2, 2019, 2:33pm UTC](https://community.homey.app/t/scheduled-app-restart/8508/5 "2019-02-02T14:33:19Z")

</div>

In the API-Playground this works: `Homey.apps.restartApp({id: 'com.plugwise'});`

---

<div class="post-metadata">

**Author:** ![Marlon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marlon/32/3794_2.png) [@Marlon](https://community.homey.app/u/Marlon)\
**Post date:** [February 2, 2019, 2:38pm UTC](https://community.homey.app/t/scheduled-app-restart/8508/6 "2019-02-02T14:38:01Z")

</div>

Bummer, I use this to keep everything running smoothly.

---

<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:** [February 2, 2019, 6:49pm UTC](https://community.homey.app/t/scheduled-app-restart/8508/7 "2019-02-02T18:49:21Z")

</div>

So do you suggest writing [a headless browser script](https://github.com/GoogleChrome/puppeteer) that would navigate to the API Playground and run that code?
