Rule Machine "Wait for Event" not Resetting With Motion

Hello!

I wanted RM to turn on a central bathroom exhaust when motion was detected in either bathroom and then go off after motion was no longer detected for 5 minutes. But when humidity was high, I want the switch to turn off when humidity gets to a certain percentage instead of turning off after 5 minutes. The rule screenshot here works, but it seems to turn off after 5 minutes even if motion is sensed again. If the humidity is high it stays on until satisfied. I believe RM has an issue with this and it can be solved with "Private Booleans". Where would I put the PB in this rule?

I would start by sharing logs for this rule, otherwise we'd all just be guessing at what's going on. Enable them first, of course, if not:

1 Like

Not sure what you are trying to do with your private boolean. But, this is how I would achieve your stated goal (NOTE: My “Light” also has my fan and the last step should be “off” but I rushed to grab the screenshot)

Also note: they must all be true for 5 minutes in order to meet the condition.

Duration is the wait for expression equivalent of “and stays” which should abort if the inactive becomes active OR if the humidity just dips below the threshold and pops back up.

Also, the private boolean is used to prevent retriggers, which is the opposite of what you said you wanted to do.

1 Like