# Is there a easy way to find broke/incomplete or defected flows?

**URL:** <https://community.homey.app/t/is-there-a-easy-way-to-find-broke-incomplete-or-defected-flows/36111>\
**Category:** Questions & Help\
**Created:** [October 17, 2020, 11:04pm UTC](https://community.homey.app/t/is-there-a-easy-way-to-find-broke-incomplete-or-defected-flows/36111 "2020-10-17T23:04:20Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![B3rt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/b3rt/32/9435_2.png) [@B3rt](https://community.homey.app/u/B3rt)\
**Post date:** [October 17, 2020, 11:04pm UTC](https://community.homey.app/t/is-there-a-easy-way-to-find-broke-incomplete-or-defected-flows/36111/1 "2020-10-17T23:04:20Z")

</div>

When a flow is really broken then it is marked in the flow editor.

But sometimes it is not marked broken, for example when a flow is renamed and the flow card does not contain the renamed name.

Also when external params have changed, for example the harmony hub, you changed or removed some activity’s from the hub but you used those activities also in flow cards in Homey.  
So the flow won’t work because the activity does not exist anymore, but the flow itself is not marked broken or defected in the flow manager at all.

You removed a logical value but used them also in flows, the flows do not work anymore but are not marked as broken/defected.

So is there a way to easily find any broken/defected/incomplete flows?

---

<div class="post-metadata">

**Author:** ![tlangelaar](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tlangelaar/32/10980_2.png) [@tlangelaar](https://community.homey.app/u/tlangelaar)\
**Post date:** [October 18, 2020, 8:56am UTC](https://community.homey.app/t/is-there-a-easy-way-to-find-broke-incomplete-or-defected-flows/36111/2 "2020-10-18T08:56:31Z")

</div>

Used to work when searching for “broken” in flow overview (bottom left corner) in [https://flow.homey.app/](https://flow.homey.app/). Not sure if that still works.

---

<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:** [October 18, 2020, 9:45am UTC](https://community.homey.app/t/is-there-a-easy-way-to-find-broke-incomplete-or-defected-flows/36111/3 "2020-10-18T09:45:03Z")

</div>

> [@B3rt](#):
>
> But sometimes it is not marked broken, for example when a flow is renamed and the flow card does not contain the renamed name.

In this case the flow is not broken and works still.

@tlangelaar, unfortunately not. I created a numeric variable and added it to a logic card in a flow. Then I deleted the variable, so the flow was damaged. But the flow was not displayed when I searched for “broken”. Very sad!

---

<div class="post-metadata">

**Author:** ![B3rt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/b3rt/32/9435_2.png) [@B3rt](https://community.homey.app/u/B3rt)\
**Post date:** [October 18, 2020, 12:42pm UTC](https://community.homey.app/t/is-there-a-easy-way-to-find-broke-incomplete-or-defected-flows/36111/4 "2020-10-18T12:42:55Z")

</div>

correct, this is what i also have.

I deleted some logic values, the same values i used in flows are not present (empty card) but the flow is not marked as broken.

This also happens with external apps such as hue (start scene x etc) or harmony hub (start activity x), when you delete these values homey does not mark them as broken.  
In this case i have to view a lot of flows to find where i used these values to fix it…

---

<div class="post-metadata">

**Author:** ![tlangelaar](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tlangelaar/32/10980_2.png) [@tlangelaar](https://community.homey.app/u/tlangelaar)\
**Post date:** [October 18, 2020, 5:15pm UTC](https://community.homey.app/t/is-there-a-easy-way-to-find-broke-incomplete-or-defected-flows/36111/5 "2020-10-18T17:15:06Z")

</div>

Sorry that didn’t work. @Dijker, do you know if special keywords are available in the search box of [https://flow.homey.app/](https://flow.homey.app/)? They used to be in the old Homey phone app.

---

<div class="post-metadata">

**Author:** ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)\
**Post date:** [October 18, 2020, 6:36pm UTC](https://community.homey.app/t/is-there-a-easy-way-to-find-broke-incomplete-or-defected-flows/36111/6 "2020-10-18T18:36:12Z")

</div>

From another topic:

> [@Developer Web API Playground - Notes of geeky oneliners](https://community.homey.app/t/developer-web-api-playground-notes-of-geeky-oneliners/24392/1):
>
> ```auto
> // Get broken flows
> // Run and search for the result true
> Homey.flow.getFlows().then(f => Object.values(f).reduce((r,b)=>Object.assign(r, {[b.name]:b.broken}), {}));
> 
> // Or Get broken flows
> // Run and only the broken flows are returned ;-)
> Homey.flow.getFlows().then(f => Object.values(f).reduce((r,b)=> Object.assign(r, b.broken ? {[b.name]:b.broken} : ''), {}) );
> 
> ```

---

<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:** [November 2, 2020, 10:59am UTC](https://community.homey.app/t/is-there-a-easy-way-to-find-broke-incomplete-or-defected-flows/36111/7 "2020-11-02T10:59:06Z")

</div>

Sadly missing tags in the _And…_ section are not detected.

---

<div class="post-metadata">

**Author:** ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)\
**Post date:** [November 2, 2020, 11:43am UTC](https://community.homey.app/t/is-there-a-easy-way-to-find-broke-incomplete-or-defected-flows/36111/8 "2020-11-02T11:43:34Z")

</div>

> [@DirkG](#):
>
> missing tags in the _And…_ section are not detected

Are these flows broken according to Homey or just not working and doesn’t Homey detect the issue?

---

<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:** [November 2, 2020, 12:19pm UTC](https://community.homey.app/t/is-there-a-easy-way-to-find-broke-incomplete-or-defected-flows/36111/9 "2020-11-02T12:19:21Z")

</div>

I’m not sure what exactly you mean with “broken according to Homey”.

For example, if a light sensor is deleted (for whatever reason) and in a flow a tag was linked to the lux value of the light sensor in the _And…_ section, this tag is displayed in the Homey App as a green dot and the flow is not executed.  
Or if a self created variable is deleted, the tag in the area _And…_ is also displayed as a green dot.

In both cases the flow is not triggered. And in both cases the problem is not detected with the mentioned commands.

---

<div class="post-metadata">

**Author:** ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)\
**Post date:** [November 2, 2020, 7:28pm UTC](https://community.homey.app/t/is-there-a-easy-way-to-find-broke-incomplete-or-defected-flows/36111/10 "2020-11-02T19:28:07Z")

</div>

> [@DirkG](#):
>
> I’m not sure what exactly you mean with “broken according to Homey”

Homey self marks flows broken or not.  
Fe when flows use flowcards that are unavailable due to the device or app removed. You see that in the flow editor by the warning signs.

 ![Screenshot_20201102-201520](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/4/14493f983ca81d152598f6db5961222ae1093238.jpeg)

The command filters only the flows Homey has marked broken.  
So a missing cq non- existing token is not a reason for Athom to mark the flow broken. You could report that as an issue to Athom support.

---

<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:** [November 3, 2020, 8:49am UTC](https://community.homey.app/t/is-there-a-easy-way-to-find-broke-incomplete-or-defected-flows/36111/11 "2020-11-03T08:49:44Z")

</div>

Ok, understand. Thx!
