Can't figure out how to test for this easily

In rule machine I want to do a

Wait for Light Off duration 30 min OR Humidity LT Variable

But if you use an OR in a Wait the duration applies to both. It would end up looking like:

Wait for Light Off or Humidity LT Variable duration 30 min

I need Wait for (Light Off duration 30 min) or Humidity LT Variable

XOR doesn't cut it for this I need to be able to do sub expressions like we can with an IF statement.

Worst case I need another rule to test for the Humidity and then just do my action from that rule and cancel this one at that time. Just trying to keep it in one place.

Ya that would probably be a less glamorous work around. :smiley:

Thanks for the idea.

1 Like

Actually now that you say that I think I can just change it to:

Wait for Humidity LT Variable timeout 30
If Light off then

Duh!

Sometimes saying it out loud or looking at it differently based on your comments makes all the difference. Have a cold one! :beer:

1 Like

Tunnel vision will get you every time. Was a programming by trade and at times I'd just go to someone and say "I need to explain this out loud." and in the process of doing so 99% of the time a lightbulb would go on and I'd figure out what I needed to do. Thanks again.

1 Like

We used to say we needed a "debug dummy" — i.e. somebody or something to say it out loud to. I knew about one shop that had an actual mannikin for use.

2 Likes

My brain hurts.

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.