Light not turning off


#1

1) Give a description of the problem
I created a piston that turns the back porch light on when the garage door opens and then it waits 10 minutes and then turns the light off. I am not sure what I have done but the light is no longer turning off after 10 minutes. This piston used to work.

2) What is the expected behavior?
Back porch light turns off after 10 minutes

3) What is happening/not happening?
Light comes on when the garage door is opened but light is not going out after 10 minutes. I am using when it changes to. but the garage door is then close and I am not sure if that is causing it to not turn the light off.

4) Post a Green Snapshot of the pistonimage

**5) Attach any logs
3/5/2018, 8:20:32 PM +420ms
+1ms â•”Received event [Home].time = 1520310033790 with a delay of -1371ms
+190ms â•‘RunTime Analysis CS > 25ms > PS > 51ms > PE > 114ms > CE
+193ms â•‘Runtime (37282 bytes) successfully initialized in 51ms (v0.3.000.20180224) (190ms)
+194ms â•‘â•”Execution stage started
+195ms ║╚Execution stage complete. (1ms)
+196ms ╚Event processed successfully (196ms)
3/5/2018, 8:11:35 PM +708ms
+1ms â•”Received event [Garage Door Opener].contact = closed with a delay of 215ms
+170ms â•‘RunTime Analysis CS > 19ms > PS > 44ms > PE > 106ms > CE
+396ms â•‘Runtime (37283 bytes) successfully initialized in 44ms (v0.3.000.20180224) (393ms)
+397ms â•‘â•”Execution stage started
+414ms â•‘â•‘Comparison (enum) closed changes_to (string) open = false (1ms)
+417ms ║║Cancelling condition #6’s schedules…
+418ms â•‘â•‘Condition #6 evaluated false (9ms)
+419ms ║║Cancelling condition #1’s schedules…
+421ms â•‘â•‘Condition group #1 evaluated false (state changed) (16ms)
+425ms ║╚Execution stage complete. (27ms)
+426ms ╚Event processed successfully (426ms)
3/5/2018, 8:10:33 PM +481ms
+1ms â•”Received event [Garage Door Opener].contact = open with a delay of 233ms
+199ms â•‘RunTime Analysis CS > 18ms > PS > 68ms > PE > 113ms > CE
+201ms â•‘Runtime (37289 bytes) successfully initialized in 68ms (v0.3.000.20180224) (199ms)
+202ms â•‘â•”Execution stage started
+212ms â•‘â•‘Comparison (enum) open changes_to (string) open = true (1ms)
+214ms ║║Cancelling condition #6’s schedules…
+215ms â•‘â•‘Condition #6 evaluated true (6ms)
+265ms ║║Comparison (time) 72633697 is_between (time) 1520301600000 … (time) 1520260980000 = true (9ms)
+267ms â•‘â•‘Time restriction check passed
+268ms ║║Cancelling condition #7’s schedules…
+269ms â•‘â•‘Condition #7 evaluated true (54ms)
+270ms ║║Cancelling condition #1’s schedules…
+271ms â•‘â•‘Condition group #1 evaluated true (state changed) (63ms)
+274ms ║║Cancelling statement #2’s schedules…
+303ms â•‘â•‘Executed physical command [Back Porch Light].on() (26ms)
+304ms â•‘â•‘Executed [Back Porch Light].on (28ms)
+308ms â•‘â•‘Executed virtual command [Back Porch Light].wait (1ms)
+309ms â•‘â•‘Requesting a wake up for Mon, Mar 5 2018 @ 8:20:33 PM PST (in 600.0s)
+314ms ║╚Execution stage complete. (112ms)
+316ms â•‘Setting up scheduled job for Mon, Mar 5 2018 @ 8:20:33 PM PST (in 599.994s)
+324ms ╚Event processed successfully (324ms)


#2

Try clicking on the WITH, then the settings cog at the bottom.
Now change TCP (Task Cancellation Policy) to never.
I would have thought you always had problems with this piston.
Give it a try.