# Candy

**URL:** <https://community.homey.app/t/candy/14700>\
**Category:** Apps\
**Created:** [June 23, 2019, 8:18am UTC](https://community.homey.app/t/candy/14700 "2019-06-23T08:18:44Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Slof](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/slof/32/1318_2.png) [@Slof](https://community.homey.app/u/Slof)\
**Post date:** [June 23, 2019, 8:18am UTC](https://community.homey.app/t/candy/14700/1 "2019-06-23T08:18:44Z")

</div>

Is it true that the Candy app isn’t working correct anymore?  
If I got a app I won’t restart it anymore with my flow.

There is a new function standard in homey but can I make it variable which app I want to restart?

---

<div class="post-metadata">

**Author:** ![Marcel\_Ubels](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_ubels/32/18860_2.png) [@Marcel\_Ubels](https://community.homey.app/u/Marcel_Ubels)\
**Post date:** [June 23, 2019, 8:34am UTC](https://community.homey.app/t/candy/14700/2 "2019-06-23T08:34:30Z")

</div>

Yep, you can use system in your flows

---

<div class="post-metadata">

**Author:** ![Slof](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/slof/32/1318_2.png) [@Slof](https://community.homey.app/u/Slof)\
**Post date:** [June 23, 2019, 12:46pm UTC](https://community.homey.app/t/candy/14700/3 "2019-06-23T12:46:38Z")

</div>

Yes i know but with candy you could see which app crashed and then reset that App in 1 flow. Now it looks that you need to make one for every app.

---

<div class="post-metadata">

**Author:** ![Marcel\_Ubels](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_ubels/32/18860_2.png) [@Marcel\_Ubels](https://community.homey.app/u/Marcel_Ubels)\
**Post date:** [June 23, 2019, 1:26pm UTC](https://community.homey.app/t/candy/14700/4 "2019-06-23T13:26:58Z")

</div>

Yep, you are right. I miss the possibilities of candy also. What I have done to minimize this problem is to make a one flow which restarts every app every night. That way I barely have problems with crashing apps. I have to admit that I am to lazy to make those flows for every app separate despite that homey has no problem with that many of flows. On the other hand this way i have no memory problems either, which often was the problem for crashing. Hue is the only app since this flow that has crashed once.

---

<div class="post-metadata">

**Author:** ![Slof](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/slof/32/1318_2.png) [@Slof](https://community.homey.app/u/Slof)\
**Post date:** [June 25, 2019, 5:52am UTC](https://community.homey.app/t/candy/14700/5 "2019-06-25T05:52:56Z")

</div>

Is that easy to runn in a script?

---

<div class="post-metadata">

**Author:** ![Marcel\_Ubels](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_ubels/32/18860_2.png) [@Marcel\_Ubels](https://community.homey.app/u/Marcel_Ubels)\
**Post date:** [June 25, 2019, 8:02am UTC](https://community.homey.app/t/candy/14700/6 "2019-06-25T08:02:42Z")

</div>

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/9/9affedd3a22bcea7c8540979c9eb1dc23601253c.jpeg)

Very easy

---

<div class="post-metadata">

**Author:** ![Slof](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/slof/32/1318_2.png) [@Slof](https://community.homey.app/u/Slof)\
**Post date:** [June 25, 2019, 8:43am UTC](https://community.homey.app/t/candy/14700/7 "2019-06-25T08:43:18Z")

</div>

I think this can work to in Scripts

// Restart apps in case of crash  
console.log(“Start”);

let apps = await Homey.apps.getApps();  
crash = false;

\_.forEach(apps, app =\> {

```
console.log(app.name);
if(app.crashed == false) return;
console.log("App crashed, restart...");
Homey.apps.restartApp(app.name);
crash = true;

```

});

console.log(“Done”);

return crash;

---

<div class="post-metadata">

**Author:** ![Marcel\_Ubels](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_ubels/32/18860_2.png) [@Marcel\_Ubels](https://community.homey.app/u/Marcel_Ubels)\
**Post date:** [June 25, 2019, 8:53am UTC](https://community.homey.app/t/candy/14700/8 "2019-06-25T08:53:34Z")

</div>

Kijk hier heb ik dan geen kaas van gegeten. Op welke manier kan je dit installeren. Ben op dat gebied een noob. Daarentegen weer wel heel erg geïnteresseerd.

Enige verschil met mijn flow is dat de flow standaard homey geheugen vrij maakt, tov jou script.

Ah I don’t have eaten cheese of this;-). Which way do you install this. I am a complete noob at this point. On the other hand very interested in this.

Only difference with my flow and your script is you make some memory free for Homey

---

<div class="post-metadata">

**Author:** ![Slof](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/slof/32/1318_2.png) [@Slof](https://community.homey.app/u/Slof)\
**Post date:** [June 25, 2019, 9:47am UTC](https://community.homey.app/t/candy/14700/9 "2019-06-25T09:47:36Z")

</div>

You can call it every X minute in the IF collum and then in the AND collum runn the script. It will return a TRUE if these was a restart of a app so you can send a message to you’re phone or something.

---

<div class="post-metadata">

**Author:** ![Marcel\_Ubels](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_ubels/32/18860_2.png) [@Marcel\_Ubels](https://community.homey.app/u/Marcel_Ubels)\
**Post date:** [June 25, 2019, 10:06am UTC](https://community.homey.app/t/candy/14700/10 "2019-06-25T10:06:04Z")

</div>

Ah I understand it now. You use homeyscript as a app for this.

---

<div class="post-metadata">

**Author:** ![Jamie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jamie/32/5274_2.png) [@Jamie](https://community.homey.app/u/Jamie)\
**Post date:** [July 2, 2019, 2:04am UTC](https://community.homey.app/t/candy/14700/11 "2019-07-02T02:04:55Z")

</div>

If you could please keep the conversation in English as much as possible, then more people will be able to participate and help you. If you would rather not or can’t communicate in English then please check out Non-English boards at

[https://community.homey.app/c/non-english](https://community.homey.app/c/non-english)

[Nederlands (Dutch)](https://community.homey.app/c/non-english/nederlands), [Dansk (Danish)](https://community.homey.app/c/non-english/dansk), [Deutsch (German)](https://community.homey.app/c/non-english/deutsch), [Svenska (Swedish)](https://community.homey.app/c/non-english/svenska), [Français (French)](https://community.homey.app/c/non-english/francais), [Polskie (Polish)](https://community.homey.app/c/non-english/polskie), [Fiński (Finnish)](https://community.homey.app/c/non-english/finski)
