1) Give a description of the problem
Trying to figure out why some of my pistons exit before they complete.
2) What is the expected behavior?
I have a motion sensor that I only want to notify me upon the first instance of motion (changes to active) and wait 5 minutes before they notify me if triggered again.
3) What is happening/not happening?
I determined that the piston is being cancelled when the motion sensor changes from active to inactive. This was working as expected in core, but in webCore I can see the piston exit early. In the example, I can see the Do loop start to execute and the first 2 minute wait begins, but after several seconds the piston is terminated, I’ve tried setting the Task Cancellation Policy to Never for both the IF and With statements with no change in behavior. I thought I understood triggers vs conditions, but maybe not??? It acts as though the IF statement is a condition that’s changing and causing the piston to terminate?
**4) Post a Green Snapshot of the piston![image|45x37]
5) Attach any logs (From ST IDE and by turning logging level to Full)
(1/17/2018, 10:59:24 PM +228ms
+2ms ╔Received event [Front Porch Motion Sensor].motion = inactive with a delay of 279ms
+84ms ║RunTime Analysis CS > 16ms > PS > 49ms > PE > 19ms > CE
+86ms ║Runtime (37295 bytes) successfully initialized in 49ms (v0.2.102.20180116) (83ms)
+87ms ║╔Execution stage started
+96ms ║║Comparison (enum) inactive changes_to (string) active = false (0ms)
+97ms ║║Cancelling condition #6’s schedules…
+98ms ║║Condition #6 evaluated false (6ms)
+99ms ║║Cancelling condition #1’s schedules…
+99ms ║║Condition group #1 evaluated false (state changed) (7ms)
+102ms ║╚Execution stage complete. (15ms)
+104ms ║Setting up scheduled job for Wed, Jan 17 2018 @ 11:01:06 PM MST (in 102.224s)
+149ms ╚Event processed successfully (149ms)
1/17/2018, 10:59:06 PM +467ms
+1ms ╔Received event [Front Porch Motion Sensor].motion = active with a delay of 269ms
+64ms ║RunTime Analysis CS > 13ms > PS > 36ms > PE > 14ms > CE
+66ms ║Runtime (37300 bytes) successfully initialized in 36ms (v0.2.102.20180116) (64ms)
+67ms ║╔Execution stage started
+76ms ║║Comparison (enum) active changes_to (string) active = true (1ms)
+77ms ║║Cancelling condition #6’s schedules…
+78ms ║║Condition #6 evaluated true (6ms)
+79ms ║║Cancelling condition #1’s schedules…
+80ms ║║Condition group #1 evaluated true (state changed) (8ms)
+82ms ║║Cancelling statement #2’s schedules…
+87ms ║║Executed virtual command [Family Room - Lamp 2].wait (1ms)
+88ms ║║Requesting a wake up for Wed, Jan 17 2018 @ 11:01:06 PM MST (in 120.0s)
+92ms ║╚Execution stage complete. (25ms)
+94ms ║Setting up scheduled job for Wed, Jan 17 2018 @ 11:01:06 PM MST (in 119.995s)
+102ms ╚Event processed successfully (102ms))