Add the following line to your alarm outlet: "Defer 003:00 Then ON"
This will require a 3 minutes of the state to be open before the alarm is triggered. Modify it as needed depending on how long you want the outlet state change delayed. The alternate method would be to create a virtual outlet for the leak sensor. That's what I do. I have a virtual outlet for each leak sensor with each virtual outlet having a unique name that corresponds to the sensors location. An example would be: Leak_Shed or Leak_Sump, Leak_Closet, Leak_Pump, Leak_Fuge, Leak_Frag.
In the virtual outlet for Leak_Shed, the program looks like this:
Fallback OFF
Set OFF
If Swx8_4 CLOSED Then ON
If Swx8_4 OPEN Then OFF
Defer 003:00 Then ON
In my email alarm I have:
If Outlet Leak_Shed = ON Then ON
When I get an email alarm notification, it tells me that outlet Leak_Shed is ON.
The Defer line prevents the alarm or virtual outlet from turning on for 3 minutes so the state has to be ON for 3 minutes before the alarm will trigger or before the virtual outlet will turn ON..