Help with a simple piston driving me batty


#1

1) Give a description of the problem
Simple piston that was working flawlessly all of a sudden is unpredictable

2) What is the expected behavior?
If Master Bath Light is turned off, and Master Bath Fan is left on, wait 10 minutes, then turn Master Bath Fan off.

3) What is happening/not happening?
Was working great, then within this last week sometimes now it doesn’t work more often than it does.

**4) Post a Green Snapshot of the piston!


(UPLOAD YOUR IMAGE HERE)

**5) Attach any logs
Here is a log example of normal behavior:

But here is a log example of what normally seems to happen. It shows on the very first line that it received Master Bath Light is Off, but it cancells condition #2:
Capture2

REMOVE BELOW AFTER READING


#2

Personally I would delete your wait 20 minutes.
Then change the Task Cancellation Policy (TCP) in your WITH to ‘never’.
In your DO I would then have wait 20 minutes. Turn Off.

So.
Leave your IF the same.
Delete the wait 20 minutes.
Click on WITH and in settings set TCP to NEVER.
WITH
Switch 15
DO
Wait 20 mins
Turn Off.


#3

Thanks Bobbles for your reply! I have made the change and tested, and it has successfully scheduled the shutoff after 10 minutes so it should be all good!


#4

You can also use the trigger “stays off” for 10 mins. Then you don’t need a wait and webcore does all the work for you.