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?