Lights not dimming after Wait in Piston


#1

1) Give a description of the problem
Piston has a “WAIT” to delay trigger from 100% to 5% (Note - the logs may have a turn off command from an ST button that I use to turn lights off during testing)

2) What is the expected behavior?
I have a piston to turn outdoor lights to 100% on motion or doorbell ring or door open, wait 5 seconds (for testing) and then set level to 5% until next trigger.

3) What is happening/not happening?
Piston sets level to 100% no problem but never switches to 5%. It stays at 100%.

**4) Post a Green Snapshot

**5) Attach any logs

|12/7/2018, 6:15:10 PM +664ms|
|+1ms|╔Received event [Front Multipurpose Sensor].contact = closed with a delay of 965ms|
|+66ms|║RunTime Analysis CS > 13ms > PS > 31ms > PE > 22ms > CE|
|+80ms|║Runtime (39151 bytes) successfully initialized in 31ms (v0.2.0fe.20171109) (78ms)|
|+81ms|║╔Execution stage started|
|+95ms|║║Condition #13 evaluated false (7ms)|
|+102ms|║║Condition #14 evaluated false (6ms)|
|+108ms|║║Comparison (enum) closed changes_to (string) open = false (0ms)|
|+110ms|║║Cancelling condition #16’s schedules…|
|+111ms|║║Condition #16 evaluated false (7ms)|
|+112ms|║║Cancelling condition #12’s schedules…|
|+113ms|║║Condition group #12 evaluated false (state changed) (26ms)|
|+116ms|║╚Execution stage complete. (35ms)|
|+124ms|╚Event processed successfully (124ms)|
|12/7/2018, 6:15:08 PM +20ms|
|+1ms|╔Received event [Front Multipurpose Sensor].contact = open with a delay of 971ms|
|+67ms|║RunTime Analysis CS > 13ms > PS > 31ms > PE > 22ms > CE|
|+77ms|║Runtime (39156 bytes) successfully initialized in 31ms (v0.2.0fe.20171109) (74ms)|
|+78ms|║╔Execution stage started|
|+92ms|║║Condition #13 evaluated false (8ms)|
|+102ms|║║Condition #14 evaluated false (8ms)|
|+107ms|║║Comparison (enum) open changes_to (string) open = true (1ms)|
|+109ms|║║Cancelling condition #16’s schedules…|
|+110ms|║║Condition #16 evaluated true (7ms)|
|+112ms|║║Cancelling condition #12’s schedules…|
|+114ms|║║Condition group #12 evaluated true (state changed) (29ms)|
|+117ms|║║Cancelling statement #15’s schedules…|
|+129ms|║║Skipped execution of physical command [Front Door 1].setLevel([100]) because it would make no change to the device. (7ms)|
|+131ms|║║Executed [Front Door 1].setLevel (8ms)|
|+140ms|║║Skipped execution of physical command [Front Door 2].setLevel([100]) because it would make no change to the device. (5ms)|
|+141ms|║║Executed [Front Door 2].setLevel (8ms)|
|+146ms|║║Executed virtual command [Front Door 1, Front Door 2].wait (0ms)|
|+147ms|║║Requesting a wake up for Fri, Dec 7 2018 @ 6:15:13 PM IST (in 5.0s)|
|+154ms|║╚Execution stage complete. (76ms)|
|+156ms|║Setting up scheduled job for Fri, Dec 7 2018 @ 6:15:13 PM IST (in 4.993s)|
|+176ms|╚Event processed successfully (176ms)|
|12/7/2018, 6:14:56 PM +369ms|
|+1ms|╔Received event [Front Multipurpose Sensor].contact = closed with a delay of 979ms|
|+78ms|║RunTime Analysis CS > 19ms > PS > 34ms > PE > 24ms > CE|
|+90ms|║Runtime (39151 bytes) successfully initialized in 34ms (v0.2.0fe.20171109) (87ms)|
|+91ms|║╔Execution stage started|
|+109ms|║║Condition #13 evaluated false (12ms)|
|+116ms|║║Condition #14 evaluated false (6ms)|
|+122ms|║║Comparison (enum) closed changes_to (string) open = false (0ms)|
|+124ms|║║Cancelling condition #16’s schedules…|
|+125ms|║║Condition #16 evaluated false (8ms)|
|+127ms|║║Cancelling condition #12’s schedules…|
|+128ms|║║Condition group #12 evaluated false (state changed) (32ms)|
|+132ms|║╚Execution stage complete. (41ms)|
|+139ms|╚Event processed successfully (139ms)|
|12/7/2018, 6:14:54 PM +67ms|
|+1ms|╔Received event [Front Multipurpose Sensor].contact = open with a delay of 968ms|
|+71ms|║RunTime Analysis CS > 18ms > PS > 31ms > PE > 21ms > CE|
|+80ms|║Runtime (39156 bytes) successfully initialized in 31ms (v0.2.0fe.20171109) (78ms)|
|+82ms|║╔Execution stage started|
|+97ms|║║Condition #13 evaluated false (9ms)|
|+108ms|║║Condition #14 evaluated false (9ms)|
|+114ms|║║Comparison (enum) open changes_to (string) open = true (1ms)|
|+117ms|║║Cancelling condition #16’s schedules…|
|+118ms|║║Condition #16 evaluated true (9ms)|
|+120ms|║║Cancelling condition #12’s schedules…|
|+121ms|║║Condition group #12 evaluated true (state changed) (34ms)|
|+124ms|║║Cancelling statement #15’s schedules…|
|+144ms|║║Executed physical command [Front Door 1].setLevel([100]) (14ms)|
|+146ms|║║Executed [Front Door 1].setLevel (16ms)|
|+167ms|║║Executed physical command [Front Door 2].setLevel([100]) (18ms)|
|+168ms|║║Executed [Front Door 2].setLevel (21ms)|
|+173ms|║║Executed virtual command [Front Door 1, Front Door 2].wait (1ms)|
|+174ms|║║Requesting a wake up for Fri, Dec 7 2018 @ 6:14:59 PM IST (in 5.0s)|
|+180ms|║╚Execution stage complete. (99ms)|
|+182ms|║Setting up scheduled job for Fri, Dec 7 2018 @ 6:14:59 PM IST (in 4.994s)|
|+202ms|╚Event processed successfully (202ms)|
|12/7/2018, 6:14:35 PM +659ms|
|+2ms|╔Received event [DavesHome].time = 1544206475898 with a delay of -241ms|
|+114ms|║RunTime Analysis CS > 24ms > PS > 31ms > PE > 60ms > CE|
|+124ms|║Runtime (39148 bytes) successfully initialized in 31ms (v0.2.0fe.20171109) (117ms)|
|+126ms|║╔Execution stage started|
|+128ms|║╚Execution stage complete. (3ms)|
|+153ms|╚Event processed successfully (154ms)|
|12/7/2018, 6:14:34 PM +154ms|
|+1ms|╔Received event [Front Multipurpose Sensor].contact = closed with a delay of 968ms|
|+77ms|║RunTime Analysis CS > 20ms > PS > 36ms > PE > 21ms > CE|
|+88ms|║Runtime (39151 bytes) successfully initialized in 36ms (v0.2.0fe.20171109) (86ms)|
|+90ms|║╔Execution stage started|
|+105ms|║║Condition #13 evaluated false (8ms)|
|+113ms|║║Condition #14 evaluated false (6ms)|
|+118ms|║║Comparison (enum) closed changes_to (string) open = false (1ms)|
|+121ms|║║Cancelling condition #16’s schedules…|
|+122ms|║║Condition #16 evaluated false (7ms)|
|+123ms|║║Cancelling condition #12’s schedules…|
|+124ms|║║Condition group #12 evaluated false (state changed) (28ms)|
|+128ms|║╚Execution stage complete. (39ms)|
|+135ms|╚Event processed successfully (134ms)|
|12/7/2018, 6:14:30 PM +743ms|
|+1ms|╔Received event [Front Multipurpose Sensor].contact = open with a delay of 965ms|
|+60ms|║RunTime Analysis CS > 13ms > PS > 28ms > PE > 18ms > CE|
|+71ms|║Runtime (39156 bytes) successfully initialized in 28ms (v0.2.0fe.20171109) (69ms)|
|+72ms|║╔Execution stage started|
|+86ms|║║Condition #13 evaluated false (7ms)|
|+94ms|║║Condition #14 evaluated false (7ms)|
|+99ms|║║Comparison (enum) open changes_to (string) open = true (1ms)|
|+102ms|║║Cancelling condition #16’s schedules…|
|+103ms|║║Condition #16 evaluated true (7ms)|
|+104ms|║║Cancelling condition #12’s schedules…|
|+105ms|║║Condition group #12 evaluated true (state changed) (27ms)|
|+108ms|║║Cancelling statement #15’s schedules…|
|+130ms|║║Executed physical command [Front Door 1].setLevel([100]) (14ms)|
|+132ms|║║Executed [Front Door 1].setLevel (17ms)|
|+147ms|║║Executed physical command [Front Door 2].setLevel([100]) (12ms)|
|+148ms|║║Executed [Front Door 2].setLevel (14ms)|
|+153ms|║║Executed virtual command [Front Door 1, Front Door 2].wait (0ms)|
|+154ms|║║Requesting a wake up for Fri, Dec 7 2018 @ 6:14:35 PM IST (in 5.0s)|
|+161ms|║╚Execution stage complete. (88ms)|
|+163ms|║Setting up scheduled job for Fri, Dec 7 2018 @ 6:14:35 PM IST (in 4.993s)|
|+189ms|╚Event processed successfully (183ms)|
|12/7/2018, 6:14:23 PM +994ms|
|+1ms|╔Received event [Front Multipurpose Sensor].contact = closed with a delay of 979ms|
|+87ms|║RunTime Analysis CS > 21ms > PS > 35ms > PE > 31ms > CE|
|+99ms|║Runtime (39151 bytes) successfully initialized in 35ms (v0.2.0fe.20171109) (97ms)|
|+100ms|║╔Execution stage started|
|+115ms|║║Condition #13 evaluated false (7ms)|
|+122ms|║║Condition #14 evaluated false (6ms)|
|+127ms|║║Comparison (enum) closed changes_to (string) open = false (1ms)|
|+130ms|║║Cancelling condition #16’s schedules…|
|+131ms|║║Condition #16 evaluated false (8ms)|
|+132ms|║║Cancelling condition #12’s schedules…|
|+134ms|║║Condition group #12 evaluated false (state changed) (27ms)|
|+136ms|║╚Execution stage complete. (36ms)|
|+144ms|╚Event processed successfully (144ms)|
|12/7/2018, 6:14:22 PM +936ms|
|+3ms|╔Received event [DavesHome].time = 1544206462693 with a delay of 240ms|
|+131ms|║RunTime Analysis CS > 37ms > PS > 40ms > PE > 56ms > CE|
|+143ms|║Runtime (39140 bytes) successfully initialized in 40ms (v0.2.0fe.20171109) (135ms)|
|+144ms|║╔Execution stage started|
|+272ms|║║Executed physical command [Front Door 1].setLevel([5]) (20ms)|
|+273ms|║║Executed [Front Door 1].setLevel (23ms)|
|+292ms|║║Executed physical command [Front Door 2].setLevel([5]) (15ms)|
|+293ms|║║Executed [Front Door 2].setLevel (18ms)|
|+298ms|║║Condition group #17 evaluated true (state did not change) (1ms)|
|+315ms|║╚Execution stage complete. (171ms)|
|+323ms|╚Event processed successfully (323ms)|
|12/7/2018, 6:14:17 PM +506ms|
|+2ms|╔Received event [Front Multipurpose Sensor].contact = open with a delay of 972ms|
|+70ms|║RunTime Analysis CS > 16ms > PS > 36ms > PE > 18ms > CE|
|+79ms|║Runtime (39156 bytes) successfully initialized in 36ms (v0.2.0fe.20171109) (76ms)|
|+81ms|║╔Execution stage started|
|+94ms|║║Condition #13 evaluated false (8ms)|
|+102ms|║║Condition #14 evaluated false (7ms)|
|+107ms|║║Comparison (enum) open changes_to (string) open = true (1ms)|
|+109ms|║║Cancelling condition #16’s schedules…|
|+110ms|║║Condition #16 evaluated true (6ms)|
|+111ms|║║Cancelling condition #12’s schedules…|
|+112ms|║║Condition group #12 evaluated true (state changed) (26ms)|
|+115ms|║║Cancelling statement #15’s schedules…|
|+161ms|║║Executed physical command [Front Door 1].setLevel([100]) (40ms)|
|+162ms|║║Executed [Front Door 1].setLevel (42ms)|
|+180ms|║║Executed physical command [Front Door 2].setLevel([100]) (15ms)|
|+181ms|║║Executed [Front Door 2].setLevel (17ms)|
|+185ms|║║Executed virtual command [Front Door 1, Front Door 2].wait (1ms)|
|+187ms|║║Requesting a wake up for Fri, Dec 7 2018 @ 6:14:22 PM IST (in 5.0s)|
|+193ms|║╚Execution stage complete. (113ms)|
|+196ms|║Setting up scheduled job for Fri, Dec 7 2018 @ 6:14:22 PM IST (in 4.993s)|
|+213ms|╚Event processed successfully (213ms)|


#2

Add NEVER CANCEL to Piston Cancellation Policy at line 24 and try…
and change 5 seconds to 15 seconds just in case (for testing purposes)


#3

Sorry but I havent a clue what “NEVER CANCEL” or “Piston Cancellation Policy” is…


#4

Go into Edit mode and click on the With in Line24. Click on the gear looking icon by the save button and change the task cancellation policy to Never Cancel.


#5

Wow never saw any of that…

Will read up on those options.

I have a temporary solution changing the contact sensor from changes to open to changes and that worked.

Its not ideal as closing the door triggers as well as opening.

Cheers