# How to detect a flow has not been triggered for a period of time

**URL:** <https://community.homey.app/t/how-to-detect-a-flow-has-not-been-triggered-for-a-period-of-time/32331>\
**Category:** Questions & Help\
**Tags:** flow\
**Created:** [July 13, 2020, 6:10am UTC](https://community.homey.app/t/how-to-detect-a-flow-has-not-been-triggered-for-a-period-of-time/32331 "2020-07-13T06:10:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![FKey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fkey/32/14793_2.png) [@FKey](https://community.homey.app/u/FKey)\
**Post date:** [July 13, 2020, 6:10am UTC](https://community.homey.app/t/how-to-detect-a-flow-has-not-been-triggered-for-a-period-of-time/32331/1 "2020-07-13T06:10:49Z")

</div>

I am looking for a way to detect a flow has not been triggered for a period of time.  
Did not see an option in “system” or “flow”

Reason:

1. debugging: most flows should run dayly, if they dont something is wrong
2. cleaning up: flows that are never running could be useless but forgotten to remove

---

<div class="post-metadata">

**Author:** ![Jos\_Stultjens](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jos_stultjens/32/12687_2.png) [@Jos\_Stultjens](https://community.homey.app/u/Jos_Stultjens)\
**Post date:** [July 13, 2020, 7:01am UTC](https://community.homey.app/t/how-to-detect-a-flow-has-not-been-triggered-for-a-period-of-time/32331/2 "2020-07-13T07:01:49Z")

</div>

Maybe you can create a “Better Logic” variable of type string for every flow you want to check.  
Whenever a flow is executed, you can set the corresponding variable with the date/time converted to a string. This way you can check these variables and see when the flow was executed last.  
But this probably is not the best option when you have a lot of flows to be checked.

PaperTrails Log, an app created by @Dijker also might be an option. Please have a look at that too.  
See: [PaperTrails Log - Advanced Logging and Log management (v0.6.3)](https://community.homey.app/t/papertrails-log-advanced-logging-and-log-management-v0-6-3/40)

---

<div class="post-metadata">

**Author:** ![Jan\_Willem\_Visser](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jan_willem_visser/32/10747_2.png) [@Jan\_Willem\_Visser](https://community.homey.app/u/Jan_Willem_Visser)\
**Post date:** [July 13, 2020, 7:49am UTC](https://community.homey.app/t/how-to-detect-a-flow-has-not-been-triggered-for-a-period-of-time/32331/3 "2020-07-13T07:49:30Z")

</div>

Use a timer. When the flow is triggert start a timer for the time u want. Every time the flow has triggert the timer whil start again. When the timer is emty the flow has not triggerd whithin the time u wanted. So you made a flow WHEN timer is emty THEN make a notification.

---

<div class="post-metadata">

**Author:** ![FKey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fkey/32/14793_2.png) [@FKey](https://community.homey.app/u/FKey)\
**Post date:** [July 13, 2020, 4:22pm UTC](https://community.homey.app/t/how-to-detect-a-flow-has-not-been-triggered-for-a-period-of-time/32331/4 "2020-07-13T16:22:02Z")

</div>

> [@Jos\_Stultjens](#):
>
> PaperTrails Log, an app created by @Dijker also might be an option. Please have a look at that too.  
> See: [PaperTrails Log - Advanced Logging and Log management (v0.6.3)](https://community.homey.app/t/papertrails-log-advanced-logging-and-log-management-v0-6-3/40)

👍 all my flows already have papertrail logging. Indeed a great app

---

<div class="post-metadata">

**Author:** ![FKey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fkey/32/14793_2.png) [@FKey](https://community.homey.app/u/FKey)\
**Post date:** [July 13, 2020, 4:27pm UTC](https://community.homey.app/t/how-to-detect-a-flow-has-not-been-triggered-for-a-period-of-time/32331/5 "2020-07-13T16:27:14Z")

</div>

Was hoping there was a simple solution like the system card “a device did not report”

I have several flows that do their work unnoticed (like sending my betterlogic data every night to the “betergas” server.  
So If they fail it can go unnoticed for a long time…
