hi,
i have a flow which sends me a push message when my sonoff humidity sensor detects humidity above 53% (which activates the dehumidifier via smart power-outlet).
which works…kinda too good!
the flow basicaly is: WHEN humidity above 53% THEN start dehumidifier THEN send critical push message
i often get about 10-20 messages in a short period of time.
is there a way to reduce this to only one message?
theres another flow which checks if the humidity is under 50% and then deactivates the dehumidifier and then sends me a message that is been deactivated.
any ideas on how to only send one message per event?
if the humidifier starts a few times a day and a ends a few times a day per flow then its ok to get a message every time for each event (works as designed) but not a x-times for one event.
hope my attempt to explain makes any sense.
thanks in advance.
regards,
How can you be sure there is no jitter in your measurement and the humidity does cross the 53% several times before it goes to 54% and higher?
Because a computer just does as instructed, i.e send one message when the humidity does cross the 53%.
So to verify, make a flow that sends a message when humidity goes below 53%, i.e. <= 53%
Why not just check if the humidifier is OFF with a AND, before you send the ON command together with the message? Then it can only send the message, if the new state of the humidifier is ON.
Something like this (Luftfuktighet is Humidity, Av is Off, På is On):
in the first flow for turning the smart plug on and pushing the message, add a and condition that the smart plug is off, that way it wont turn on if it is already on and the message will only be sent when it first turns on. and of course use the reverse in the second flow
use a yes/no varrible like set humind to yes when the flirst flow runs but with an and condition that humind is no and of course use the reverse in the second flow