# Display the # of times a flow has been executed

**URL:** <https://community.homey.app/t/display-the-of-times-a-flow-has-been-executed/11638>\
**Category:** Questions & Help\
**Created:** [April 9, 2019, 10:01am UTC](https://community.homey.app/t/display-the-of-times-a-flow-has-been-executed/11638 "2019-04-09T10:01:14Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nick\_Homey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/nick_homey/32/12248_2.png) [@Nick\_Homey](https://community.homey.app/u/Nick_Homey)\
**Post date:** [April 9, 2019, 10:01am UTC](https://community.homey.app/t/display-the-of-times-a-flow-has-been-executed/11638/1 "2019-04-09T10:01:14Z")

</div>

Hi all,

A while ago, I found a way (somewhere on the forum) to display the number of times (all) flows were executed.  
This was very helpful to identify flows which were never triggered (to be deleted?) and flows which were triggered too often (performance?).  
However I can’t find this anymore! I believe it was a homey script or something to do inside homey developer tools…

Does this ring a bell to anyone and/or does anyone know how to get an overview of all your flows with the amount of times this flow was executed?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![neluz](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/neluz/32/8853_2.png) [@neluz](https://community.homey.app/u/neluz)\
**Post date:** [April 9, 2019, 10:07am UTC](https://community.homey.app/t/display-the-of-times-a-flow-has-been-executed/11638/2 "2019-04-09T10:07:39Z")

</div>

Yes, go to [https://flow.homey.app](https://flow.homey.app) . Keep your cursor on a flow and it will display the counter.

---

<div class="post-metadata">

**Author:** ![Nick\_Homey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/nick_homey/32/12248_2.png) [@Nick\_Homey](https://community.homey.app/u/Nick_Homey)\
**Post date:** [April 9, 2019, 10:14am UTC](https://community.homey.app/t/display-the-of-times-a-flow-has-been-executed/11638/3 "2019-04-09T10:14:39Z")

</div>

So easy… perfect, thanks!! 🙂

---

<div class="post-metadata">

**Author:** ![DaneedeKruyff](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daneedekruyff/32/964_2.png) [@DaneedeKruyff](https://community.homey.app/u/DaneedeKruyff)\
**Post date:** [April 9, 2019, 10:29am UTC](https://community.homey.app/t/display-the-of-times-a-flow-has-been-executed/11638/4 "2019-04-09T10:29:56Z")

</div>

To answer the initial question just for future reference:

Execute the following command here: [https://developer.athom.com/tools/api-playground](https://developer.athom.com/tools/api-playground) to get the requested overview.  
`Homey.flow.getFlows().then(f => Object.values(f).reduce((r,b)=>Object.assign(r, {[b.name]:b.triggerCount}), {}));`

---

<div class="post-metadata">

**Author:** ![Tomm](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tomm/32/10625_2.png) [@Tomm](https://community.homey.app/u/Tomm)\
**Post date:** [April 9, 2019, 10:38am UTC](https://community.homey.app/t/display-the-of-times-a-flow-has-been-executed/11638/5 "2019-04-09T10:38:36Z")

</div>

Does anyone else notice the same problem/bug as me?

When a flow starts with the card “this flow started/deze flow is gestart”  
the counter as described above is always 0.

---

<div class="post-metadata">

**Author:** ![Nick\_Homey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/nick_homey/32/12248_2.png) [@Nick\_Homey](https://community.homey.app/u/Nick_Homey)\
**Post date:** [April 9, 2019, 11:07am UTC](https://community.homey.app/t/display-the-of-times-a-flow-has-been-executed/11638/6 "2019-04-09T11:07:26Z")

</div>

Yes just noticed the same thing over here!

---

<div class="post-metadata">

**Author:** ![neluz](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/neluz/32/8853_2.png) [@neluz](https://community.homey.app/u/neluz)\
**Post date:** [April 9, 2019, 12:34pm UTC](https://community.homey.app/t/display-the-of-times-a-flow-has-been-executed/11638/7 "2019-04-09T12:34:57Z")

</div>

> [@Tomm](#):
>
> ith the card “this flow started/deze flow is gestart”  
> the counter as described above is always 0.

The same over here…

---

<div class="post-metadata">

**Author:** ![Tomm](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tomm/32/10625_2.png) [@Tomm](https://community.homey.app/u/Tomm)\
**Post date:** [April 10, 2019, 8:49am UTC](https://community.homey.app/t/display-the-of-times-a-flow-has-been-executed/11638/8 "2019-04-10T08:49:55Z")

</div>

Thanks, bug reported.

---

<div class="post-metadata">

**Author:** ![Nick\_Homey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/nick_homey/32/12248_2.png) [@Nick\_Homey](https://community.homey.app/u/Nick_Homey)\
**Post date:** [September 16, 2019, 10:13am UTC](https://community.homey.app/t/display-the-of-times-a-flow-has-been-executed/11638/9 "2019-09-16T10:13:06Z")

</div>

> [@DaneedeKruyff](#):
>
> Homey.flow.getFlows().then(f =\> Object.values(f).reduce((r,b)=\>Object.assign(r, {[b.name]:b.triggerCount}), {}));

Hi Tomm,

Noticed that the issue is still there, do you know if and when this will be solved?

---

<div class="post-metadata">

**Author:** ![Tomm](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tomm/32/10625_2.png) [@Tomm](https://community.homey.app/u/Tomm)\
**Post date:** [September 16, 2019, 10:36am UTC](https://community.homey.app/t/display-the-of-times-a-flow-has-been-executed/11638/10 "2019-09-16T10:36:52Z")

</div>

Nope, reported the bug but never heard from Athom again.
