Second 'With' statements not executing


#1

1) Give a description of the problem
I have some pistons to turn on lights. Certain lights are going to be set to a different color than others, so I have them in different ‘with’ statements under a single ‘if’. Only the first ‘with’ executes.

2) What is the expected behaviour?
Any with statement under an IF should execute.

3) What is happening/not happening?
Only the first ‘with’ statement runs.

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

5) Attach logs after turning logging level to Full
(PASTE YOUR LOGS HERE THEN HIGHLIGHT ALL OF THE LOGS AND CLICK ON THE </> ICON TO FORMAT THEM CORRECTLY)

6/22/2020, 1:34:17 PM +347ms
+1ms ╔Received event [Theater Door].contact = closed with a delay of 105ms
+108ms ║RunTime Analysis CS &gt; 22ms &gt; PS &gt; 50ms &gt; PE &gt; 36ms &gt; CE
+110ms ║Runtime (42901 bytes) successfully initialized in 50ms (v0.3.110.20191009) (108ms)
+111ms ║╔Execution stage started
+143ms ║║Comparison (enum) off is (string) off = true (1ms)
+145ms ║║Comparison (enum) off is (string) off = true (1ms)
+147ms ║║Comparison (enum) off is (string) off = true (1ms)
+149ms ║║Comparison (enum) off is (string) off = true (1ms)
+150ms ║║Comparison (enum) off is (string) off = true (1ms)
+152ms ║║Condition #2 evaluated true (37ms)
+156ms ║║Comparison (enum) closed changes_to (string) open = false (0ms)
+157ms ║║Condition #3 evaluated false (4ms)
+158ms ║║Condition group #1 evaluated false (state did not change) (43ms)
+159ms ║╚Execution stage complete. (48ms)
+160ms ╚Event processed successfully (160ms)
6/22/2020, 1:33:52 PM +123ms
+1ms ╔Received event [Janisary].time = 1592854433130 with a delay of -1007ms
+113ms ║RunTime Analysis CS &gt; 25ms &gt; PS &gt; 48ms &gt; PE &gt; 40ms &gt; CE
+115ms ║Runtime (42903 bytes) successfully initialized in 48ms (v0.3.110.20191009) (114ms)
+116ms ║╔Execution stage started
+117ms ║╚Execution stage complete. (1ms)
+118ms ╚Event processed successfully (118ms)
6/22/2020, 1:33:38 PM +144ms
+0ms ╔Received event [Janisary].time = 1592854417544 with a delay of 600ms
+8391ms ║RunTime Analysis CS &gt; 27ms &gt; PS &gt; 8316ms &gt; PE &gt; 47ms &gt; CE
+8392ms ║Piston waited at a semaphore for 8268ms
+8394ms ║Runtime (42975 bytes) successfully initialized in 8316ms (v0.3.110.20191009) (8393ms)
+8395ms ║╔Execution stage started
+8396ms ║╚Execution stage complete. (1ms)
+8397ms ╚Event processed successfully (8397ms)
6/22/2020, 1:33:40 PM +438ms
+1ms ╔Received event [Theater Door].contact = open with a delay of 14784ms
+121ms ║RunTime Analysis CS &gt; 29ms &gt; PS &gt; 59ms &gt; PE &gt; 33ms &gt; CE
+123ms ║Runtime (42901 bytes) successfully initialized in 59ms (v0.3.110.20191009) (121ms)
+124ms ║╔Execution stage started
+159ms ║║Comparison (enum) off is (string) off = true (1ms)
+161ms ║║Comparison (enum) off is (string) off = true (1ms)
+163ms ║║Comparison (enum) off is (string) off = true (1ms)
+165ms ║║Comparison (enum) off is (string) off = true (1ms)
+167ms ║║Comparison (enum) off is (string) off = true (1ms)
+169ms ║║Condition #2 evaluated true (41ms)
+173ms ║║Comparison (enum) open changes_to (string) open = true (1ms)
+174ms ║║Cancelling condition #3's schedules...
+175ms ║║Condition #3 evaluated true (5ms)
+176ms ║║Cancelling condition #1's schedules...
+177ms ║║Condition group #1 evaluated true (state changed) (49ms)
+179ms ║║Cancelling statement #10's schedules...
+186ms ║║Sending external web request to: 204.15.86.230:81/rest/vars/set/2/7/1
+401ms ║║Executed virtual command httpRequest (215ms)
+404ms ║║Cancelling statement #4's schedules...
+411ms ║║Executed virtual command [Island Left LED Strip, Island Right LED Strip, Theater Back Wall LED Strip, Theater Ceiling Left LED Strip, Theater Ceiling Right LED Strip, Theater Left Wall LED Strip, Theater Right Wall LED Strip].wait (1ms)
+412ms ║║Waiting for 2000ms
+2418ms ║║Skipped execution of physical command [Island Left LED Strip].on([]) because it would make no change to the device. (3ms)
+2419ms ║║Executed [Island Left LED Strip].on (5ms)
+2427ms ║║Skipped execution of physical command [Island Right LED Strip].on([]) because it would make no change to the device. (4ms)
+2428ms ║║Executed [Island Right LED Strip].on (5ms)
+2435ms ║║Skipped execution of physical command [Theater Back Wall LED Strip].on([]) because it would make no change to the device. (4ms)
+2436ms ║║Executed [Theater Back Wall LED Strip].on (6ms)
+2443ms ║║Skipped execution of physical command [Theater Ceiling Left LED Strip].on([]) because it would make no change to the device. (3ms)
+2444ms ║║Executed [Theater Ceiling Left LED Strip].on (5ms)
+2452ms ║║Skipped execution of physical command [Theater Ceiling Right LED Strip].on([]) because it would make no change to the device. (5ms)
+2453ms ║║Executed [Theater Ceiling Right LED Strip].on (6ms)
+2462ms ║║Skipped execution of physical command [Theater Left Wall LED Strip].on([]) because it would make no change to the device. (6ms)
+2463ms ║║Executed [Theater Left Wall LED Strip].on (8ms)
+2469ms ║║Skipped execution of physical command [Theater Right Wall LED Strip].on([]) because it would make no change to the device. (2ms)
+2470ms ║║Executed [Theater Right Wall LED Strip].on (4ms)
+2487ms ║║Executed physical command [Island Left LED Strip].setLevel([100]) (14ms)
+2488ms ║║Executed [Island Left LED Strip].setLevel (15ms)
+2494ms ║║Skipped execution of physical command [Island Right LED Strip].setLevel([100]) because it would make no change to the device. (5ms)
+2495ms ║║Executed [Island Right LED Strip].setLevel (6ms)
+2502ms ║║Skipped execution of physical command [Theater Back Wall LED Strip].setLevel([100]) because it would make no change to the device. (6ms)
+2503ms ║║Executed [Theater Back Wall LED Strip].setLevel (7ms)
+2510ms ║║Skipped execution of physical command [Theater Ceiling Left LED Strip].setLevel([100]) because it would make no change to the device. (5ms)
+2510ms ║║Executed [Theater Ceiling Left LED Strip].setLevel (6ms)
+2517ms ║║Skipped execution of physical command [Theater Ceiling Right LED Strip].setLevel([100]) because it would make no change to the device. (5ms)
+2518ms ║║Executed [Theater Ceiling Right LED Strip].setLevel (7ms)
+2532ms ║║Skipped execution of physical command [Theater Left Wall LED Strip].setLevel([100]) because it would make no change to the device. (12ms)
+2533ms ║║Executed [Theater Left Wall LED Strip].setLevel (13ms)
+2540ms ║║Skipped execution of physical command [Theater Right Wall LED Strip].setLevel([100]) because it would make no change to the device. (5ms)
+2541ms ║║Executed [Theater Right Wall LED Strip].setLevel (7ms)
+2551ms ║║Executed physical command [Island Left LED Strip].setColor([[hex: #0000FF, hue:67, saturation:100, level:50]]) (8ms)
+2552ms ║║Executed [Island Left LED Strip].setColor (10ms)
+2564ms ║║Executed physical command [Island Right LED Strip].setColor([[hex: #0000FF, hue:67, saturation:100, level:50]]) (10ms)
+2565ms ║║Executed [Island Right LED Strip].setColor (12ms)
+2579ms ║║Executed physical command [Theater Back Wall LED Strip].setColor([[hex: #0000FF, hue:67, saturation:100, level:50]]) (11ms)
+2580ms ║║Executed [Theater Back Wall LED Strip].setColor (14ms)
+2594ms ║║Executed physical command [Theater Ceiling Left LED Strip].setColor([[hex: #0000FF, hue:67, saturation:100, level:50]]) (11ms)
+2595ms ║║Executed [Theater Ceiling Left LED Strip].setColor (13ms)
+2607ms ║║Executed physical command [Theater Ceiling Right LED Strip].setColor([[hex: #0000FF, hue:67, saturation:100, level:50]]) (11ms)
+2608ms ║║Executed [Theater Ceiling Right LED Strip].setColor (13ms)
+2621ms ║║Executed physical command [Theater Left Wall LED Strip].setColor([[hex: #0000FF, hue:67, saturation:100, level:50]]) (11ms)
+2622ms ║║Executed [Theater Left Wall LED Strip].setColor (13ms)
+2635ms ║║Executed physical command [Theater Right Wall LED Strip].setColor([[hex: #0000FF, hue:67, saturation:100, level:50]]) (11ms)
+2636ms ║║Executed [Theater Right Wall LED Strip].setColor (13ms)
+2638ms ║║Cancelling statement #8's schedules...
+2686ms ║║Executed physical command [null].open() (44ms)
+2687ms ║║Executed [Theater Entry Trigger].open (46ms)
+2690ms ║║Executed virtual command [Theater Entry Trigger].wait (0ms)
+2692ms ║║Requesting a wake up for Mon, Jun 22 2020 @ 1:33:53 PM MDT (in 10.0s)
+2696ms ║╚Execution stage complete. (2571ms)
+2697ms ║Setting up scheduled job for Mon, Jun 22 2020 @ 1:33:53 PM MDT (in 9.996s)
+2709ms ╚Event processed successfully (2709ms)
6/22/2020, 1:33:36 PM +339ms
+2ms ╔Received event [Theater Door].contact = open with a delay of 10685ms
+115ms ║RunTime Analysis CS &gt; 28ms &gt; PS &gt; 54ms &gt; PE &gt; 34ms &gt; CE
+118ms ║Runtime (42901 bytes) successfully initialized in 54ms (v0.3.110.20191009) (116ms)
+119ms ║╔Execution stage started
+154ms ║║Comparison (enum) off is (string) off = true (1ms)
+156ms ║║Comparison (enum) off is (string) off = true (1ms)
+158ms ║║Comparison (enum) off is (string) off = true (1ms)
+160ms ║║Comparison (enum) off is (string) off = true (1ms)
+162ms ║║Comparison (enum) off is (string) off = true (1ms)
+163ms ║║Condition #2 evaluated true (40ms)
+167ms ║║Comparison (enum) open changes_to (string) open = true (1ms)
+168ms ║║Cancelling condition #3's schedules...
+169ms ║║Condition #3 evaluated true (5ms)
+170ms ║║Cancelling condition #1's schedules...
+171ms ║║Condition group #1 evaluated true (state changed) (49ms)
+173ms ║║Cancelling statement #10's schedules...
+180ms ║║Sending external web request to: 204.15.86.230:81/rest/vars/set/2/7/1
+1012ms ║║Executed virtual command httpRequest (833ms)
+1015ms ║║Cancelling statement #4's schedules...
+1023ms ║║Executed virtual command [Island Left LED Strip, Island Right LED Strip, Theater Back Wall LED Strip, Theater Ceiling Left LED Strip, Theater Ceiling Right LED Strip, Theater Left Wall LED Strip, Theater Right Wall LED Strip].wait (1ms)
+1026ms ║║Waiting for 2000ms
+3032ms ║║Skipped execution of physical command [Island Left LED Strip].on([]) because it would make no change to the device. (3ms)
+3034ms ║║Executed [Island Left LED Strip].on (6ms)
+3041ms ║║Skipped execution of physical command [Island Right LED Strip].on([]) because it would make no change to the device. (3ms)
+3042ms ║║Executed [Island Right LED Strip].on (5ms)
+3180ms ║║Skipped execution of physical command [Theater Back Wall LED Strip].on([]) because it would make no change to the device. (134ms)
+3181ms ║║Executed [Theater Back Wall LED Strip].on (137ms)
+3188ms ║║Skipped execution of physical command [Theater Ceiling Left LED Strip].on([]) because it would make no change to the device. (4ms)
+3189ms ║║Executed [Theater Ceiling Left LED Strip].on (6ms)
+3196ms ║║Skipped execution of physical command [Theater Ceiling Right LED Strip].on([]) because it would make no change to the device. (4ms)
+3197ms ║║Executed [Theater Ceiling Right LED Strip].on (6ms)
+3208ms ║║Skipped execution of physical command [Theater Left Wall LED Strip].on([]) because it would make no change to the device. (8ms)
+3209ms ║║Executed [Theater Left Wall LED Strip].on (10ms)
+3216ms ║║Skipped execution of physical command [Theater Right Wall LED Strip].on([]) because it would make no change to the device. (3ms)
+3217ms ║║Executed [Theater Right Wall LED Strip].on (5ms)
+3237ms ║║Executed physical command [Island Left LED Strip].setLevel([100]) (17ms)
+3238ms ║║Executed [Island Left LED Strip].setLevel (18ms)
+3246ms ║║Skipped execution of physical command [Island Right LED Strip].setLevel([100]) because it would make no change to the device. (5ms)
+3247ms ║║Executed [Island Right LED Strip].setLevel (7ms)
+3255ms ║║Skipped execution of physical command [Theater Back Wall LED Strip].setLevel([100]) because it would make no change to the device. (7ms)
+3256ms ║║Executed [Theater Back Wall LED Strip].setLevel (8ms)
+3263ms ║║Skipped execution of physical command [Theater Ceiling Left LED Strip].setLevel([100]) because it would make no change to the device. (5ms)
+3264ms ║║Executed [Theater Ceiling Left LED Strip].setLevel (7ms)
+3272ms ║║Skipped execution of physical command [Theater Ceiling Right LED Strip].setLevel([100]) because it would make no change to the device. (6ms)
+3273ms ║║Executed [Theater Ceiling Right LED Strip].setLevel (8ms)
+3286ms ║║Skipped execution of physical command [Theater Left Wall LED Strip].setLevel([100]) because it would make no change to the device. (11ms)
+3287ms ║║Executed [Theater Left Wall LED Strip].setLevel (13ms)
+3295ms ║║Skipped execution of physical command [Theater Right Wall LED Strip].setLevel([100]) because it would make no change to the device. (6ms)
+3296ms ║║Executed [Theater Right Wall LED Strip].setLevel (8ms)
+3307ms ║║Executed physical command [Island Left LED Strip].setColor([[hex: #0000FF, hue:67, saturation:100, level:50]]) (8ms)
+3308ms ║║Executed [Island Left LED Strip].setColor (10ms)
+3320ms ║║Executed physical command [Island Right LED Strip].setColor([[hex: #0000FF, hue:67, saturation:100, level:50]]) (9ms)
+3321ms ║║Executed [Island Right LED Strip].setColor (11ms)
+3332ms ║║Executed physical command [Theater Back Wall LED Strip].setColor([[hex: #0000FF, hue:67, saturation:100, level:50]]) (10ms)
+3333ms ║║Executed [Theater Back Wall LED Strip].setColor (12ms)
+3345ms ║║Executed physical command [Theater Ceiling Left LED Strip].setColor([[hex: #0000FF, hue:67, saturation:100, level:50]]) (10ms)
+3346ms ║║Executed [Theater Ceiling Left LED Strip].setColor (12ms)
+3357ms ║║Executed physical command [Theater Ceiling Right LED Strip].setColor([[hex: #0000FF, hue:67, saturation:100, level:50]]) (9ms)
+3358ms ║║Executed [Theater Ceiling Right LED Strip].setColor (11ms)
+3370ms ║║Executed physical command [Theater Left Wall LED Strip].setColor([[hex: #0000FF, hue:67, saturation:100, level:50]]) (10ms)
+3371ms ║║Executed [Theater Left Wall LED Strip].setColor (12ms)
+3383ms ║║Executed physical command [Theater Right Wall LED Strip].setColor([[hex: #0000FF, hue:67, saturation:100, level:50]]) (10ms)
+3384ms ║║Executed [Theater Right Wall LED Strip].setColor (12ms)
+3387ms ║║Cancelling statement #8's schedules...
+3434ms ║║Executed physical command [null].open() (43ms)
+3434ms ║║Executed [Theater Entry Trigger].open (45ms)
+3438ms ║║Executed virtual command [Theater Entry Trigger].wait (0ms)
+3439ms ║║Requesting a wake up for Mon, Jun 22 2020 @ 1:33:49 PM MDT (in 10.0s)
+3443ms ║╚Execution stage complete. (3325ms)
+3445ms ║Setting up scheduled job for Mon, Jun 22 2020 @ 1:33:49 PM MDT (in 9.996s)
+3454ms ╚Event processed successfully (3454ms)
6/22/2020, 1:33:25 PM +852ms
+2ms ╔Received event [Theater Door].contact = open with a delay of 199ms
+9393ms ║RunTime Analysis CS &gt; 29ms &gt; PS &gt; 9323ms &gt; PE &gt; 41ms &gt; CE
+9394ms ║Piston waited at a semaphore for 9270ms
+9396ms ║Runtime (42973 bytes) successfully initialized in 9323ms (v0.3.110.20191009) (9393ms)
+9397ms ║╔Execution stage started
+9432ms ║║Comparison (enum) off is (string) off = true (2ms)
+9434ms ║║Comparison (enum) off is (string) off = true (1ms)
+9436ms ║║Comparison (enum) off is (string) off = true (1ms)
+9438ms ║║Comparison (enum) off is (string) off = true (1ms)
+9440ms ║║Comparison (enum) off is (string) off = true (1ms)
+9442ms ║║Condition #2 evaluated true (41ms)
+9445ms ║║Comparison (enum) open changes_to (string) open = true (0ms)
+9447ms ║║Cancelling condition #3's schedules...
+9448ms ║║Condition #3 evaluated true (4ms)
+9449ms ║║Cancelling condition #1's schedules...
+9449ms ║║Condition group #1 evaluated true (state changed) (48ms)
+9451ms ║║Cancelling statement #10's schedules...
+9458ms ║║Sending external web request to: 204.15.86.230:81/rest/vars/set/2/7/1
+9667ms ║║Executed virtual command httpRequest (209ms)
+9669ms ║║Cancelling statement #4's schedules...
+9678ms ║║Executed virtual command [Island Left LED Strip, Island Right LED Strip, Theater Back Wall LED Strip, Theater Ceiling Left LED Strip, Theater Ceiling Right LED Strip, Theater Left Wall LED Strip, Theater Right Wall LED Strip].wait (1ms)
+9687ms ║║Requesting a wake up for Mon, Jun 22 2020 @ 1:33:37 PM MDT (in 2.0s)
+9695ms ║╚Execution stage complete. (298ms)
+9697ms ║Setting up scheduled job for Mon, Jun 22 2020 @ 1:33:37 PM MDT (in 1.996s)
+9752ms ╚Event processed successfully (9752ms)
6/22/2020, 1:33:31 PM +792ms
+1ms ╔Received event [Theater Door].contact = open with a delay of 6908ms
+115ms ║RunTime Analysis CS &gt; 29ms &gt; PS &gt; 47ms &gt; PE &gt; 39ms &gt; CE
+118ms ║Runtime (42900 bytes) successfully initialized in 47ms (v0.3.110.20191009) (116ms)
+119ms ║╔Execution stage started
+149ms ║║Comparison (enum) off is (string) off = true (1ms)
+151ms ║║Comparison (enum) off is (string) off = true (1ms)
+154ms ║║Comparison (enum) off is (string) off = true (1ms)
+156ms ║║Comparison (enum) off is (string) off = true (2ms)
+158ms ║║Comparison (enum) off is (string) off = true (1ms)
+160ms ║║Condition #2 evaluated true (37ms)
+164ms ║║Comparison (enum) open changes_to (string) open = true (0ms)
+165ms ║║Cancelling condition #3's schedules...
+166ms ║║Condition #3 evaluated true (5ms)
+167ms ║║Cancelling condition #1's schedules...
+168ms ║║Condition group #1 evaluated true (state changed) (46ms)
+170ms ║║Cancelling statement #10's schedules...
+177ms ║║Sending external web request to: 204.15.86.230:81/rest/vars/set/2/7/1
+390ms ║║Executed virtual command httpRequest (214ms)
+392ms ║║Cancelling statement #4's schedules...
+399ms ║║Executed virtual command [Island Left LED Strip, Island Right LED Strip, Theater Back Wall LED Strip, Theater Ceiling Left LED Strip, Theater Ceiling Right LED Strip, Theater Left Wall LED Strip, Theater Right Wall LED Strip].wait (1ms)
+400ms ║║Waiting for 2000ms
+2405ms ║║Skipped execution of physical command [Island Left LED Strip].on([]) because it would make no change to the device. (2ms)
+2406ms ║║Executed [Island Left LED Strip].on (4ms)
+2412ms ║║Skipped execution of physical command [Island Right LED Strip].on([]) because it would make no change to the device. (3ms)
+2413ms ║║Executed [Island Right LED Strip].on (4ms)
+2420ms ║║Skipped execution of physical command [Theater Back Wall LED Strip].on([]) because it would make no change to the device. (4ms)
+2421ms ║║Executed [Theater Back Wall LED Strip].on (6ms)
+2427ms ║║Skipped execution of physical command [Theater Ceiling Left LED Strip].on([]) because it would make no change to the device. (2ms)
+2428ms ║║Executed [Theater Ceiling Left LED Strip].on (4ms)
+2434ms ║║Skipped execution of physical command [Theater Ceiling Right LED Strip].on([]) because it would make no change to the device. (3ms)
+2435ms ║║Executed [Theater Ceiling Right LED Strip].on (4ms)
+2443ms ║║Skipped execution of physical command [Theater Left Wall LED Strip].on([]) because it would make no change to the device. (5ms)
+2444ms ║║Executed [Theater Left Wall LED Strip].on (7ms)
+2449ms ║║Skipped execution of physical command [Theater Right Wall LED Strip].on([]) because it would make no change to the device. (2ms)
+2450ms ║║Executed [Theater Right Wall LED Strip].on (3ms)
+2465ms ║║Executed physical command [Island Left LED Strip].setLevel([100]) (11ms)
+2466ms ║║Executed [Island Left LED Strip].setLevel (12ms)
+2477ms ║║Executed physical command [Island Right LED Strip].setLevel([100]) (10ms)
+2478ms ║║Executed [Island Right LED Strip].setLevel (12ms)
+2484ms ║║Skipped execution of physical command [Theater Back Wall LED Strip].setLevel([100]) because it would make no change to the device. (4ms)
+2484ms ║║Executed [Theater Back Wall LED Strip].setLevel (5ms)
+2490ms ║║Skipped execution of physical command [Theater Ceiling Left LED Strip].setLevel([100]) because it would make no change to the device. (4ms)
+2491ms ║║Executed [Theater Ceiling Left LED Strip].setLevel (5ms)
+2498ms ║║Skipped execution of physical command [Theater Ceiling Right LED Strip].setLevel([100]) because it would make no change to the device. (6ms)
+2499ms ║║Executed [Theater Ceiling Right LED Strip].setLevel (8ms)
+2511ms ║║Skipped execution of physical command [Theater Left Wall LED Strip].setLevel([100]) because it would make no change to the device. (11ms)
+2512ms ║║Executed [Theater Left Wall LED Strip].setLevel (12ms)
+2517ms ║║Skipped execution of physical command [Theater Right Wall LED Strip].setLevel([100]) because it would make no change to the device. (4ms)
+2518ms ║║Executed [Theater Right Wall LED Strip].setLevel (5ms)
+2527ms ║║Executed physical command [Island Left LED Strip].setColor([[hex: #0000FF, hue:67, saturation:100, level:50]]) (5ms)
+2528ms ║║Executed [Island Left LED Strip].setColor (7ms)
+2535ms ║║Executed physical command [Island Right LED Strip].setColor([[hex: #0000FF, hue:67, saturation:100, level:50]]) (6ms)
+2536ms ║║Executed [Island Right LED Strip].setColor (8ms)
+2546ms ║║Executed physical command [Theater Back Wall LED Strip].setColor([[hex: #0000FF, hue:67, saturation:100, level:50]]) (9ms)
+2547ms ║║Executed [Theater Back Wall LED Strip].setColor (9ms)
+2557ms ║║Executed physical command [Theater Ceiling Left LED Strip].setColor([[hex: #0000FF, hue:67, saturation:100, level:50]]) (9ms)
+2558ms ║║Executed [Theater Ceiling Left LED Strip].setColor (11ms)
+2568ms ║║Executed physical command [Theater Ceiling Right LED Strip].setColor([[hex: #0000FF, hue:67, saturation:100, level:50]]) (9ms)
+2569ms ║║Executed [Theater Ceiling Right LED Strip].setColor (10ms)
+2580ms ║║Executed physical command [Theater Left Wall LED Strip].setColor([[hex: #0000FF, hue:67, saturation:100, level:50]]) (8ms)
+2581ms ║║Executed [Theater Left Wall LED Strip].setColor (10ms)
+2591ms ║║Executed physical command [Theater Right Wall LED Strip].setColor([[hex: #0000FF, hue:67, saturation:100, level:50]]) (9ms)
+2592ms ║║Executed [Theater Right Wall LED Strip].setColor (11ms)
+2594ms ║║Cancelling statement #8's schedules...
+2636ms ║║Executed physical command [null].open() (38ms)
+2637ms ║║Executed [Theater Entry Trigger].open (40ms)
+2640ms ║║Executed virtual command [Theater Entry Trigger].wait (0ms)
+2641ms ║║Requesting a wake up for Mon, Jun 22 2020 @ 1:33:44 PM MDT (in 10.0s)
+2645ms ║╚Execution stage complete. (2527ms)
+2647ms ║Setting up scheduled job for Mon, Jun 22 2020 @ 1:33:44 PM MDT (in 9.996s)
+2658ms ╚Event processed successfully (2658ms)
6/22/2020, 1:33:28 PM +398ms
+2ms ╔Received event [Theater Door].contact = open with a delay of 3514ms
+202ms ║RunTime Analysis CS &gt; 23ms &gt; PS &gt; 140ms &gt; PE &gt; 39ms &gt; CE
+205ms ║Runtime (42902 bytes) successfully initialized in 140ms (v0.3.110.20191009) (203ms)
+206ms ║╔Execution stage started
+235ms ║║Comparison (enum) off is (string) off = true (1ms)
+238ms ║║Comparison (enum) off is (string) off = true (1ms)
+240ms ║║Comparison (enum) off is (string) off = true (2ms)
+242ms ║║Comparison (enum) off is (string) off = true (1ms)
+244ms ║║Comparison (enum) off is (string) off = true (1ms)
+246ms ║║Condition #2 evaluated true (36ms)
+250ms ║║Comparison (enum) open changes_to (string) open = true (1ms)
+251ms ║║Cancelling condition #3's schedules...
+252ms ║║Condition #3 evaluated true (5ms)
+253ms ║║Cancelling condition #1's schedules...
+254ms ║║Condition group #1 evaluated true (state changed) (45ms)
+256ms ║║Cancelling statement #10's schedules...
+263ms ║║Sending external web request to: 204.15.86.230:81/rest/vars/set/2/7/1
+477ms ║║Executed virtual command httpRequest (215ms)
+480ms ║║Cancelling statement #4's schedules...
+486ms ║║Executed virtual command [Island Left LED Strip, Island Right LED Strip, Theater Back Wall LED Strip, Theater Ceiling Left LED Strip, Theater Ceiling Right LED Strip, Theater Left Wall LED Strip, Theater Right Wall LED Strip].wait (0ms)
+487ms ║║Waiting for 2000ms
+2493ms ║║Skipped execution of physical command [Island Left LED Strip].on([]) because it would make no change to the device. (2ms)
+2494ms ║║Executed [Island Left LED Strip].on (4ms)
+2499ms ║║Skipped execution of physical command [Island Right LED Strip].on([]) because it would make no change to the device. (2ms)
+2500ms ║║Executed [Island Right LED Strip].on (4ms)
+2506ms ║║Skipped execution of physical command [Theater Back Wall LED Strip].on([]) because it would make no change to the device. (3ms)
+2507ms ║║Executed [Theater Back Wall LED Strip].on (3ms)
+2512ms ║║Skipped execution of physical command [Theater Ceiling Left LED Strip].on([]) because it would make no change to the device. (1ms)
+2513ms ║║Executed [Theater Ceiling Left LED Strip].on (3ms)
+2519ms ║║Skipped execution of physical command [Theater Ceiling Right LED Strip].on([]) because it would make no change to the device. (3ms)
+2520ms ║║Executed [Theater Ceiling Right LED Strip].on (5ms)
+2529ms ║║Skipped execution of physical command [Theater Left Wall LED Strip].on([]) because it would make no change to the device. (6ms)
+2530ms ║║Executed [Theater Left Wall LED Strip].on (8ms)
+2536ms ║║Skipped execution of physical command [Theater Right Wall LED Strip].on([]) because it would make no change to the device. (3ms)
+2537ms ║║Executed [Theater Right Wall LED Strip].on (5ms)
+2551ms ║║Executed physical command [Island Left LED Strip].setLevel([100]) (11ms)
+2552ms ║║Executed [Island Left LED Strip].setLevel (13ms)
+2564ms ║║Executed physical command [Island Right LED Strip].setLevel([100]) (11ms)
+2565ms ║║Executed [Island Right LED Strip].setLevel (12ms)
+2572ms ║║Skipped execution of physical command [Theater Back Wall LED Strip].setLevel([100]) because it would make no change to the device. (6ms)
+2573ms ║║Executed [Theater Back Wall LED Strip].setLevel (7ms)
+2579ms ║║Skipped execution of physical command [Theater Ceiling Left LED Strip].setLevel([100]) because it would make no change to the device. (4ms)
+2579ms ║║Executed [Theater Ceiling Left LED Strip].setLevel (5ms)
+2586ms ║║Skipped execution of physical command [Theater Ceiling Right LED Strip].setLevel([100]) because it would make no change to the device. (5ms)
+2587ms ║║Executed [Theater Ceiling Right LED Strip].setLevel (7ms)
+2598ms ║║Skipped execution of physical command [Theater Left Wall LED Strip].setLevel([100]) because it would make no change to the device. (10ms)
+2599ms ║║Executed [Theater Left Wall LED Strip].setLevel (12ms)
+2605ms ║║Skipped execution of physical command [Theater Right Wall LED Strip].setLevel([100]) because it would make no change to the device. (5ms)
+2606ms ║║Executed [Theater Right Wall LED Strip].setLevel (6ms)
+2614ms ║║Executed physical command [Island Left LED Strip].setColor([[hex: #0000FF, hue:67, saturation:100, level:50]]) (5ms)
+2615ms ║║Executed [Island Left LED Strip].setColor (7ms)
+2622ms ║║Executed physical command [Island Right LED Strip].setColor([[hex: #0000FF, hue:67, saturation:100, level:50]]) (5ms)
+2623ms ║║Executed [Island Right LED Strip].setColor (7ms)
+2633ms ║║Executed physical command [Theater Back Wall LED Strip].setColor([[hex: #0000FF, hue:67, saturation:100, level:50]]) (8ms)
+2634ms ║║Executed [Theater Back Wall LED Strip].setColor (10ms)
+2643ms ║║Executed physical command [Theater Ceiling Left LED Strip].setColor([[hex: #0000FF, hue:67, saturation:100, level:50]]) (8ms)
+2644ms ║║Executed [Theater Ceiling Left LED Strip].setColor (9ms)
+2654ms ║║Executed physical command [Theater Ceiling Right LED Strip].setColor([[hex: #0000FF, hue:67, saturation:100, level:50]]) (8ms)
+2655ms ║║Executed [Theater Ceiling Right LED Strip].setColor (10ms)
+2664ms ║║Executed physical command [Theater Left Wall LED Strip].setColor([[hex: #0000FF, hue:67, saturation:100, level:50]]) (8ms)
+2665ms ║║Executed [Theater Left Wall LED Strip].setColor (9ms)
+2675ms ║║Executed physical command [Theater Right Wall LED Strip].setColor([[hex: #0000FF, hue:67, saturation:100, level:50]]) (8ms)
+2676ms ║║Executed [Theater Right Wall LED Strip].setColor (9ms)
+2678ms ║║Cancelling statement #8's schedules...
+2725ms ║║Executed physical command [null].open() (43ms)
+2726ms ║║Executed [Theater Entry Trigger].open (45ms)
+2729ms ║║Executed virtual command [Theater Entry Trigger].wait (1ms)
+2730ms ║║Requesting a wake up for Mon, Jun 22 2020 @ 1:33:41 PM MDT (in 10.0s)
+2734ms ║╚Execution stage complete. (2529ms)
+2735ms ║Setting up scheduled job for Mon, Jun 22 2020 @ 1:33:41 PM MDT (in 9.996s)
+2747ms ╚Event processed successfully (2746ms)
6/22/2020, 1:33:24 PM +999ms
+1ms ╔Received event [Theater Door].contact = open with a delay of 114ms
+111ms ║RunTime Analysis CS &gt; 24ms &gt; PS &gt; 48ms &gt; PE &gt; 40ms &gt; CE
+114ms ║Runtime (42899 bytes) successfully initialized in 48ms (v0.3.110.20191009) (111ms)
+115ms ║╔Execution stage started
+148ms ║║Comparison (enum) off is (string) off = true (2ms)
+151ms ║║Comparison (enum) off is (string) off = true (1ms)
+154ms ║║Comparison (enum) off is (string) off = true (1ms)
+156ms ║║Comparison (enum) off is (string) off = true (1ms)
+158ms ║║Comparison (enum) off is (string) off = true (1ms)
+161ms ║║Condition #2 evaluated true (41ms)
+165ms ║║Comparison (enum) open changes_to (string) open = true (1ms)
+166ms ║║Cancelling condition #3's schedules...
+167ms ║║Condition #3 evaluated true (6ms)
+168ms ║║Cancelling condition #1's schedules...
+169ms ║║Condition group #1 evaluated true (state changed) (51ms)
+172ms ║║Cancelling statement #10's schedules...
+178ms ║║Sending external web request to: 204.15.86.230:81/rest/vars/set/2/7/1
+391ms ║║Executed virtual command httpRequest (213ms)
+394ms ║║Cancelling statement #4's schedules...
+400ms ║║Executed virtual command [Island Left LED Strip, Island Right LED Strip, Theater Back Wall LED Strip, Theater Ceiling Left LED Strip, Theater Ceiling Right LED Strip, Theater Left Wall LED Strip, Theater Right Wall LED Strip].wait (1ms)
+401ms ║║Waiting for 2000ms
+2406ms ║║Skipped execution of physical command [Island Left LED Strip].on([]) because it would make no change to the device. (3ms)
+2407ms ║║Executed [Island Left LED Strip].on (5ms)
+2413ms ║║Skipped execution of physical command [Island Right LED Strip].on([]) because it would make no change to the device. (3ms)
+2414ms ║║Executed [Island Right LED Strip].on (5ms)
+2434ms ║║Executed physical command [Theater Back Wall LED Strip].on() (17ms)
+2435ms ║║Executed [Theater Back Wall LED Strip].on (19ms)
+2448ms ║║Executed physical command [Theater Ceiling Left LED Strip].on() (10ms)
+2449ms ║║Executed [Theater Ceiling Left LED Strip].on (12ms)
+2463ms ║║Executed physical command [Theater Ceiling Right LED Strip].on() (11ms)
+2464ms ║║Executed [Theater Ceiling Right LED Strip].on (12ms)
+2480ms ║║Executed physical command [Theater Left Wall LED Strip].on() (13ms)
+2481ms ║║Executed [Theater Left Wall LED Strip].on (15ms)
+2495ms ║║Executed physical command [Theater Right Wall LED Strip].on() (11ms)
+2496ms ║║Executed [Theater Right Wall LED Strip].on (12ms)
+2509ms ║║Executed physical command [Island Left LED Strip].setLevel([100]) (10ms)
+2510ms ║║Executed [Island Left LED Strip].setLevel (11ms)
+2522ms ║║Executed physical command [Island Right LED Strip].setLevel([100]) (10ms)
+2522ms ║║Executed [Island Right LED Strip].setLevel (11ms)
+2533ms ║║Executed physical command [Theater Back Wall LED Strip].setLevel([100]) (9ms)
+2534ms ║║Executed [Theater Back Wall LED Strip].setLevel (11ms)
+2545ms ║║Executed physical command [Theater Ceiling Left LED Strip].setLevel([100]) (9ms)
+2546ms ║║Executed [Theater Ceiling Left LED Strip].setLevel (11ms)
+2557ms ║║Executed physical command [Theater Ceiling Right LED Strip].setLevel([100]) (10ms)
+2558ms ║║Executed [Theater Ceiling Right LED Strip].setLevel (11ms)
+2575ms ║║Executed physical command [Theater Left Wall LED Strip].setLevel([100]) (15ms)
+2576ms ║║Executed [Theater Left Wall LED Strip].setLevel (17ms)
+2586ms ║║Executed physical command [Theater Right Wall LED Strip].setLevel([100]) (9ms)
+2587ms ║║Executed [Theater Right Wall LED Strip].setLevel (10ms)
+2597ms ║║Executed physical command [Island Left LED Strip].setColor([[hex: #0000FF, hue:67, saturation:100, level:50]]) (7ms)
+2598ms ║║Executed [Island Left LED Strip].setColor (9ms)
+2605ms ║║Executed physical command [Island Right LED Strip].setColor([[hex: #0000FF, hue:67, saturation:100, level:50]]) (5ms)
+2606ms ║║Executed [Island Right LED Strip].setColor (6ms)
+2613ms ║║Executed physical command [Theater Back Wall LED Strip].setColor([[hex: #0000FF, hue:67, saturation:100, level:50]]) (5ms)
+2613ms ║║Executed [Theater Back Wall LED Strip].setColor (7ms)
+2620ms ║║Executed physical command [Theater Ceiling Left LED Strip].setColor([[hex: #0000FF, hue:67, saturation:100, level:50]]) (5ms)
+2621ms ║║Executed [Theater Ceiling Left LED Strip].setColor (7ms)
+2628ms ║║Executed physical command [Theater Ceiling Right LED Strip].setColor([[hex: #0000FF, hue:67, saturation:100, level:50]]) (5ms)
+2629ms ║║Executed [Theater Ceiling Right LED Strip].setColor (7ms)
+2636ms ║║Executed physical command [Theater Left Wall LED Strip].setColor([[hex: #0000FF, hue:67, saturation:100, level:50]]) (5ms)
+2637ms ║║Executed [Theater Left Wall LED Strip].setColor (7ms)
+2644ms ║║Executed physical command [Theater Right Wall LED Strip].setColor([[hex: #0000FF, hue:67, saturation:100, level:50]]) (6ms)
+2645ms ║║Executed [Theater Right Wall LED Strip].setColor (7ms)
+2647ms ║║Cancelling statement #8's schedules...
+2696ms ║║Executed physical command [null].open() (45ms)
+2697ms ║║Executed [Theater Entry Trigger].open (47ms)
+2700ms ║║Executed virtual command [Theater Entry Trigger].wait (0ms)
+2702ms ║║Requesting a wake up for Mon, Jun 22 2020 @ 1:33:37 PM MDT (in 10.0s)
+2706ms ║╚Execution stage complete. (2592ms)
+2707ms ║Setting up scheduled job for Mon, Jun 22 2020 @ 1:33:37 PM MDT (in 9.995s)
+2748ms ╚Event processed successfully (2748ms)
6/22/2020, 1:29:51 PM +199ms
+2ms ╔Received event [Theater Door].contact = closed with a delay of 102ms
+104ms ║RunTime Analysis CS &gt; 20ms &gt; PS &gt; 46ms &gt; PE &gt; 37ms &gt; CE
+106ms ║Runtime (42901 bytes) successfully initialized in 46ms (v0.3.110.20191009) (103ms)
+107ms ║╔Execution stage started
+140ms ║║Comparison (enum) off is (string) off = true (2ms)
+143ms ║║Comparison (enum) off is (string) off = true (1ms)
+145ms ║║Comparison (enum) off is (string) off = true (1ms)
+148ms ║║Comparison (enum) off is (string) off = true (1ms)
+150ms ║║Comparison (enum) off is (string) off = true (1ms)
+153ms ║║Condition #2 evaluated true (41ms)
+157ms ║║Comparison (enum) closed changes_to (string) open = false (1ms)
+159ms ║║Condition #3 evaluated false (4ms)
+160ms ║║Condition group #1 evaluated false (state did not change) (48ms)
+162ms ║╚Execution stage complete. (55ms)
+163ms ╚Event processed successfully (163ms)
6/22/2020, 1:29:41 PM +109ms
+1ms ╔Received event [Janisary].time = 1592854182060 with a delay of -951ms
+113ms ║RunTime Analysis CS &gt; 27ms &gt; PS &gt; 52ms &gt; PE &gt; 34ms &gt; CE
+116ms ║Runtime (42902 bytes) successfully initialized in 52ms (v0.3.110.20191009) (114ms)
+117ms ║╔Execution stage started
+117ms ║╚Execution stage complete. (1ms)
+118ms ╚Event processed successfully (118ms)
6/22/2020, 1:29:29 PM +380ms
+2ms ╔Received event [Theater Door].contact = open with a delay of 7084ms
+109ms ║RunTime Analysis CS &gt; 24ms &gt; PS &gt; 47ms &gt; PE &gt; 37ms &gt; CE
+111ms ║Runtime (42900 bytes) successfully initialized in 47ms (v0.3.110.20191009) (109ms)
+112ms ║╔Execution stage started
+145ms ║║Comparison (enum) off is (string) off = true (1ms)
+147ms ║║Comparison (enum) off is (string) off = true (1ms)
+149ms ║║Comparison (enum) off is (string) off = true (1ms)
+152ms ║║Comparison (enum) off is (string) off = true (1ms)
+154ms ║║Comparison (enum) off is (string) off = true (2ms)
+156ms ║║Condition #2 evaluated true (40ms)
+159ms ║║Comparison (enum) open changes_to (string) open = true (0ms)
+161ms ║║Cancelling condition #3's schedules...
+162ms ║║Condition #3 evaluated true (5ms)
+163ms ║║Cancelling condition #1's schedules...
+164ms ║║Condition group #1 evaluated true (state changed) (47ms)
+166ms ║║Cancelling statement #10's schedules...
+172ms ║║Sending external web request to: 204.15.86.230:81/rest/vars/set/2/7/1
+393ms ║║Executed virtual command httpRequest (222ms)
+396ms ║║Cancelling statement #4's schedules...
+403ms ║║Executed virtual command [Island Left LED Strip, Island Right LED Strip, Theater Back Wall LED Strip, Theater Ceiling Left LED Strip, Theater Ceiling Right LED Strip, Theater Left Wall LED Strip, Theater Right Wall LED Strip].wait (0ms)
+404ms ║║Waiting for 2000ms
+2412ms ║║Skipped execution of physical command [Island Left LED Strip].on([]) because it would make no change to the device. (5ms)
+2413ms ║║Executed [Island Left LED Strip].on (7ms)
+2419ms ║║Skipped execution of physical command [Island Right LED Strip].on([]) because it would make no change to the device. (3ms)
+2420ms ║║Executed [Island Right LED Strip].on (5ms)
+2426ms ║║Skipped execution of physical command [Theater Back Wall LED Strip].on([]) because it would make no change to the device. (3ms)
+2427ms ║║Executed [Theater Back Wall LED Strip].on (5ms)
+2433ms ║║Skipped execution of physical command [Theater Ceiling Left LED Strip].on([]) because it would make no change to the device. (3ms)
+2434ms ║║Executed [Theater Ceiling Left LED Strip].on (5ms)
+2440ms ║║Skipped execution of physical command [Theater Ceiling Right LED Strip].on([]) because it would make no change to the device. (3ms)
+2441ms ║║Executed [Theater Ceiling Right LED Strip].on (4ms)
+2450ms ║║Skipped execution of physical command [Theater Left Wall LED Strip].on([]) because it would make no change to the device. (5ms)
+2451ms ║║Executed [Theater Left Wall LED Strip].on (7ms)
+2456ms ║║Skipped execution of physical command [Theater Right Wall LED Strip].on([]) because it would make no change to the device. (2ms)
+2457ms ║║Executed [Theater Right Wall LED Strip].on (4ms)
+2473ms ║║Executed physical command [Island Left LED Strip].setLevel([100]) (12ms)
+2474ms ║║Executed [Island Left LED Strip].setLevel (14ms)
+2488ms ║║Executed physical command [Island Right LED Strip].setLevel([100]) (11ms)
+2489ms ║║Executed [Island Right LED Strip].setLevel (13ms)
+2502ms ║║Executed physical command [Theater Back Wall LED Strip].setLevel([100]) (12ms)
+2503ms ║║Executed [Theater Back Wall LED Strip].setLevel (13ms)
+2517ms ║║Executed physical command [Theater Ceiling Left LED Strip].setLevel([100]) (11ms)
+2518ms ║║Executed [Theater Ceiling Left LED Strip].setLevel (14ms)
+2530ms ║║Executed physical command [Theater Ceiling Right LED Strip].setLevel([100]) (11ms)
+2531ms ║║Executed [Theater Ceiling Right LED Strip].setLevel (12ms)
+2547ms ║║Executed physical command [Theater Left Wall LED Strip].setLevel([100]) (14ms)
+2548ms ║║Executed [Theater Left Wall LED Strip].setLevel (16ms)
+2561ms ║║Executed physical command [Theater Right Wall LED Strip].setLevel([100]) (12ms)
+2562ms ║║Executed [Theater Right Wall LED Strip].setLevel (13ms)
+2572ms ║║Executed physical command [Island Left LED Strip].setColor([[hex: #0000FF, hue:67, saturation:100, level:50]]) (6ms)
+2573ms ║║Executed [Island Left LED Strip].setColor (8ms)
+2580ms ║║Executed physical command [Island Right LED Strip].setColor([[hex: #0000FF, hue:67, saturation:100, level:50]]) (6ms)
+2581ms ║║Executed [Island Right LED Strip].setColor (8ms)
+2590ms ║║Executed physical command [Theater Back Wall LED Strip].setColor([[hex: #0000FF, hue:67, saturation:100, level:50]]) (6ms)
+2591ms ║║Executed [Theater Back Wall LED Strip].setColor (8ms)
+2599ms ║║Executed physical command [Theater Ceiling Left LED Strip].setColor([[hex: #0000FF, hue:67, saturation:100, level:50]]) (6ms)
+2600ms ║║Executed [Theater Ceiling Left LED Strip].setColor (8ms)
+2608ms ║║Executed physical command [Theater Ceiling Right LED Strip].setColor([[hex: #0000FF, hue:67, saturation:100, level:50]]) (6ms)
+2610ms ║║Executed [Theater Ceiling Right LED Strip].setColor (8ms)
+2618ms ║║Executed physical command [Theater Left Wall LED Strip].setColor([[hex: #0000FF, hue:67, saturation:100, level:50]]) (7ms)

#2

I believe you need to set Task Cancellation Policy to “Never” on some of the WITH blocks…
(start with the WITH block that contains the first WAIT, and work your way downwards)

This will force the remaining commands to continue onwards…
(even if some condition has changed)


Note: I preformatted pic your giant log so it is easier to read…


Pro Tip:

In this case, it might be possible to shift the GET request to the very last command, thereby bypassing the need to mess around with TCP.


#3

To be honest, I don’t have the free time at the moment to dig thru your logs in detail, but if I put the triggers in chronological order, I do notice a red flag…


1:29:51 PM = [Theater Door].contact = closed
1:33:24 PM = [Theater Door].contact = open
1:33:25 PM = [Theater Door].contact = open
1:33:28 PM = [Theater Door].contact = open
1:33:31 PM = [Theater Door].contact = open
1:33:36 PM = [Theater Door].contact = open
1:33:38 PM = [Janisary].time = 1592854417544
1:33:40 PM = [Theater Door].contact = open
1:33:52 PM = [Janisary].time = 1592854433130
1:34:17 PM = [Theater Door].contact = closed 

If it were me, I would focus on the sextuple triggers before worrying about this piston in particular.
(IE: you do not want 6 copies running simultaneously with TCP set to Never)


#4

Thanks for the advice. I’ve never looked at the Task Cancellation Policy before, I am trying that now. As for the ‘get’ command, it’s essential to be first as it’s notifying my Insteon system to turn on the physical switches so that the lights in question by the next steps will have power to have settings changed on them. Long story short, this is a contact sensor on my theater door, and I want the greeting routine to only trigger if the theater isn’t already in use (as in none of my Harmony Hub routines for the theater are active) otherwise every time someone leaves to go to the bathroom it’s going to trigger the entry sequence.


#5

What would cause it to trigger 6 times? It’s just a smarthings contact sensor and the door opening, not sure how that could cause a 6x trigger?


#6

(I started writing this when there were only two posts).

That’s an interesting one. There seems to be a lot of events for the door opening and only a couple for it closing. Normally SmartThings filters events so that only state changes get through, so even if the device reported open / open / open / open / open / close you’d only see open / close. The device handler would have to choose to override this behaviour.

Another thing is that the ‘changes to open’ trigger is evaluating as true for all the opens. The ‘changes to’ comparison is between the event in the piston and a cached previous value. So if the piston did receive close / open / open / open / open it would normally only consider the first one as a change. The fact it isn’t working like that suggests the previous value isn’t being cached until the piston reaches its end.

What I THINK is happening is …

The door starts as closed and then opens. The ‘if’ evaluates as true and the piston works its way to the ten second wait and then sets a wake up and exits (that is how waits over five seconds work). While the piston is sleeping a new open event comes along and a new instance of the piston starts up. As the piston hasn’t updated its cache the ‘if’ evaluates as true again and repeats the process. When it gets to the ten second wait the previous wake up is cancelled and a new ten second wait starts (this is called the Task Scheduling Policy). Then while that wait is happening another open event arrives and the same thing happens. So until the frequent opens stop occurring the wait is constantly being refreshed. It may be this is perfectly acceptable or indeed desirable behaviour, though I suspect it isn’t.

You might want to set the Task Cancellation Policy to ‘Never Cancel Tasks’ on the middle ‘with’ (the one with the ten second wait in it) so that when door event does eventually get closed, it doesn’t cancel the wake up from the wait and the contact closes and the remaining lights turn on. This could well be the actual problem.

I do feel that all those ‘open’ events are doing you no favours at all though.


#7

Thanks everyone, I have resolved the issue. The issue seemed to be caused by the changing state of the virtual contact sensor. I just set that to change it to open in my existing piston, then created a new piston that said ‘if this sensor changed to open, wait 10 seconds, then set it back to closed.’ That seemed to fix everything.

How do I mark this as resolved again? Sorry haven’t been on here in a long time, stepped away from home automation for about a year :slight_smile:


#8

You can solution the post that was most helpful.
(unfortunately, you can only select one)


#9

Thanks, I appreciate you and orangebucket’s help. I marked my explanation of the solution as the solution since that was the solution, but not sure if this site works with a points system? I truly don’t want to seem ungrateful in any way, just want it to be easy for someone looking for the solution to find it.


#10

We might have guided you a bit, but IMO, you came up with the solution on this one.


“Liking” a post is another way to show appreciation…


#11

Appreciate the feedback and the help!