How to keep track of the time a device is running

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)

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.

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

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.

Chronograph and Device capabilities apps are only available for Homey Pro

1 Like

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

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.


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

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.)

1 Like

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


HI Wim,

Made this one now, I hope it will work :slight_smile:

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


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?

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!

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?

This one works for sure.

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?

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

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!!!)

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

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!