Logic Not Working: Resolved


#1

1) Give a description of the problem
This piston still executes Sleep Mode even if myself or my wife isn’t home.

2) What is the expected behavior?
If myself or my wife isn’t home, it should go to the Else, which is essentially DO NOTHING.

3) What is happening/not happening?
It’s executing the “Then” portion which executes the Sleep Mode.

4) Post a Green Snapshot of the pistonimage

5) Attach any logs (From ST IDE and by turning logging level to Full)


#2

So…is it working fine if BOTH of you are home? Because “and” means AND.

image

You need to re-write your condition if you really mean “either of us”.

There should be an option in there to pick “Any of” and then you put them on the same line.


#3

It works fine when we are both home as it should. When one of us is NOT home, I don’t want it to execute. So my logic looks right as we both need to be present, right?


#4

Sorry, I read that backwards initially. Anyway, are you sure it’s executing the routine? You’ve pasted in the log file and I’ve looked over it extensively. I even mocked up my own piston to mimic what you’re doing and I get different results. When a piston executes a routine, it logs that too. See below. That line is not in your log file…so is something else kicking that off?

image


#5

Man I feel stupid…I had another piston executing it! Thx for pointing this out.