Trggering When Not expected When Using NOT BETWEEN


#1

1) Give a description of the problem
I have part of a piston that is triggering when it should not. See below. It appears that the AND DATE IS NOT BETWEEN OR DATE IS NOT BETWEEN is being ignored. I’m wondering if this a bug. I am sure I can program this another way but I right now this format follows the rest of the piston and I believe all other parts are working. Of course I may just have the logic wrong and can’t see it for looking (wouldn’t be the first time).

2) What is the expected behavior?
Lights do not turn off at 11:00pm between two defined date periods.

3) What is happening/not happening?
The lights are turning off at 11:00pm.

**4) Post a Green Snapshot of the piston![image|45x37]

This is the part of the piston that is not working as expected.

Here’s the whole deal.


#2

The answer is going to be in the logs


#3

I think you’ll want to use and rather than or because on Thanksgiving it’s not Christmas and vice-versa so that current group always evaluates the same way.


#4

Okay, that makes sense.

I did turn logs on but so far had not had time to test things. But I think your suggestion may be the solution. Thanks.