Ryan780
August 28, 2019, 3:53am
1014
bravenel:
Yes, you have to work through the logic. There are other binary logic operators, available for variables:
NAND [NOT (A AND B)]
NOR [NOT (A OR B)]
XNOR [NOT (A XOR B)]
All of this makes much more sense in the domain of digital electronics. There are "gates" of all 6 binary types as well as the unary NOT gate.
So, I know I said I couldn't think of how you'd use an XOR....well, I did. Took me a while but it finally clicked. Thanks again for taking the time to explain it to me.
You want to structure it like this:
Trigger: Presence sensor 1 or Presence sensor 2 CHANGE
Action:
If both sensors are gone do x
Else if sensor 1 is present XOR sensor 2 is present. then
Do Y
End-If
That will do X if both sensors are gone and do y if one of them is home. The XOR works for Rule #1 because one of you will always arrive before the other and the xor will only be true if either sensor 1 or sensor 2 is present but not when both are. So, when one arrives, the rule fires, when…