I am trying to write a very simple rule, simple enough that even smartlife can do it...
Motion sensor = motion for xx minutes
AND
Water sensor = wet for xx minutes
Then
Switch on immersion switch (which will auto off after 45 minutes, another rule)
Lo and behold I can find no way to change OR to AND. I'm getting kind of tired of this thing because something that takes 2 seconds in any other system I'm familiar with is a useless nightmare in this system. I don't have time and energy to waste due to health.
So what I need is how to change "OR" in a rule to "AND". For those unfamiliar with smartlife, it's a drop down dialog box in that..
Triggers are instants in time so they cannot be AND because both triggers cannot occur simultaneously. Use the OR and then, under conditions, you have the other device in the required state as a condition.
Actually I don't think you can as the option for 'and stays' isn't available in required expression, I just checked. I'm thinking it would need to be a rule for each condition setting a boolean true (hub variable) then use the state of those booleans both being true to trigger the immersion on.
I can foresee problems with 'motion for x minutes'. Surely the motion will briefly go inactive at some point unless the motion sensor has the option of latching on motion for a period of time.
Yes but they can use the required expression and then trigger it as it is so it will only test the triggers when both conditions are true and then the and stays will work just fine. And once it does test they would both be true due to the required expression so you'd really only need one of them for the trigger.
If your xx minutes is the same for both the motion and water sensors then you could trigger off motion OR wet then use a Wait for motion active AND sensor wet for xx duration. I think I even have a way to do a pseudo timeout if that's needed.