How to monitor increase of a number variable?

I am trying to monitor the humidity in my bathroom to trigger the exhaust fan to turn on or off. I am using if the humidity changes as the trigger for the flow, but instead of a “if the humidity is greater than #” i want to say “if the humidity increases by 3” turn on the fan, when the humidity decreases by 3 turn off the fan.

I have not found a good way to monitor the increase of the humidity without having to use a number that preset.

Any suggestions would be greatly appreciated.

Thanks

Just to check the increase is not enough. What if the increase is 2 and then 1 within 2 report intervals of your sensor? You have to consider the time in which the increase took time.

Device capabilities app has al lot of nice cards. One of the cards (advanced flow) is to get the insights value of a capability of x minutes ago.

So:
Trigger is change in humidity
get insights value of humidity of “2” minutes ago
If this is “3” lower than current value, then……

2 Likes

Yes it works perfect here, the way Torch1969 describes it
This is my flow

2 Likes

Thank you both, i will try this. Peter are you able to send another screenshot where I can see all of your logic and connections?

Thanks

Hi Russ,
Sure.


You can import it if you like, with Flow Exchanger of the Device Capabilities app

My exported flow:

[tef:FLOWS:"H4sIAAAAAAACA91caW9bR5b9KwTRjSQYlVH7IqAxcLud6QD51A76i0cQapXYoUg1FzmO2/99Tj1u4hNll2KRAsYwBPHpsZZTdzn31q36NPx9OsnzX6b/yLdjH/Pw/NPQeu24zZ5wHTiRjnPisk8kcZqz1k6lJOp7E3+D94fv+St2MfirT7/i82z4+fPZMNU/yxgS9amQEFkiUplIgveayBC4yEFowULXDNp4dzvKV3k8GPub211TZ8OIv41HV9eLIVrNLOfgaSFchEIkS4k4LQwxMTPvZUo8+F2D08W/8vzRthjmylmyRFseiRQsEqvwW0IngUcdbWHbtsY53/73uoXp4rpO8mwojWZBOEoyo4ZI7Qqx0aIZ44KONHm0t2mBXf6MieXJdjiD7//++of+mALzgSqZCHeRYn4iEi8MI1mVkHymmRe7afGXfHN7+c9pvF70pzjPk/m0fljUd2+yny9n+fJ6eTNKo8XHzff/vvncvTecLG9Ct3Z19e7qS0IKX2LxxLPoiSwsEychE1HTaEpwPqgt2H+bLuN1frfwfvHaT9ZNhul0nPGpttgNZTJ+NRnl8TzlX8d59uur8fR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g1atxZazQoYlFFIPTxideqM7nOaVMYAusKZLKEe4nilsvUjrsX1TTgnsGx/DjBBWRzcW8bf/D94HnM9p8HPwyuQA4H80keD6Y319Pp1dng97zYJLDXavEdDPF4G+EcJRPdZBP2zZP+xurVr+6BNOl2492Hu93YlssiVxmMjvdUG6OCilBGUosqoQ00QhsC2CGlRjMvpV/dkNaao3xS0ipT6BrNknBb9/Blgmg5LzECpcGKNYeM7YcI5g9dknNQ/p8qZuvw4adJyqvxbBd1/YidrXtYf+bwlbcJ/W9I5+rTGz9L882jrop+78m6m/WzNT3ddrX36qq3/UcPiufXfbzbL7rfNvhuX3lWTfYerof07lE96+r2O4reeD/4usUf90q77o3qx/5JpNh/uorTmzZteqGZUg9dZNO9288Xpzfddn7sOH1lAboLzkLSGdYMhozVUACWUYILUU9dyInlEuV9E9AdGzloBIS8XxvfaAQsui4J3Std91eVr3UpjBOWOULVbISnpql7K+9XlLf27qVPDJFwKhTkiFpFwIoqlU5MMiWKi3G/d/qoCaSr/s0TJl9AfXKCQ+LVncgSNCYvTd1hdiVnYBP2dmm6+4i+2Hu39dzYu4HLAm0HD9EOk7cmER8CSBYXUWsP9272dgW7i7QO7pfweymcps4/f774/H8KF8rOYGMAAA==":/tef]
1 Like

Thanks for sharing! I appreciate your help.

2 Likes