Homey Community Forum

Display the # of times a flow has been executed

#1

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!

#2

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

2 Likes
#3

So easy… perfect, thanks!! :slight_smile:

#4

To answer the initial question just for future reference:

Execute the following command here: 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}), {}));

3 Likes
#5

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.

#6

Yes just noticed the same thing over here!

#7

The same over here…

#8

Thanks, bug reported.

1 Like