1) Give a description of the problem
Task following Wait does not happen.
2) What is the expected behavior?
Purpose of the piston: To send SMS message when motion sensor outside front door is tripped, unless I just opened that front door (to reduce false alarms if I just walked outside) or if my garage door is open (to reduce false alarms if I’m outside working in the lawn).
I would like this alert triggered only up to once per 5 minutes, so I added a Pause Piston, Wait 5 minutes and Resume Piston.
3) What is happening/not happening?
The Piston is not Resuming after 5 minute Wait. I have tried adding the “Never Cancel Task” to the with statement, but that has not helped. When I use Trace, the timer next to wait stays blue while it counts down from 5:00 minutes, then turns red while it just keeps counting up until I force the piston to resume.
4) Post a Green Snapshot of the piston
5) Attach any logs (From ST IDE and by turning logging level to Full)
1/22/2018, 5:09:51 PM +205ms
+1ms ╔Received event [Front Door Motion Sensor].motion = active with a delay of 784ms
+344ms ║RunTime Analysis CS > 17ms > PS > 295ms > PE > 32ms > CE
+346ms ║Runtime (42031 bytes) successfully initialized in 295ms (v0.2.102.20180116) (344ms)
+347ms ║╔Execution stage started
+355ms ║║Comparison (enum) active changes_to (string) active = true (1ms)
+357ms ║║Cancelling condition #4’s schedules…
+357ms ║║Condition #4 evaluated true (5ms)
+524ms ║║Comparison (enum) closed did_not_change = true (160ms)
+525ms ║║Condition #5 evaluated true (167ms)
+533ms ║║Comparison (enum) closed is (string) closed = true (1ms)
+535ms ║║Condition #6 evaluated true (9ms)
+536ms ║║Cancelling condition #1’s schedules…
+536ms ║║Condition group #1 evaluated true (state changed) (184ms)
+539ms ║║Cancelling statement #2’s schedules…
+554ms ║║Executed virtual command [Kitchen, TV Light].sendSMSNotification (8ms)
+1749ms ║║Executed virtual command [Kitchen, TV Light].lifxPulse (1185ms)
+1750ms ║║Waiting for 400ms
+2635ms ║║Executed virtual command [Kitchen, TV Light].pausePiston (482ms)
+2638ms ║║Executed virtual command [Kitchen, TV Light].wait (0ms)
+2639ms ║║Requesting a wake up for Mon, Jan 22 2018 @ 5:14:53 PM CST (in 300.0s)
+2644ms ║╚Execution stage complete. (2296ms)
+2645ms ║Setting up scheduled job for Mon, Jan 22 2018 @ 5:14:53 PM CST (in 299.995s)
+2651ms ╚Event processed successfully (2651ms)
1/22/2018, 5:09:53 PM +396ms
+297ms ╔Stopping piston…
+407ms ╚Piston successfully stopped (110ms)
1/22/2018, 5:09:25 PM +325ms
+1ms ╔Received event [Front Door Motion Sensor].motion = inactive with a delay of 770ms
+356ms ║RunTime Analysis CS > 11ms > PS > 318ms > PE > 27ms > CE
+359ms ║Runtime (42031 bytes) successfully initialized in 318ms (v0.2.102.20180116) (357ms)
+360ms ║╔Execution stage started
+368ms ║║Comparison (enum) inactive changes_to (string) active = false (1ms)
+369ms ║║Condition #4 evaluated false (4ms)
+370ms ║║Condition group #1 evaluated false (state did not change) (6ms)
+372ms ║╚Execution stage complete. (13ms)
+373ms ╚Event processed successfully (373ms)
1/22/2018, 5:09:19 PM +901ms
+1ms ╔Received event [Home].execute = recovery with a delay of 63ms
+153ms ║RunTime Analysis CS > 28ms > PS > 82ms > PE > 43ms > CE
+155ms ║Runtime (42009 bytes) successfully initialized in 82ms (v0.2.102.20180116) (154ms)
+156ms ║╔Execution stage started
+168ms ║║Condition #4 evaluated false (7ms)
+169ms ║║Condition group #1 evaluated false (state did not change) (8ms)
+171ms ║╚Execution stage complete. (15ms)
+173ms ╚Event processed successfully (172ms)
1/22/2018, 5:09:19 PM +378ms
+1ms ╔Starting piston… (v0.2.102.20180116)
+193ms ║╔Subscribing to devices…
+215ms ║║Subscribing to Front Door Motion Sensor.motion…
+336ms ║║Subscribing to Front Entry Door…
+337ms ║║Subscribing to Garage Door (Vehicle Door)…
+338ms ║║Subscribing to Kitchen…
+339ms ║║Subscribing to TV Light…
+339ms ║╚Finished subscribing (150ms)
+366ms ║Cancelling condition #4’s schedules…
+395ms ║Comparison (enum) closed did_not_change = true (21ms)
+402ms ║Comparison (enum) closed is (string) closed = true (1ms)
+403ms ║Cancelling condition #1’s schedules…
+417ms ╚Piston successfully started (416ms)