Why doesn't this piston work?


#1

1) Give a description of the problem
I want to determine if either of 2 contact sensors are open

2) What is the expected behavior?
send me an SMS if either is open

3) What is happening/not happening?
2nd if… is not being executed.

4) Post a Green Snapshot of the pistonimage

Any assistance would be greatly appreciated.


#2

10:05:00 arrives and the first IF runs.
When complete it moves on to the second IF.
It is not 10:05:00 anymore so the second IF will be false.
Change the IF’s from sync to async.
This means they will both run at the same time.
If this doesn’t work, change it t something life this.

EVERY DAY AT 10:05:00 PM.
DO
IF
Contact Sensor A Is Open
THEN
Send SMS

IF
Contact Sensor B Is Open
THEN
Send SMS

Personally I’d pick the second option.


#3

Thanks.

I’ll try both of your suggestions.


#4

If you turn on logging it will show you the times and whether the statements were true or false in the logs. I’m only assuming what is happening. But we are not talking about 10:05. It’s 10:05:00. We are getting down to seconds, probably milliseconds, not minutes.


#5

I guess I didn’t notice that this was precise down to seconds. I was thinking this would just be looking at 10:05, not 10:05:00.


#6

I know what you mean. :smile: You select 10:05 but it puts in the seconds as well.


#7

Have it working now using your every day suggestion.
Thanks!


#8

a different way to skin the same cat.


#9

This kind of issue happened to one of my pistons too, with 2 happens daily at the same time but the second time check never succeeds(the first one is not a successful evaluation).

So moving 2 actions in to a single time constrain is the only option…


#10

I like the way this puts notifications about multiple “Things” in one text message,
Thanks!