To start, i was looking to randomize the SMS message sent, that was what the above was. Then I was going to try to randomize the message sent with the random holidays listed. Below is piston with the random messages & logs.
0/5/2017, 3:01:18 PM +336ms
+1ms ╔Received event [Home].test = 1507240878326 with a delay of 9ms
+194ms ║RunTime Analysis CS > 21ms > PS > 58ms > PE > 113ms > CE
+209ms ║Runtime (47008 bytes) successfully initialized in 58ms (v0.2.0ec.20170927) (207ms)
+211ms ║╔Execution stage started
+253ms ║║Comparison (string) test is (string) test = true (2ms)
+255ms ║║Cancelling condition #2’s schedules…
+256ms ║║Condition #2 evaluated true (9ms)
+258ms ║║Cancelling condition #1’s schedules…
+259ms ║║Condition group #1 evaluated true (state changed) (12ms)
+277ms ║║Calculating (integer) 6 - (integer) 1 >> (integer) 5
+291ms ║║Cancelling statement #27’s schedules…
+317ms ║║Executed virtual command setVariable (6ms)
+327ms ║║Executed virtual command setVariable (3ms)
+339ms ║║Calculating (integer) 6 - (integer) 1 >> (integer) 5
+348ms ║║Cancelling statement #27’s schedules…
+360ms ║║Executed virtual command setVariable (4ms)
+370ms ║║Executed virtual command setVariable (3ms)
+381ms ║║Calculating (integer) 6 - (integer) 1 >> (integer) 5
+389ms ║║Cancelling statement #27’s schedules…
+401ms ║║Executed virtual command setVariable (3ms)
+411ms ║║Executed virtual command setVariable (4ms)
+425ms ║║Calculating (integer) 6 - (integer) 1 >> (integer) 5
+433ms ║║Cancelling statement #27’s schedules…
+446ms ║║Executed virtual command setVariable (5ms)
+456ms ║║Executed virtual command setVariable (4ms)
+470ms ║║Calculating (integer) 6 - (integer) 1 >> (integer) 5
+479ms ║║Cancelling statement #27’s schedules…
+492ms ║║Executed virtual command setVariable (4ms)
+504ms ║║Executed virtual command setVariable (5ms)
+519ms ║║Calculating (integer) 6 - (integer) 1 >> (integer) 5
+527ms ║║Cancelling statement #27’s schedules…
+540ms ║║Executed virtual command setVariable (5ms)
+550ms ║║Executed virtual command setVariable (3ms)
+564ms ║╚Execution stage complete. (354ms)
+569ms ║Setting up scheduled job for Fri, Oct 6 2017 @ 12:00:00 PM PDT (in 75521.099s)
+591ms ╚Event processed successfully (591ms)
Here are the logs of the event running but no SMS is sent.
10/5/2017, 3:06:59 PM +182ms
+1ms ╔Received event [Home].time = 1507241220000 with a delay of -819ms
+186ms ║RunTime Analysis CS > 18ms > PS > 59ms > PE > 110ms > CE
+201ms ║Runtime (47009 bytes) successfully initialized in 59ms (v0.2.0ec.20170927) (199ms)
+202ms ║╔Execution stage started
+237ms ║║Calculating (integer) 6 - (integer) 1 >> (integer) 5
+263ms ║║Comparison (datetime) 1514790000000 is_greater_than (datetime) 1507241219439 = true (2ms)
+265ms ║║Cancelling condition #19’s schedules…
+267ms ║║Condition #19 evaluated true (18ms)
+268ms ║║Cancelling condition #11’s schedules…
+269ms ║║Condition group #11 evaluated true (state changed) (22ms)
+273ms ║║Cancelling statement #12’s schedules…
+289ms ║║Calculating (datetime) 1514790000000 - (datetime) 1507241219465 >> (datetime) 7548780535
+297ms ║║Calculating (decimal) 7.548780535E9 / (decimal) 8.64E7 >> (decimal) 87.37014508101852
+304ms ║║Executed virtual command setVariable (4ms)
+318ms ║║Comparison (integer) 9999 is_greater_than (integer) 87 = true (2ms)
+321ms ║║Condition #30 evaluated true (11ms)
+322ms ║║Condition group #14 evaluated true (state did not change) (13ms)
+326ms ║║Cancelling statement #15’s schedules…
+333ms ║║Executed virtual command setVariable (3ms)
+339ms ║║Executed virtual command setVariable (2ms)
+358ms ║║Calculating (integer) 6 - (integer) 1 >> (integer) 5
+383ms ║║Comparison (datetime) 1530687600000 is_greater_than (datetime) 1507241219559 = true (3ms)
+385ms ║║Condition #19 evaluated true (17ms)
+387ms ║║Condition group #11 evaluated true (state did not change) (19ms)
+391ms ║║Cancelling statement #12’s schedules…
+407ms ║║Calculating (datetime) 1530687600000 - (datetime) 1507241219582 >> (datetime) 23446380418
+414ms ║║Calculating (decimal) 2.3446380418E10 / (decimal) 8.64E7 >> (decimal) 271.37014372685184
+422ms ║║Executed virtual command setVariable (3ms)
+433ms ║║Comparison (integer) 87 is_greater_than (integer) 271 = false (2ms)
+435ms ║║Cancelling condition #30’s schedules…
+436ms ║║Condition #30 evaluated false (9ms)
+438ms ║║Cancelling condition #14’s schedules…
+439ms ║║Condition group #14 evaluated false (state changed) (13ms)
+457ms ║║Calculating (integer) 6 - (integer) 1 >> (integer) 5
+482ms ║║Comparison (datetime) 1509433200000 is_greater_than (datetime) 1507241219658 = true (3ms)
+484ms ║║Condition #19 evaluated true (16ms)
+486ms ║║Condition group #11 evaluated true (state did not change) (18ms)
+490ms ║║Cancelling statement #12’s schedules…
+505ms ║║Calculating (datetime) 1509433200000 - (datetime) 1507241219681 >> (datetime) 2191980319
+513ms ║║Calculating (decimal) 2.191980319E9 / (decimal) 8.64E7 >> (decimal) 25.37014258101852
+520ms ║║Executed virtual command setVariable (3ms)
+531ms ║║Comparison (integer) 87 is_greater_than (integer) 25 = true (2ms)
+534ms ║║Cancelling condition #30’s schedules…
+535ms ║║Condition #30 evaluated true (10ms)
+537ms ║║Cancelling condition #14’s schedules…
+538ms ║║Condition group #14 evaluated true (state changed) (12ms)
+542ms ║║Cancelling statement #15’s schedules…
+549ms ║║Executed virtual command setVariable (3ms)
+555ms ║║Executed virtual command setVariable (1ms)
+573ms ║║Calculating (integer) 6 - (integer) 1 >> (integer) 5
+599ms ║║Comparison (datetime) 1514185200000 is_greater_than (datetime) 1507241219775 = true (3ms)
+601ms ║║Condition #19 evaluated true (16ms)
+603ms ║║Condition group #11 evaluated true (state did not change) (18ms)
+607ms ║║Cancelling statement #12’s schedules…
+622ms ║║Calculating (datetime) 1514185200000 - (datetime) 1507241219798 >> (datetime) 6943980202
+630ms ║║Calculating (decimal) 6.943980202E9 / (decimal) 8.64E7 >> (decimal) 80.37014122685186
+637ms ║║Executed virtual command setVariable (2ms)
+648ms ║║Comparison (integer) 25 is_greater_than (integer) 80 = false (2ms)
+650ms ║║Cancelling condition #30’s schedules…
+652ms ║║Condition #30 evaluated false (9ms)
+653ms ║║Cancelling condition #14’s schedules…
+654ms ║║Condition group #14 evaluated false (state changed) (13ms)
+672ms ║║Calculating (integer) 6 - (integer) 1 >> (integer) 5
+697ms ║║Comparison (datetime) 1518332400000 is_greater_than (datetime) 1507241219873 = true (2ms)
+699ms ║║Condition #19 evaluated true (17ms)
+701ms ║║Condition group #11 evaluated true (state did not change) (18ms)
+705ms ║║Cancelling statement #12’s schedules…
+720ms ║║Calculating (datetime) 1518332400000 - (datetime) 1507241219896 >> (datetime) 11091180104
+728ms ║║Calculating (decimal) 1.1091180104E10 / (decimal) 8.64E7 >> (decimal) 128.3701400925926
+735ms ║║Executed virtual command setVariable (3ms)
+746ms ║║Comparison (integer) 25 is_greater_than (integer) 128 = false (2ms)
+748ms ║║Condition #30 evaluated false (8ms)
+750ms ║║Condition group #14 evaluated false (state did not change) (10ms)
+768ms ║║Calculating (integer) 6 - (integer) 1 >> (integer) 5
+792ms ║║Comparison (datetime) 1524294000000 is_greater_than (datetime) 1507241219969 = true (3ms)
+795ms ║║Condition #19 evaluated true (16ms)
+796ms ║║Condition group #11 evaluated true (state did not change) (19ms)
+800ms ║║Cancelling statement #12’s schedules…
+816ms ║║Calculating (datetime) 1524294000000 - (datetime) 1507241219991 >> (datetime) 17052780009
+824ms ║║Calculating (decimal) 1.7052780009E10 / (decimal) 8.64E7 >> (decimal) 197.37013899305555
+831ms ║║Executed virtual command setVariable (4ms)
+842ms ║║Comparison (integer) 25 is_greater_than (integer) 197 = false (3ms)
+844ms ║║Condition #30 evaluated false (8ms)
+846ms ║║Condition group #14 evaluated false (state did not change) (10ms)
+855ms ║║Cancelling statement #4’s schedules…
+874ms ║║Calculating (string) Guess What!?! There are + (string) 25 >> (string) Guess What!?! There are 25
+880ms ║║Calculating (string) Guess What!?! There are 25 + (string) days until >> (string) Guess What!?! There are 25 days until
+885ms ║║Calculating (string) Guess What!?! There are 25 days until + (string) Halloween >> (string) Guess What!?! There are 25 days until Halloween
+890ms ║║Calculating (string) Guess What!?! There are 25 days until Halloween + (string) !!! >> (string) Guess What!?! There are 25 days until Halloween!!!
+897ms ║║Guess What!?! There are 25 days until Halloween!!!
+898ms ║║Executed virtual command log (2ms)
+934ms ║║Executed virtual command sendSMSNotification (25ms)
+940ms ║╚Execution stage complete. (738ms)
+942ms ║Setting up scheduled job for Fri, Oct 6 2017 @ 3:07:00 PM PDT (in 86399.877s)
+962ms ╚Event processed successfully (962ms)