Wait for condition(s)

Just thinking, it would be useful to have the 'wait for condition' feature enhanced to allow complex conditions (eg. a set of conditions including AND, Or etc) as allowed in other parts of the system. I have a case where I want to wait for a combination/variety of conditions to occur.

I suppose this can be worked around using a virtual switch instead and then use 'wait for event', but it would be nice to allow a combination of conditions to be used directly (as is possible in a complex conditional if-then statement for example).

The entire system is "waiting for Condition" -- some Event is usually the FINAL element in the condition.

Set the trigger for the rule to all of the things you're waiting for (OR'd together, of course, because that's how triggers have to work).

In the rule, first set a local variable (boolean, probably) to track the state of the %device% that just triggered the rule. Then, do your AND of all the local variables to see if all the conditions you're waiting for have been met.

Thanks. Yeah, but messy and adds complexity. My wait is near the end of a long rule. I just want to wait at that point for a combination of conditions instead of a single condition. We have multi/complex conditions in If-Then statements. Why not for a wait?

@bravenel - would this be a good possible future enhancement please?

This is very unlikely to be undertaken. The complexity of Rule Machine is at a limit beyond which I don't feel comfortable pushing it. There are other ways to accomplish a need such as this.

Ok, understood.
Thanks for the reply.