# How to keep track of the time a device is running

**URL:** <https://community.homey.app/t/how-to-keep-track-of-the-time-a-device-is-running/76437>\
**Category:** Flows\
**Tags:** app, devices, flow, homey-bridge\
**Created:** [February 13, 2023, 7:21pm UTC](https://community.homey.app/t/how-to-keep-track-of-the-time-a-device-is-running/76437 "2023-02-13T19:21:51Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ruud\_Naastepad](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ruud_naastepad/32/67675_2.png) [@Ruud\_Naastepad](https://community.homey.app/u/Ruud_Naastepad)\
**Post date:** [February 13, 2023, 7:21pm UTC](https://community.homey.app/t/how-to-keep-track-of-the-time-a-device-is-running/76437/1 "2023-02-13T19:21:52Z")

</div>

I tried making a timed counter in the following way, using delay. It works but stops after it called the flow five times. Is there a different way to do something like this (I want to keep track of the time a device is on)

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [February 13, 2023, 8:49pm UTC](https://community.homey.app/t/how-to-keep-track-of-the-time-a-device-is-running/76437/2 "2023-02-13T20:49:50Z")

</div>

If you want to know how long a device has been on: use the Retrieve Insights flowcard from the Device Capabilities App.

Else, use a Stopwatch from the Chronograph app.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [February 13, 2023, 9:02pm UTC](https://community.homey.app/t/how-to-keep-track-of-the-time-a-device-is-running/76437/3 "2023-02-13T21:02:32Z")

</div>

I think it’s about Homey cloud looking at the categories 🤗

Starting the same flow every 5s is probably resulting in “flow disabled due to too many starts in x sec.”

For Homey cloud you’ll need to “spread it” over two or three (or more) flows, and the last flow then starts the first again to start the loop again.  
When using multiple flows, every flow gets started only once every 10, 15 or 20s. and with enough time in between the flows should not be disabled again.  
For you to figure out what the shortest “allowed” interval is.

---

<div class="post-metadata">

**Author:** ![Ruud\_Naastepad](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ruud_naastepad/32/67675_2.png) [@Ruud\_Naastepad](https://community.homey.app/u/Ruud_Naastepad)\
**Post date:** [February 14, 2023, 1:07pm UTC](https://community.homey.app/t/how-to-keep-track-of-the-time-a-device-is-running/76437/4 "2023-02-14T13:07:35Z")

</div>

Chronograph and Device capabilities apps are only available for Homey Pro

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [February 14, 2023, 1:38pm UTC](https://community.homey.app/t/how-to-keep-track-of-the-time-a-device-is-running/76437/5 "2023-02-14T13:38:38Z")

</div>

Sorry, i didn’t see that is was for Homey Cloud.

---

<div class="post-metadata">

**Author:** ![Kees\_Wegh](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kees_wegh/32/123124_2.png) [@Kees\_Wegh](https://community.homey.app/u/Kees_Wegh)\
**Post date:** [December 24, 2024, 2:44pm UTC](https://community.homey.app/t/how-to-keep-track-of-the-time-a-device-is-running/76437/6 "2024-12-24T14:44:58Z")

</div>

HI All,

Question, im a fairly new user of homey! I have to say great device.  
regarding this topic, I can’t get it running.

For a basement that is flooding im using a water sensor to measure the height of the water that triggers the hue plug to get the pump going. once the water is below the sensors level it will run for another 15 min to be sure.

 ![Scherm­afbeelding 2024-12-24 om 15.41.12](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/f/0f4f4e2a225a5421e349e7e72d1fd81763686dca.jpeg)  
I would like to see how many hours a day it runs to see hou many m2 of water it pups out of it.  
Here a screenshot, I’m stuck now so if somebody could support it would be great!

kind regards,  
Kees

---

<div class="post-metadata">

**Author:** ![Wim\_Post](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wim_post/32/56793_2.png) [@Wim\_Post](https://community.homey.app/u/Wim_Post)\
**Post date:** [December 24, 2024, 4:23pm UTC](https://community.homey.app/t/how-to-keep-track-of-the-time-a-device-is-running/76437/7 "2024-12-24T16:23:05Z")

</div>

At midnight start a stopwatch. If the pump is off pause the stopwatch.

When the pump is turned on resume the stopwatch.

When the pump is turned off pause the stopwatch.

One minute before midnight read out the stopwatch, post it on the timeline, wait 1 second, stop the stopwatch.

(Let my ‘plafond 1’ be your pump.)

 ![Scherm­afbeelding 2024-12-24 om 17.16.01](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/5/15685a8803710776ca4e5dfbdf9f5d0b923e5cad.png)

---

<div class="post-metadata">

**Author:** ![Kees\_Wegh](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kees_wegh/32/123124_2.png) [@Kees\_Wegh](https://community.homey.app/u/Kees_Wegh)\
**Post date:** [December 24, 2024, 4:41pm UTC](https://community.homey.app/t/how-to-keep-track-of-the-time-a-device-is-running/76437/8 "2024-12-24T16:41:51Z")

</div>

Great, thanks Wim!  
I’ll let you know when it’s working here 🙂  
happy holidays! cheers

---

<div class="post-metadata">

**Author:** ![Kees\_Wegh](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kees_wegh/32/123124_2.png) [@Kees\_Wegh](https://community.homey.app/u/Kees_Wegh)\
**Post date:** [December 24, 2024, 6:10pm UTC](https://community.homey.app/t/how-to-keep-track-of-the-time-a-device-is-running/76437/9 "2024-12-24T18:10:05Z")

</div>

![Scherm­afbeelding 2024-12-24 om 18.41.55](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/2/224830f0db1c4840c0f20028e66b8f12302bdf0a.jpeg)  
HI Wim,

Made this one now, I hope it will work 🙂

---

<div class="post-metadata">

**Author:** ![Wim\_Post](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wim_post/32/56793_2.png) [@Wim\_Post](https://community.homey.app/u/Wim_Post)\
**Post date:** [December 24, 2024, 6:16pm UTC](https://community.homey.app/t/how-to-keep-track-of-the-time-a-device-is-running/76437/10 "2024-12-24T18:16:49Z")

</div>

Behind ‘the pump is started’ behind you must use the card ‘start or resume’. Then the stopwatch is resumed. Now the stopwatch is restarted and starts at zero.

You named the stopwatch ‘Pomp’. But you read out the stopwatch ‘Uptime pomp’.

You are pausing the stopwatch when the pomp is turned on. Should be when turned off

---

<div class="post-metadata">

**Author:** ![Kees\_Wegh](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kees_wegh/32/123124_2.png) [@Kees\_Wegh](https://community.homey.app/u/Kees_Wegh)\
**Post date:** [December 24, 2024, 8:24pm UTC](https://community.homey.app/t/how-to-keep-track-of-the-time-a-device-is-running/76437/11 "2024-12-24T20:24:46Z")

</div>

![Scherm­afbeelding 2024-12-24 om 21.19.59](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/4/141fdea1f6fe9e31d8b93952ecc4a1937555c43b.jpeg)  
I think I have it correct now, right?  
Question does the right section ( marked in black ) need to be in the flow or not needed since the left part is enough?

---

<div class="post-metadata">

**Author:** ![Carlo\_Veraart1](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/carlo_veraart1/32/120889_2.png) [@Carlo\_Veraart1](https://community.homey.app/u/Carlo_Veraart1)\
**Post date:** [March 23, 2025, 8:32am UTC](https://community.homey.app/t/how-to-keep-track-of-the-time-a-device-is-running/76437/12 "2025-03-23T08:32:38Z")

</div>

Hallo, kunnen jullie me bevestigen dat bovenstaande flow werkt? Zelf zou ik hem nl gebruiken om een zwembad bij te vullen afhankelijk van het aantal uren dat de zwembadpomp gewerkt heeft… Dank voor jullie reply!

---

<div class="post-metadata">

**Author:** ![Carlo\_Veraart1](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/carlo_veraart1/32/120889_2.png) [@Carlo\_Veraart1](https://community.homey.app/u/Carlo_Veraart1)\
**Post date:** [March 23, 2025, 9:58am UTC](https://community.homey.app/t/how-to-keep-track-of-the-time-a-device-is-running/76437/14 "2025-03-23T09:58:43Z")

</div>

> [@Carlo\_Veraart1](#):
>
> Hallo, kunnen jullie me bevestigen dat bovenstaande flow werkt? Zelf zou ik hem nl gebruiken om een zwembad bij te vullen afhankelijk van het aantal uren dat de zwembadpomp gewerkt heeft… Dank voor jullie reply!

Hello, can you confirm that the above flow works? I myself would use it to refill a pool depending on the number of hours the pool pump has worked… Thank you for your reply!

---

<div class="post-metadata">

**Author:** ![Kees\_Wegh](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kees_wegh/32/123124_2.png) [@Kees\_Wegh](https://community.homey.app/u/Kees_Wegh)\
**Post date:** [March 23, 2025, 10:08am UTC](https://community.homey.app/t/how-to-keep-track-of-the-time-a-device-is-running/76437/15 "2025-03-23T10:08:06Z")

</div>

Hi Carlo,

Toch niet helemaal, heb zelf nog wat geprobeerd met wat aanpassingen maar krijg het toch niet voor elkaar helaas..  
Wellicht zie ik zelf wat over het hoofd?

---

<div class="post-metadata">

**Author:** ![Wim\_Post](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wim_post/32/56793_2.png) [@Wim\_Post](https://community.homey.app/u/Wim_Post)\
**Post date:** [March 23, 2025, 10:47am UTC](https://community.homey.app/t/how-to-keep-track-of-the-time-a-device-is-running/76437/16 "2025-03-23T10:47:48Z")

</div>

> [@How to keep track of the time a device is running](https://community.homey.app/t/how-to-keep-track-of-the-time-a-device-is-running/76437/7):
>
> At midnight start a stopwatch. If the pump is off pause the stopwatch. When the pump is turned on resume the stopwatch. When the pump is turned off pause the stopwatch. One minute before midnight read out the stopwatch, post it on the timeline, wait 1 second, stop the stopwatch. (Let my ‘plafond 1’ be your pump.)

This one works for sure.

---

<div class="post-metadata">

**Author:** ![Carlo\_Veraart1](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/carlo_veraart1/32/120889_2.png) [@Carlo\_Veraart1](https://community.homey.app/u/Carlo_Veraart1)\
**Post date:** [March 23, 2025, 1:04pm UTC](https://community.homey.app/t/how-to-keep-track-of-the-time-a-device-is-running/76437/17 "2025-03-23T13:04:06Z")

</div>

It looks solid! I copied it and added in the end a ‘logica card’ : (if #verlopen in uren) is groter dan 3 en dan mijn waterklep open.. my water valve opens… I don’t know yet how I can ‘read’ (a) the notification to ‘trigger’ an action with this… Any suggestions?

 ![PrintScreen 2025-03-23 om 14.00.39](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/d/2dd8a49617a6894f4cb76b19d15a1de5be002ce3.jpeg)

---

<div class="post-metadata">

**Author:** ![Wim\_Post](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wim_post/32/56793_2.png) [@Wim\_Post](https://community.homey.app/u/Wim_Post)\
**Post date:** [March 23, 2025, 4:55pm UTC](https://community.homey.app/t/how-to-keep-track-of-the-time-a-device-is-running/76437/18 "2025-03-23T16:55:19Z")

</div>

Somehow your pool is losing water while the pump is running. Let’s say X liter per hour.

When de valve is open the pool fills with Y liter per hour.

So when the pump ran Z hours, the pool lost Z×X liters, To refill the the valve has to be opened or (Z×X)/Y hours.

WHEN  
time is 19:00  
THEN  
Open valve  
Start timer for (Z\*X)/Y hours

WHEN  
timer ends  
THEN  
close valve

---

<div class="post-metadata">

**Author:** ![Carlo\_Veraart1](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/carlo_veraart1/32/120889_2.png) [@Carlo\_Veraart1](https://community.homey.app/u/Carlo_Veraart1)\
**Post date:** [March 23, 2025, 5:09pm UTC](https://community.homey.app/t/how-to-keep-track-of-the-time-a-device-is-running/76437/19 "2025-03-23T17:09:16Z")

</div>

> [@Wim\_Post](#):
>
> WHEN  
> time is 19:00  
> THEN  
> Open valve  
> Start timer for (Z\*X)/Y hours
> 
> WHEN  
> timer ends  
> THEN  
> close valve

Many thanks for your reply!!!  
Where are your writing "  
WHEN  
time is 19:00  
THEN  
Open valve  
Start timer for (Z\*X)/Y hours

WHEN  
timer ends  
THEN  
close valve"  
Sorry for my probably stupid question, but I have the Homey only for 4 weeks (BUT I LOVE IT!!!)

---

<div class="post-metadata">

**Author:** ![Kees\_Wegh](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kees_wegh/32/123124_2.png) [@Kees\_Wegh](https://community.homey.app/u/Kees_Wegh)\
**Post date:** [March 25, 2025, 7:45pm UTC](https://community.homey.app/t/how-to-keep-track-of-the-time-a-device-is-running/76437/20 "2025-03-25T19:45:33Z")

</div>

inmiddels hier ook aan de praat gekregen, had ergens een klein foutje in staan!  
de pomp draaide vandaag 6,6 uur en kan 5.000l per uur aan… fijn die hoge grondwaterstand. haha

---

<div class="post-metadata">

**Author:** ![Carlo\_Veraart1](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/carlo_veraart1/32/120889_2.png) [@Carlo\_Veraart1](https://community.homey.app/u/Carlo_Veraart1)\
**Post date:** [March 27, 2025, 9:27am UTC](https://community.homey.app/t/how-to-keep-track-of-the-time-a-device-is-running/76437/21 "2025-03-27T09:27:24Z")

</div>

Dat is goed nieuws! Bij mij werkt de flow ook, alleen kan ik mijn waterklep (die de pomp aanstuurt) niet controleren vanuit Homey? Welke klep heb jij? De mijne is een Resideo L5… Ik zie hem op het netwerk met zijn ip adres, de bijbehorende app werkt… Maar ik kan dus geen commando’s geven vanuit Homey… HELP!

[Next page](https://community.homey.app/t/how-to-keep-track-of-the-time-a-device-is-running/76437.md?page=2)
