Need help creating an advanced flow

Hi all,

I need some help with creating a flow.

I want to test if the air quality in the different rooms where I have a Netatmo weather station is below 1000 ppm. If that’s not the case, then I would have my Google Mini speak a message, saying that I need to ventilate that specific room.
So far, I don’t have any problems: when ppm > 1000 ==> Google mini: say text

However, after, say, one hour, I want to re-test and see if the values have decreased. If yes, stop the flow (or let the mini Google say I can close the window, if it is cold outside).
If no, then the spoken text should be that I need to do more, maybe with the use of a fan…

So, can anyone help me with this?

This problem is, if I leave out the Netatmo and Google Mini:
Test if something is true

  • If Yes: All OK, stop the flow
  • If No:
    1. Do something
    2. Wait 3600 seconds or 1 hour
    3. Do the same test again
    • If still Yes: Do something else
    • If No: All OK, stop the flow

Hope this is clear… :sweat_smile:

Thx,
Joh@n

For the wait/timer part, consider using the Chronograph app.

You would then add the following THEN card to the end of your existing flow (with the ventilate message):

Next, your second flow would start with the following WHEN card:

So the second flow is triggered after the 1 hour delay. Then you perform the checks you want. If the ppm is still above 1000, you could restart the timer using the first card I mentioned above. So it would keep on reminding you every hour if the ppm is not below 1000.

Swell :clap:
I will try that tonight

Thanks dude!!

1 Like

Just another way to formulate your flow

WHEN every 1 hour
AND condition is TRUE
THEN do something
ELSE do something else

PS: in stead of formulating “stop flow” I would suggest “the flow ends”, as you cannot stop a flow that is runnning

tomayto, tomahto

:rofl:

Unfortunately, I still have issues with this flow.

The Netatmo app doesn’t have any AND-cards, and even if I use a WHEN-card and combine it in an ALL, it still won’t work, because the WHEN-card for Netatmo checks if the value “Becomes greater than” 1000 in my example, but in fact the value was already over 1000, so it doesn’t “become” greater….
What I need is a WHEN-card that asks “IS” my value > than 1000 and not “BECOMES” > than 1000.

You can achieve this by using Netatmo’s WHEN card ‘The CO2 level changed’, followed by a Logic card in which you check whether the changed level is greater than 1000 ppm:

1 Like

A combination of your double feedback did the trick.

Thanks, man, for your extensive knowledge.

Joh@n

1 Like