Homey Community Forum

Flow: act upon device is on for period of time

hi, I can’t get my head around creating a flow that checks

  1. if a device (light) has been continuously on for 90 minutes
  2. switches of this device only if 1 has been met

I think I need a timer that is triggered once the light is switched on but then I stumble how to track that the light was on for 90 minutes.

Any ideas how to get there?

Flow 1:
IF light turned on
THEN start timer (countdown) of 5400 seconds

Flow 2:
IF light turned off
THEN stop timer

Flow 3:
IF timer gets empty
THEN turn light off

Pretty much the same way as any other light trigger that is given in this thread where the default zone activity can’t be used.

1 Like

Ok, I’m starting to see the lights, you say I have to have all these 3 flows enabled? I think my problem was I wanted to have it in less than 3 flows?

That’s what most users are dealing with at the start, they want everything in as less flows as possible, which just doesn’t work.

Just make sure to put everything nicely layed out into folders so it stays findable, the amount of flows won’t bottle neck your Homey in any way. (Can speak with experience, as I’m running over 700 flows myself)

1 Like