Reevaluate IF after 10 mins


I 'm new to the advanced flows and have soms questions…

I want to start charging my EV when I have -1500 Watt power because of my solar panels.

The first part of the flow works: charing starts when power -1500 Watt (Homewizard P1 meter).

In the second part of the flow I want a 10 min counter to be started when the power goes +4000 Watt.
After the 10 min counter is done I want to reevaluate if I still use more than 4000 Watt.
If yes => stop charging
If not => continue charging and start the counter again to check de consumption after 10 min, and so on…

I tryed to make an advanced flow but I’m stuck :slight_smile:
I need a solution for the red arrows so I can start to evaluate the next part of the flow.

Hope you can help me out :slight_smile:


Hi Tim,

Advanced flows is a great choice.
You are almost there.

  1. Note: Zandloper needs to be in seconds. I prefer to use Chronograph which is more flexible and can help you much better in reporting remaining times/durations.

  2. The first red arrow needs no addition.

  3. The second red arrow:
    IF trigger: Zandloper is finished
    AND: huidig vermogen > 4000 (use logic cards if P1 does not have AND cards)
    THEN: Stop laadsessie

  4. Remember that you are here taking a “photo” in a point in time. If Huidig Vermogen is varying a lot, you may need to calculate the average over the past 10 minutes instead.

  5. Early stop: If Huidig Vermogen is not varying a lot, then you can stop the timer earlier:
    IF: Huidig Vermogen less than 3900W
    AND: zandloper actief
    THEN: Stop zandloper

Hi Rrrrr,

Thanks for the help!

The main problem indeed was the fact that P1 does not have AND cards. Solved with the use of logic cards.

I still have 1 question:

I want that if the timer is finished and power is < 4000 Watt a new timer starts to reevaluate the logic again after 10mins. I want to let the flow to chek this every 10mins, infinite.
So IF power < 4000 => start new timer and check power after 10 min, than again the same check after 10 mins and so on.
IF power > 4000 => stop charging (that part already works).


Or is this the only way to go: timer after timer after time…?

Perhaps think laterally and execute a flow whenever the power level changes? You could use a variable to record the state of the flow if necessary.


You described the trigger already: it is Huidig Vermogen.

  • So you can avoid starting a new timer after ending the first timer.
  • Better not use the exact comparison: equals 4000W is unlikely to help you much here as it will hardly ever be exactly 4000W. It will either be higher or lower.
  • You can add multiple triggers:

IF Huidig Vermogen > 4000 THEN start timer1.
IF Huidig Vermogen < 4000 (or 3900) THEN start timer1.
IF Huidig Vermogen < 3000 THEN start timer1.

But can you tell me why you want to keep checking? Do you want to restart charging? Your first flow takes care of that.

That can be a solution for some, but risky in terms of needlessly running flows, especially when power level changes often (I guess P1 is local so there can be an almost realtime connection with power fluctuations)

One addition:
If your Huidig Vermogen fluctuates around 4000 then you should start timer1 only if timer1 is not already running. There is an AND card for that.

1 Like

How about this.
Note: Once started, it wont stop until the tank is full (as long as the past 10 minute average power is <4000W) or the charger/owner stops it.

Few apps have AND cards. You’re supposed to use logic cards for it, while every app’s values are available in tags, which you can use in logic cards.