1) Give a description of the problem
I want my piston to repeat a sensor open reminder until closed for multiple sensors and also have an incremental counter for an SMS notification in the form of minutes or hours. Currently I’m having problems with 1) the piston running simultaneously for multiple sensors and 2) the counter not incrementing properly.
2) What is the expected behaviour?
I would like each of the sensors in my list to be able to keep track of
3) What is happening/not happening?
If a sensor is opened then another newer sensor is opened the previous one in the piston no longer runs. I have tried a for each statement with no improvement. The counter is not incrementing like it should by adding a number (e.g.; 1 minute) in the do while loop.
**4) Post a Green Snapshot of the piston![image|45x37]
5) Attach logs after turning logging level to Full
3/27/2020, 9:29:11 AM +179ms
+1ms ╔Received event [Home].time = 1585315752489 with a delay of -1310ms
+115ms ║RunTime Analysis CS > 36ms > PS > 46ms > PE > 33ms > CE
+118ms ║Runtime (42916 bytes) successfully initialized in 46ms (v0.3.110.20191009) (115ms)
+119ms ║╔Execution stage started
+138ms ║║Cancelling statement #15’s schedules…
+145ms ║║Calculating (integer) 0 + (integer) 1 >> (integer) 1
+149ms ║║Executed virtual command [Kitchen Window].setVariable (1ms)
+156ms ║║Calculating (string) Kitchen Window + (string) stayed open for >> (string) Kitchen Window stayed open for
+159ms ║║Calculating (string) Kitchen Window stayed open for + (string) 1 >> (string) Kitchen Window stayed open for 1
+161ms ║║Calculating (string) Kitchen Window stayed open for 1 + (string) minute(s) >> (string) Kitchen Window stayed open for 1 minute(s)
+241ms ║║Executed virtual command [Kitchen Window].sendSMSNotification (74ms)
+249ms ║║Comparison (enum) open is (string) open = true (2ms)
+251ms ║║Condition #14 evaluated true (7ms)
+252ms ║║Condition group #13 evaluated true (state did not change) (9ms)
+254ms ║║Cancelling statement #16’s schedules…
+258ms ║║Executed virtual command [Kitchen Window].wait (1ms)
+259ms ║║Requesting a wake up for Fri, Mar 27 2020 @ 9:30:11 AM EDT (in 60.0s)
+264ms ║╚Execution stage complete. (146ms)
+266ms ║Setting up scheduled job for Fri, Mar 27 2020 @ 9:30:11 AM EDT (in 59.995s)
+300ms ╚Event processed successfully (300ms)
3/27/2020, 9:28:12 AM +148ms
+1ms ╔Received event [Home].time = 1585315693490 with a delay of -1342ms
+101ms ║RunTime Analysis CS > 25ms > PS > 43ms > PE > 33ms > CE
+105ms ║Runtime (42916 bytes) successfully initialized in 43ms (v0.3.110.20191009) (103ms)
+107ms ║╔Execution stage started
+131ms ║║Cancelling statement #15’s schedules…
+143ms ║║Calculating (integer) 0 + (integer) 1 >> (integer) 1
+148ms ║║Executed virtual command [Kitchen Window].setVariable (1ms)
+158ms ║║Calculating (string) Kitchen Window + (string) stayed open for >> (string) Kitchen Window stayed open for
+162ms ║║Calculating (string) Kitchen Window stayed open for + (string) 1 >> (string) Kitchen Window stayed open for 1
+165ms ║║Calculating (string) Kitchen Window stayed open for 1 + (string) minute(s) >> (string) Kitchen Window stayed open for 1 minute(s)
+305ms ║║Executed virtual command [Kitchen Window].sendSMSNotification (134ms)
+321ms ║║Comparison (enum) open is (string) open = true (3ms)
+324ms ║║Condition #14 evaluated true (15ms)
+325ms ║║Condition group #13 evaluated true (state did not change) (18ms)
+330ms ║║Cancelling statement #16’s schedules…
+337ms ║║Executed virtual command [Kitchen Window].wait (1ms)
+340ms ║║Requesting a wake up for Fri, Mar 27 2020 @ 9:29:12 AM EDT (in 60.0s)
+348ms ║╚Execution stage complete. (242ms)
+350ms ║Setting up scheduled job for Fri, Mar 27 2020 @ 9:29:12 AM EDT (in 59.992s)
+368ms ╚Event processed successfully (368ms)
3/27/2020, 9:27:13 AM +289ms
+0ms ╔Received event [Home].time = 1585315634171 with a delay of -883ms
+120ms ║RunTime Analysis CS > 32ms > PS > 57ms > PE > 32ms > CE
+122ms ║Runtime (42915 bytes) successfully initialized in 57ms (v0.3.110.20191009) (121ms)
+123ms ║╔Execution stage started
+144ms ║║Cancelling statement #15’s schedules…
+152ms ║║Calculating (integer) 0 + (integer) 1 >> (integer) 1
+157ms ║║Executed virtual command [Kitchen Window].setVariable (1ms)
+164ms ║║Calculating (string) Kitchen Window + (string) stayed open for >> (string) Kitchen Window stayed open for
+167ms ║║Calculating (string) Kitchen Window stayed open for + (string) 1 >> (string) Kitchen Window stayed open for 1
+170ms ║║Calculating (string) Kitchen Window stayed open for 1 + (string) minute(s) >> (string) Kitchen Window stayed open for 1 minute(s)
+183ms ║║Executed virtual command [Kitchen Window].sendSMSNotification (8ms)
+191ms ║║Comparison (enum) open is (string) open = true (1ms)
+192ms ║║Condition #14 evaluated true (7ms)
+193ms ║║Condition group #13 evaluated true (state did not change) (9ms)
+195ms ║║Cancelling statement #16’s schedules…
+199ms ║║Executed virtual command [Kitchen Window].wait (1ms)
+201ms ║║Requesting a wake up for Fri, Mar 27 2020 @ 9:28:13 AM EDT (in 60.0s)
+207ms ║╚Execution stage complete. (84ms)
+208ms ║Setting up scheduled job for Fri, Mar 27 2020 @ 9:28:13 AM EDT (in 59.993s)
+217ms ╚Event processed successfully (218ms)
3/27/2020, 9:26:13 AM +990ms
+2ms ╔Received event [Kitchen Window].contact = open with a delay of 131ms
+91ms ║RunTime Analysis CS > 21ms > PS > 38ms > PE > 32ms > CE
+93ms ║Runtime (42919 bytes) successfully initialized in 38ms (v0.3.110.20191009) (91ms)
+94ms ║╔Execution stage started
+143ms ║║Comparison (enum) closed is (string) open = false (2ms)
+145ms ║║Comparison (enum) closed is (string) open = false (1ms)
+147ms ║║Comparison (enum) closed is (string) open = false (1ms)
+149ms ║║Comparison (enum) closed is (string) open = false (1ms)
+150ms ║║Comparison (enum) closed is (string) open = false (1ms)
+152ms ║║Comparison (enum) open is (string) open = true (1ms)
+155ms ║║Condition #11 evaluated true (57ms)
+156ms ║║Condition group #10 evaluated true (state did not change) (58ms)
+170ms ║║Comparison (enum) open is (string) open = true (1ms)
+171ms ║║Condition #14 evaluated true (5ms)
+172ms ║║Condition group #13 evaluated true (state did not change) (7ms)
+174ms ║║Cancelling statement #16’s schedules…
+179ms ║║Executed virtual command [Kitchen Window].wait (1ms)
+180ms ║║Requesting a wake up for Fri, Mar 27 2020 @ 9:27:14 AM EDT (in 60.0s)
+185ms ║╚Execution stage complete. (91ms)
+186ms ║Setting up scheduled job for Fri, Mar 27 2020 @ 9:27:14 AM EDT (in 59.995s)
+196ms ╚Event processed successfully (196ms)
3/27/2020, 9:25:52 AM +568ms
+1ms ╔Received event [Office Window].contact = open with a delay of 159ms
+95ms ║RunTime Analysis CS > 21ms > PS > 38ms > PE > 37ms > CE
+98ms ║Runtime (42927 bytes) successfully initialized in 38ms (v0.3.110.20191009) (97ms)
+99ms ║╔Execution stage started
+148ms ║║Comparison (enum) closed is (string) open = false (1ms)
+150ms ║║Comparison (enum) closed is (string) open = false (1ms)
+153ms ║║Comparison (enum) closed is (string) open = false (1ms)
+155ms ║║Comparison (enum) closed is (string) open = false (1ms)
+157ms ║║Comparison (enum) closed is (string) open = false (2ms)
+159ms ║║Comparison (enum) closed is (string) open = false (1ms)
+161ms ║║Comparison (enum) closed is (string) open = false (1ms)
+163ms ║║Comparison (enum) closed is (string) open = false (1ms)
+165ms ║║Comparison (enum) open is (string) open = true (1ms)
+168ms ║║Cancelling condition #11’s schedules…
+169ms ║║Condition #11 evaluated true (66ms)
+170ms ║║Cancelling condition #10’s schedules…
+171ms ║║Condition group #10 evaluated true (state changed) (68ms)
+186ms ║║Comparison (enum) open is (string) open = true (1ms)
+187ms ║║Cancelling condition #14’s schedules…
+188ms ║║Condition #14 evaluated true (7ms)
+189ms ║║Cancelling condition #13’s schedules…
+190ms ║║Condition group #13 evaluated true (state changed) (9ms)
+192ms ║║Cancelling statement #16’s schedules…
+197ms ║║Executed virtual command [Office Window].wait (0ms)
+199ms ║║Requesting a wake up for Fri, Mar 27 2020 @ 9:26:52 AM EDT (in 60.0s)
+204ms ║╚Execution stage complete. (105ms)
+205ms ║Setting up scheduled job for Fri, Mar 27 2020 @ 9:26:52 AM EDT (in 59.994s)
+213ms ╚Event processed successfully (214ms)
3/27/2020, 9:25:48 AM +939ms
+1ms ╔Received event [Office Window].contact = closed with a delay of 121ms
+111ms ║RunTime Analysis CS > 21ms > PS > 38ms > PE > 52ms > CE
+113ms ║Runtime (42923 bytes) successfully initialized in 38ms (v0.3.110.20191009) (111ms)
+114ms ║╔Execution stage started
+172ms ║║Comparison (enum) closed is (string) open = false (1ms)
+174ms ║║Comparison (enum) closed is (string) open = false (1ms)
+177ms ║║Comparison (enum) closed is (string) open = false (1ms)
+179ms ║║Comparison (enum) closed is (string) open = false (1ms)
+181ms ║║Comparison (enum) closed is (string) open = false (1ms)
+183ms ║║Comparison (enum) closed is (string) open = false (1ms)
+186ms ║║Comparison (enum) closed is (string) open = false (1ms)
+188ms ║║Comparison (enum) closed is (string) open = false (1ms)
+190ms ║║Comparison (enum) closed is (string) open = false (1ms)
+192ms ║║Comparison (enum) closed is (string) open = false (1ms)
+195ms ║║Comparison (enum) closed is (string) open = false (1ms)
+198ms ║║Cancelling condition #11’s schedules…
+199ms ║║Condition #11 evaluated false (81ms)
+200ms ║║Cancelling condition #10’s schedules…
+201ms ║║Condition group #10 evaluated false (state changed) (82ms)
+203ms ║╚Execution stage complete. (88ms)
+204ms ╚Event processed successfully (204ms)
3/27/2020, 9:25:44 AM +409ms
+1ms ╔Starting piston… (v0.3.110.20191009)
+228ms ║╔Subscribing to devices…
+256ms ║║Subscribing to Basement Window Northeast.contact…
+273ms ║║Subscribing to Basement Window Northwest.contact…
+290ms ║║Subscribing to Basement Window Southeast.contact…
+306ms ║║Subscribing to Garage Window Northeast.contact…
+322ms ║║Subscribing to Garage Window Northwest.contact…
+338ms ║║Subscribing to Kitchen Window.contact…
+354ms ║║Subscribing to Living Room Window Northeast.contact…
+370ms ║║Subscribing to Living Room Window Northwest.contact…
+387ms ║║Subscribing to Office Window.contact…
+404ms ║║Subscribing to Playroom Window Northeast.contact…
+421ms ║║Subscribing to Playroom Window Northwest.contact…
+601ms ║╚Finished subscribing (382ms)
+678ms ║Comparison (enum) closed is (string) open = false (1ms)
+680ms ║Comparison (enum) closed is (string) open = false (1ms)
+683ms ║Comparison (enum) closed is (string) open = false (2ms)
+685ms ║Comparison (enum) closed is (string) open = false (1ms)
+688ms ║Comparison (enum) closed is (string) open = false (2ms)
+690ms ║Comparison (enum) closed is (string) open = false (1ms)
+693ms ║Comparison (enum) closed is (string) open = false (2ms)
+695ms ║Comparison (enum) closed is (string) open = false (1ms)
+698ms ║Comparison (enum) open is (string) open = true (1ms)
+717ms ║Comparison (string) Home is (string) open = false (2ms)
+719ms ║Cancelling condition #14’s schedules…
+720ms ║Cancelling condition #13’s schedules…
+735ms ╚Piston successfully started (735ms)