Echo Arrival/Departure with voicemonkey


#1

1) Give a description of the problem
the announcement is not quite working correctly

2) What is the expected behaviour?
when a user(s) leaves or arrives the piston should be able to fire determine who left or arrived then send a get request based on the user/users seen.

I based the design off this thread discussion Arrival of people including multiple people at once

3) What is happening/not happening?
the get request is only firing for 1 user and not for multiple and tends to repeat only for the single user

4) Post a Green Snapshot of the pistonimage
(UPLOAD YOUR IMAGE HERE)

5) Attach logs after turning logging level to Full
(PASTE YOUR LOGS HERE THEN HIGHLIGHT ALL OF THE LOGS AND CLICK ON THE </> ICON TO FORMAT THEM CORRECTLY)

9/15/2020, 8:28:32 PM +379ms
+0ms ╔Received event [Home].time = 1600216106740 with a delay of 5639ms
+255ms ║RunTime Analysis CS &gt; 49ms &gt; PS &gt; 137ms &gt; PE &gt; 69ms &gt; CE
+258ms ║Runtime (58958 bytes) successfully initialized in 137ms (v0.3.110.20191009) (257ms)
+259ms ║╔Execution stage started
+284ms ║║Executed virtual command setVariable (3ms)
+289ms ║║Comparison (time) 73712666 happens_daily_at (datetime) 1600211272125 = false (0ms)
+291ms ║║Condition #26 evaluated false (4ms)
+292ms ║║Cancelling statement #26's schedules...
+295ms ║║Requesting time schedule wake up at Wed, Sep 16 2020 @ 7:08:07 PM EDT
+298ms ║║Condition group #25 evaluated false (state did not change) (12ms)
+304ms ║║Comparison (integer) 1 is_greater_than (integer) 0 = true (1ms)
+305ms ║║Cancelling condition #31's schedules...
+306ms ║║Condition #31 evaluated true (6ms)
+307ms ║║Cancelling condition #30's schedules...
+308ms ║║Condition group #30 evaluated true (state changed) (8ms)
+311ms ║║Cancelling statement #32's schedules...
+325ms ║║Calculating (decimal) 0.0 - (decimal) 1.0 &gt;&gt; (decimal) -1.0
+329ms ║║Executed virtual command setVariable (2ms)
+346ms ║║Calculating (integer) 0 - (integer) -1 &gt;&gt; (integer) 1
+449ms ║║Calculating (integer) 1 - (integer) 2 &gt;&gt; (integer) -1
+455ms ║║Calculating (string) java.lang.StringIndexOutOfBoundsException: String index out of range: -1 + (string) and &gt;&gt; (string) java.lang.StringIndexOutOfBoundsException: String index out of range: -1 and
+460ms ║║Calculating (string) java.lang.StringIndexOutOfBoundsException: String index out of range: -1 and + (string) java.lang.StringIndexOutOfBoundsException: String index out of range: -1 &gt;&gt; (string) java.lang.StringIndexOutOfBoundsException: String index out of range: -1 and java.lang.StringIndexOutOfBoundsException: String index out of range: -1
+464ms ║║Calculating (integer) -1 &gt; (integer) 0 &gt;&gt; (boolean) false
+470ms ║║Executed virtual command setVariable (3ms)
+475ms ║║Comparison (string) is (string) Mom = false (1ms)
+477ms ║║Condition #36 evaluated false (5ms)
+478ms ║║Condition group #35 evaluated false (state did not change) (5ms)
+483ms ║║Comparison (string) is (string) Papa = false (1ms)
+484ms ║║Condition #42 evaluated false (4ms)
+485ms ║║Condition group #41 evaluated false (state did not change) (5ms)
+487ms ║║Cancelling statement #47's schedules...
+493ms ║║Executed virtual command setVariable (3ms)
+497ms ║║Executed virtual command setVariable (2ms)
+500ms ║╚Execution stage complete. (241ms)
+501ms ║Setting up scheduled job for Wed, Sep 16 2020 @ 7:08:07 PM EDT (in 81574.246s)
+507ms ╚Event processed successfully (507ms)
9/15/2020, 8:28:18 PM +506ms
+2ms ╔Received event [Front Door Sensor].contact = closed with a delay of 86ms
+183ms ║RunTime Analysis CS &gt; 21ms &gt; PS &gt; 98ms &gt; PE &gt; 64ms &gt; CE
+187ms ║Runtime (58967 bytes) successfully initialized in 98ms (v0.3.110.20191009) (184ms)
+188ms ║╔Execution stage started
+196ms ║║Calculating (datetime) 1600216098699 - (datetime) 1600211272125 &gt;&gt; (datetime) 4826574
+199ms ║║Comparison (datetime) 4826574 is_greater_than (integer) 350000 = true (1ms)
+200ms ║║Condition #2 evaluated true (9ms)
+201ms ║║Condition group #1 evaluated true (state did not change) (10ms)
+203ms ║║Cancelling statement #3's schedules...
+208ms ║║Executed virtual command setVariable (3ms)
+213ms ║║Executed virtual command setVariable (3ms)
+222ms ║║Comparison (enum) closed changes_to (string) closed = true (1ms)
+223ms ║║Cancelling condition #19's schedules...
+224ms ║║Condition #19 evaluated true (6ms)
+225ms ║║Cancelling condition #18's schedules...
+226ms ║║Condition group #18 evaluated true (state changed) (9ms)
+227ms ║║Cancelling condition #17's schedules...
+228ms ║║Condition group #17 evaluated true (state changed) (10ms)
+230ms ║║Cancelling statement #22's schedules...
+233ms ║║Executed virtual command wait (0ms)
+234ms ║║Requesting a wake up for Tue, Sep 15 2020 @ 8:28:26 PM EDT (in 8.0s)
+238ms ║╚Execution stage complete. (51ms)
+240ms ║Setting up scheduled job for Tue, Sep 15 2020 @ 8:28:26 PM EDT (in 7.995s), with 1 more job pending
+247ms ╚Event processed successfully (247ms)
9/15/2020, 8:28:14 PM +790ms
+1ms ╔Received event [Front Door Sensor].contact = open with a delay of 66ms
+183ms ║RunTime Analysis CS &gt; 17ms &gt; PS &gt; 105ms &gt; PE &gt; 62ms &gt; CE
+186ms ║Runtime (58964 bytes) successfully initialized in 105ms (v0.3.110.20191009) (184ms)
+187ms ║╔Execution stage started
+195ms ║║Calculating (datetime) 1600216094982 - (datetime) 1600211272125 &gt;&gt; (datetime) 4822857
+199ms ║║Comparison (datetime) 4822857 is_greater_than (integer) 350000 = true (1ms)
+200ms ║║Condition #2 evaluated true (9ms)
+201ms ║║Condition group #1 evaluated true (state did not change) (9ms)
+203ms ║║Cancelling statement #3's schedules...
+207ms ║║Executed virtual command setVariable (3ms)
+212ms ║║Executed virtual command setVariable (3ms)
+309ms ║║Comparison (enum) open changes_to (string) closed = false (1ms)
+311ms ║║Cancelling condition #19's schedules...
+312ms ║║Condition #19 evaluated false (95ms)
+321ms ║║Comparison (enum) is (string) inactive = false (1ms)
+322ms ║║Condition #20 evaluated false (10ms)
+323ms ║║Cancelling condition #18's schedules...
+324ms ║║Condition group #18 evaluated false (state changed) (108ms)
+329ms ║║Comparison (boolean) true is (boolean) false = false (1ms)
+331ms ║║Condition #21 evaluated false (5ms)
+332ms ║║Cancelling condition #17's schedules...
+332ms ║║Condition group #17 evaluated false (state changed) (117ms)
+337ms ║║Comparison (time) 73695125 happens_daily_at (datetime) 1600211272125 = false (0ms)
+339ms ║║Condition #26 evaluated false (3ms)
+339ms ║║Cancelling statement #26's schedules...
+342ms ║║Requesting time schedule wake up at Wed, Sep 16 2020 @ 7:08:07 PM EDT
+345ms ║║Condition group #25 evaluated false (state did not change) (10ms)
+350ms ║║Comparison (integer) 0 is_greater_than (integer) 0 = false (1ms)
+351ms ║║Cancelling condition #31's schedules...
+352ms ║║Condition #31 evaluated false (5ms)
+353ms ║║Cancelling condition #30's schedules...
+353ms ║║Condition group #30 evaluated false (state changed) (7ms)
+359ms ║║Comparison (string) is (string) Mom = false (1ms)
+360ms ║║Condition #36 evaluated false (4ms)
+361ms ║║Condition group #35 evaluated false (state did not change) (5ms)
+366ms ║║Comparison (string) is (string) Papa = false (1ms)
+367ms ║║Condition #42 evaluated false (4ms)
+368ms ║║Condition group #41 evaluated false (state did not change) (5ms)
+370ms ║║Cancelling statement #47's schedules...
+374ms ║║Executed virtual command setVariable (2ms)
+379ms ║║Executed virtual command setVariable (3ms)
+382ms ║╚Execution stage complete. (194ms)
+383ms ║Setting up scheduled job for Wed, Sep 16 2020 @ 7:08:07 PM EDT (in 81591.953s)
+393ms ╚Event processed successfully (393ms)
9/15/2020, 7:45:48 PM +745ms
+1ms ╔Received event [Home].time = 1600213549451 with a delay of -706ms
+212ms ║RunTime Analysis CS &gt; 21ms &gt; PS &gt; 124ms &gt; PE &gt; 67ms &gt; CE
+216ms ║Runtime (58958 bytes) successfully initialized in 124ms (v0.3.110.20191009) (214ms)
+217ms ║╔Execution stage started
+241ms ║║Executed virtual command setVariable (3ms)
+247ms ║║Comparison (time) 71148989 happens_daily_at (datetime) 1600211272125 = false (1ms)
+248ms ║║Condition #26 evaluated false (4ms)
+250ms ║║Cancelling statement #26's schedules...
+253ms ║║Requesting time schedule wake up at Wed, Sep 16 2020 @ 7:08:07 PM EDT
+255ms ║║Condition group #25 evaluated false (state did not change) (11ms)
+260ms ║║Comparison (integer) 1 is_greater_than (integer) 0 = true (1ms)
+262ms ║║Cancelling condition #31's schedules...
+263ms ║║Condition #31 evaluated true (6ms)
+264ms ║║Cancelling condition #30's schedules...
+265ms ║║Condition group #30 evaluated true (state changed) (7ms)
+267ms ║║Cancelling statement #32's schedules...
+278ms ║║Calculating (decimal) 0.0 - (decimal) 1.0 &gt;&gt; (decimal) -1.0
+284ms ║║Executed virtual command setVariable (2ms)
+302ms ║║Calculating (integer) 0 - (integer) -1 &gt;&gt; (integer) 1
+305ms ║║Calculating (integer) 1 - (integer) 2 &gt;&gt; (integer) -1
+313ms ║║Calculating (string) java.lang.StringIndexOutOfBoundsException: String index out of range: -1 + (string) and &gt;&gt; (string) java.lang.StringIndexOutOfBoundsException: String index out of range: -1 and
+317ms ║║Calculating (string) java.lang.StringIndexOutOfBoundsException: String index out of range: -1 and + (string) java.lang.StringIndexOutOfBoundsException: String index out of range: -1 &gt;&gt; (string) java.lang.StringIndexOutOfBoundsException: String index out of range: -1 and java.lang.StringIndexOutOfBoundsException: String index out of range: -1
+320ms ║║Calculating (integer) -1 &gt; (integer) 0 &gt;&gt; (boolean) false
+327ms ║║Executed virtual command setVariable (3ms)
+333ms ║║Comparison (string) is (string) Mom = false (1ms)
+335ms ║║Condition #36 evaluated false (5ms)
+336ms ║║Condition group #35 evaluated false (state did not change) (6ms)
+341ms ║║Comparison (string) is (string) Papa = false (1ms)
+342ms ║║Condition #42 evaluated false (4ms)
+343ms ║║Condition group #41 evaluated false (state did not change) (5ms)
+346ms ║║Cancelling statement #47's schedules...
+351ms ║║Executed virtual command setVariable (3ms)
+357ms ║║Executed virtual command setVariable (4ms)
+359ms ║╚Execution stage complete. (143ms)
+361ms ║Setting up scheduled job for Wed, Sep 16 2020 @ 7:08:07 PM EDT (in 84138.02s)
+412ms ╚Event processed successfully (412ms)
9/15/2020, 7:45:41 PM +243ms
+0ms ╔Received event [Front Door Sensor].contact = closed with a delay of 50ms
+156ms ║RunTime Analysis CS &gt; 17ms &gt; PS &gt; 75ms &gt; PE &gt; 65ms &gt; CE
+159ms ║Runtime (58967 bytes) successfully initialized in 75ms (v0.3.110.20191009) (158ms)
+160ms ║╔Execution stage started
+169ms ║║Calculating (datetime) 1600213541408 - (datetime) 1600211272125 &gt;&gt; (datetime) 2269283
+172ms ║║Comparison (datetime) 2269283 is_greater_than (integer) 350000 = true (1ms)
+173ms ║║Condition #2 evaluated true (9ms)
+174ms ║║Condition group #1 evaluated true (state did not change) (10ms)
+177ms ║║Cancelling statement #3's schedules...
+181ms ║║Executed virtual command setVariable (3ms)
+186ms ║║Executed virtual command setVariable (2ms)
+195ms ║║Comparison (enum) closed changes_to (string) closed = true (1ms)
+197ms ║║Cancelling condition #19's schedules...
+198ms ║║Condition #19 evaluated true (6ms)
+199ms ║║Cancelling condition #18's schedules...
+200ms ║║Condition group #18 evaluated true (state changed) (9ms)
+201ms ║║Cancelling condition #17's schedules...
+201ms ║║Condition group #17 evaluated true (state changed) (11ms)
+203ms ║║Cancelling statement #22's schedules...
+206ms ║║Executed virtual command wait (0ms)
+208ms ║║Requesting a wake up for Tue, Sep 15 2020 @ 7:45:49 PM EDT (in 8.0s)
+212ms ║╚Execution stage complete. (52ms)
+214ms ║Setting up scheduled job for Tue, Sep 15 2020 @ 7:45:49 PM EDT (in 7.995s), with 1 more job pending
+227ms ╚Event processed successfully (227ms)
9/15/2020, 7:45:38 PM +546ms
+1ms ╔Received event [Front Door Sensor].contact = open with a delay of 77ms
+190ms ║RunTime Analysis CS &gt; 19ms &gt; PS &gt; 107ms &gt; PE &gt; 64ms &gt; CE
+194ms ║Runtime (58964 bytes) successfully initialized in 107ms (v0.3.110.20191009) (191ms)
+194ms ║╔Execution stage started
+203ms ║║Calculating (datetime) 1600213538746 - (datetime) 1600211272125 &gt;&gt; (datetime) 2266621
+207ms ║║Comparison (datetime) 2266621 is_greater_than (integer) 350000 = true (2ms)
+208ms ║║Condition #2 evaluated true (9ms)
+209ms ║║Condition group #1 evaluated true (state did not change) (11ms)
+211ms ║║Cancelling statement #3's schedules...
+216ms ║║Executed virtual command setVariable (3ms)
+222ms ║║Executed virtual command setVariable (3ms)
+231ms ║║Comparison (enum) open changes_to (string) closed = false (1ms)
+232ms ║║Cancelling condition #19's schedules...
+233ms ║║Condition #19 evaluated false (7ms)
+242ms ║║Comparison (enum) is (string) inactive = false (1ms)
+244ms ║║Condition #20 evaluated false (10ms)
+245ms ║║Cancelling condition #18's schedules...
+246ms ║║Condition group #18 evaluated false (state changed) (19ms)
+251ms ║║Comparison (boolean) true is (boolean) false = false (1ms)
+252ms ║║Condition #21 evaluated false (6ms)
+253ms ║║Cancelling condition #17's schedules...
+254ms ║║Condition group #17 evaluated false (state changed) (28ms)
+260ms ║║Comparison (time) 71138803 happens_daily_at (datetime) 1600211272125 = false (0ms)
+261ms ║║Condition #26 evaluated false (4ms)
+262ms ║║Cancelling statement #26's schedules...
+265ms ║║Requesting time schedule wake up at Wed, Sep 16 2020 @ 7:08:07 PM EDT
+267ms ║║Condition group #25 evaluated false (state did not change) (11ms)
+273ms ║║Comparison (integer) 0 is_greater_than (integer) 0 = false (1ms)
+274ms ║║Cancelling condition #31's schedules...
+275ms ║║Condition #31 evaluated false (6ms)
+276ms ║║Cancelling condition #30's schedules...
+277ms ║║Condition group #30 evaluated false (state changed) (7ms)
+282ms ║║Comparison (string) is (string) Mom = false (1ms)
+284ms ║║Condition #36 evaluated false (4ms)
+285ms ║║Condition group #35 evaluated false (state did not change) (5ms)
+290ms ║║Comparison (string) is (string) Papa = false (2ms)
+291ms ║║Condition #42 evaluated false (4ms)
+292ms ║║Condition group #41 evaluated false (state did not change) (5ms)
+294ms ║║Cancelling statement #47's schedules...
+299ms ║║Executed virtual command setVariable (3ms)
+304ms ║║Executed virtual command setVariable (2ms)
+307ms ║╚Execution stage complete. (112ms)
+308ms ║Setting up scheduled job for Wed, Sep 16 2020 @ 7:08:07 PM EDT (in 84148.272s)
+317ms ╚Event processed successfully (317ms)
9/15/2020, 7:44:32 PM +140ms
+1ms ╔Received event [Home].time = 1600213473037 with a delay of -897ms
+224ms ║RunTime Analysis CS &gt; 26ms &gt; PS &gt; 133ms &gt; PE &gt; 65ms &gt; CE
+228ms ║Runtime (58958 bytes) successfully initialized in 133ms (v0.3.110.20191009) (226ms)
+229ms ║╔Execution stage started
+253ms ║║Executed virtual command setVariable (4ms)
+259ms ║║Comparison (time) 71072396 happens_daily_at (datetime) 1600211272125 = false (0ms)
+260ms ║║Condition #26 evaluated false (4ms)
+261ms ║║Cancelling statement #26's schedules...
+264ms ║║Requesting time schedule wake up at Wed, Sep 16 2020 @ 7:08:07 PM EDT
+266ms ║║Condition group #25 evaluated false (state did not change) (10ms)
+272ms ║║Comparison (integer) 1 is_greater_than (integer) 0 = true (2ms)
+273ms ║║Cancelling condition #31's schedules...
+274ms ║║Condition #31 evaluated true (5ms)
+275ms ║║Cancelling condition #30's schedules...
+276ms ║║Condition group #30 evaluated true (state changed) (8ms)
+278ms ║║Cancelling statement #32's schedules...
+288ms ║║Calculating (decimal) 0.0 - (decimal) 1.0 &gt;&gt; (decimal) -1.0
+294ms ║║Executed virtual command setVariable (4ms)
+311ms ║║Calculating (integer) 0 - (integer) -1 &gt;&gt; (integer) 1
+314ms ║║Calculating (integer) 1 - (integer) 2 &gt;&gt; (integer) -1
+320ms ║║Calculating (string) java.lang.StringIndexOutOfBoundsException: String index out of range: -1 + (string) and &gt;&gt; (string) java.lang.StringIndexOutOfBoundsException: String index out of range: -1 and
+323ms ║║Calculating (string) java.lang.StringIndexOutOfBoundsException: String index out of range: -1 and + (string) java.lang.StringIndexOutOfBoundsException: String index out of range: -1 &gt;&gt; (string) java.lang.StringIndexOutOfBoundsException: String index out of range: -1 and java.lang.StringIndexOutOfBoundsException: String index out of range: -1
+327ms ║║Calculating (integer) -1 &gt; (integer) 0 &gt;&gt; (boolean) false
+332ms ║║Executed virtual command setVariable (3ms)
+337ms ║║Comparison (string) is (string) Mom = false (1ms)
+339ms ║║Condition #36 evaluated false (5ms)
+340ms ║║Condition group #35 evaluated false (state did not change) (6ms)
+346ms ║║Comparison (string) is (string) Papa = false (1ms)
+347ms ║║Condition #42 evaluated false (5ms)
+348ms ║║Condition group #41 evaluated false (state did not change) (6ms)
+351ms ║║Cancelling statement #47's schedules...
+356ms ║║Executed virtual command setVariable (3ms)
+361ms ║║Executed virtual command setVariable (3ms)
+363ms ║╚Execution stage complete. (135ms)
+365ms ║Setting up scheduled job for Wed, Sep 16 2020 @ 7:08:07 PM EDT (in 84214.621s)
+370ms ╚Event processed successfully (370ms)
9/15/2020, 7:44:24 PM +804ms
+1ms ╔Received event [Front Door Sensor].contact = closed with a delay of 69ms
+183ms ║RunTime Analysis CS &gt; 20ms &gt; PS &gt; 100ms &gt; PE &gt; 62ms &gt; CE
+186ms ║Runtime (58969 bytes) successfully initialized in 100ms (v0.3.110.20191009) (184ms)
+187ms ║╔Execution stage started
+195ms ║║Calculating (datetime) 1600213464996 - (datetime) 1600211272125 &gt;&gt; (datetime) 2192871
+198ms ║║Comparison (datetime) 2192871 is_greater_than (integer) 350000 = true (1ms)
+200ms ║║Condition #2 evaluated true (8ms)
+200ms ║║Condition group #1 evaluated true (state did not change) (10ms)
+202ms ║║Cancelling statement #3's schedules...
+208ms ║║Executed virtual command setVariable (3ms)
+213ms ║║Executed virtual command setVariable (4ms)
+222ms ║║Comparison (enum) closed changes_to (string) closed = true (0ms)
+223ms ║║Cancelling condition #19's schedules...
+224ms ║║Condition #19 evaluated true (7ms)
+225ms ║║Cancelling condition #18's schedules...
+226ms ║║Condition group #18 evaluated true (state changed) (8ms)
+226ms ║║Cancelling condition #17's schedules...
+227ms ║║Condition group #17 evaluated true (state changed) (10ms)
+229ms ║║Cancelling statement #22's schedules...
+232ms ║║Executed virtual command wait (1ms)
+233ms ║║Requesting a wake up for Tue, Sep 15 2020 @ 7:44:33 PM EDT (in 8.0s)
+237ms ║╚Execution stage complete. (51ms)
+239ms ║Setting up scheduled job for Tue, Sep 15 2020 @ 7:44:33 PM EDT (in 7.995s), with 1 more job pending
+275ms ╚Event processed successfully (275ms)
9/15/2020, 7:44:22 PM +568ms
+1ms ╔Received event [Front Door Sensor].contact = open with a delay of 55ms
+149ms ║RunTime Analysis CS &gt; 14ms &gt; PS &gt; 75ms &gt; PE &gt; 60ms &gt; CE
+152ms ║Runtime (58962 bytes) successfully initialized in 75ms (v0.3.110.20191009) (150ms)
+153ms ║╔Execution stage started
+161ms ║║Calculating (datetime) 1600213462726 - (datetime) 1600211272125 &gt;&gt; (datetime) 2190601
+164ms ║║Comparison (datetime) 2190601 is_greater_than (integer) 350000 = true (1ms)
+165ms ║║Condition #2 evaluated true (8ms)
+166ms ║║Condition group #1 evaluated true (state did not change) (9ms)
+168ms ║║Cancelling statement #3's schedules...
+172ms ║║Executed virtual command setVariable (2ms)
+176ms ║║Executed virtual command setVariable (2ms)
+185ms ║║Comparison (enum) open changes_to (string) closed = false (1ms)
+186ms ║║Cancelling condition #19's schedules...
+187ms ║║Condition #19 evaluated false (6ms)
+197ms ║║Comparison (enum) is (string) inactive = false (2ms)
+198ms ║║Condition #20 evaluated false (10ms)
+199ms ║║Cancelling condition #18's schedules...
+200ms ║║Condition group #18 evaluated false (state changed) (19ms)
+205ms ║║Comparison (boolean) true is (boolean) false = false (1ms)
+206ms ║║Condition #21 evaluated false (5ms)
+207ms ║║Cancelling condition #17's schedules...
+208ms ║║Condition group #17 evaluated false (state changed) (28ms)
+213ms ║║Comparison (time) 71062778 happens_daily_at (datetime) 1600211272125 = false (1ms)
+214ms ║║Condition #26 evaluated false (4ms)
+215ms ║║Cancelling statement #26's schedules...
+218ms ║║Requesting time schedule wake up at Wed, Sep 16 2020 @ 7:08:07 PM EDT
+220ms ║║Condition group #25 evaluated false (state did not change) (10ms)
+225ms ║║Comparison (integer) 0 is_greater_than (integer) 0 = false (2ms)
+226ms ║║Cancelling condition #31's schedules...
+227ms ║║Condition #31 evaluated false (5ms)
+228ms ║║Cancelling condition #30's schedules...
+229ms ║║Condition group #30 evaluated false (state changed) (6ms)
+233ms ║║Comparison (string) is (string) Mom = false (1ms)
+235ms ║║Condition #36 evaluated false (3ms)
+236ms ║║Condition group #35 evaluated false (state did not change) (5ms)
+240ms ║║Comparison (string) is (string) Papa = false (1ms)
+242ms ║║Condition #42 evaluated false (3ms)
+242ms ║║Condition group #41 evaluated false (state did not change) (5ms)
+245ms ║║Cancelling statement #47's schedules...
+249ms ║║Executed virtual command setVariable (3ms)
+253ms ║║Executed virtual command setVariable (2ms)
+255ms ║╚Execution stage complete. (102ms)
+257ms ║Setting up scheduled job for Wed, Sep 16 2020 @ 7:08:07 PM EDT (in 84224.301s)
+267ms ╚Event processed successfully (267ms)
9/15/2020, 7:44:08 PM +234ms
+0ms ╔Received event [Home].time = 1600213449210 with a delay of -976ms
+261ms ║RunTime Analysis CS &gt; 42ms &gt; PS &gt; 143ms &gt; PE &gt; 75ms &gt; CE
+264ms ║Runtime (58958 bytes) successfully initialized in 143ms (v0.3.110.20191009) (263ms)
+266ms ║╔Execution stage started
+297ms ║║Executed virtual command setVariable (3ms)
+304ms ║║Comparison (time) 71048535 happens_daily_at (datetime) 1600211272125 = false (0ms)
+306ms ║║Condition #26 evaluated false (5ms)
+307ms ║║Cancelling statement #26's schedules...
+311ms ║║Requesting time schedule wake up at Wed, Sep 16 2020 @ 7:08:07 PM EDT
+313ms ║║Condition group #25 evaluated false (state did not change) (13ms)
+320ms ║║Comparison (integer) 1 is_greater_than (integer) 0 = true (1ms)
+322ms ║║Cancelling condition #31's schedules...
+323ms ║║Condition #31 evaluated true (6ms)
+325ms ║║Cancelling condition #30's schedules...
+326ms ║║Condition group #30 evaluated true (state changed) (9ms)
+328ms ║║Cancelling statement #32's schedules...
+342ms ║║Calculating (decimal) 0.0 - (decimal) 1.0 &gt;&gt; (decimal) -1.0
+349ms ║║Executed virtual command setVariable (4ms)
+372ms ║║Calculating (integer) 0 - (integer) -1 &gt;&gt; (integer) 1
+375ms ║║Calculating (integer) 1 - (integer) 2 &gt;&gt; (integer) -1
+384ms ║║Calculating (string) java.lang.StringIndexOutOfBoundsException: String index out of range: -1 + (string) and &gt;&gt; (string) java.lang.StringIndexOutOfBoundsException: String index out of range: -1 and
+389ms ║║Calculating (string) java.lang.StringIndexOutOfBoundsException: String index out of range: -1 and + (string) java.lang.StringIndexOutOfBoundsException: String index out of range: -1 &gt;&gt; (string) java.lang.StringIndexOutOfBoundsException: String index out of range: -1 and java.lang.StringIndexOutOfBoundsException: String index out of range: -1
+393ms ║║Calculating (integer) -1 &gt; (integer) 0 &gt;&gt; (boolean) false
+400ms ║║Executed virtual command setVariable (3ms)
+405ms ║║Comparison (string) is (string) Mom = false (1ms)
+407ms ║║Condition #36 evaluated false (5ms)
+408ms ║║Condition group #35 evaluated false (state did not change) (6ms)
+414ms ║║Comparison (string) is (string) Papa = false (1ms)
+416ms ║║Condition #42 evaluated false (5ms)

#2

here is the original piston this one is based on.


#3

here is the log when my wife left home. it registered that the correct person is being called but instead of firing the get command for “left home” it fired the get command for “arrived home”. any ideas why the piston is not choosing the correct one and how do I fix it?

11/16/2020, 8:47:32 AM +137ms
+0ms ╔Received event [Home].time = 1605534453414 with a delay of -1278ms
+264ms ║RunTime Analysis CS &gt; 20ms &gt; PS &gt; 87ms &gt; PE &gt; 158ms &gt; CE
+267ms ║Runtime (58969 bytes) successfully initialized in 87ms (v0.3.110.20191009) (266ms)
+268ms ║╔Execution stage started
+279ms ║║Calculating (datetime) 1605534452413 - (datetime) 1605534438414 &gt;&gt; (datetime) 13999
+283ms ║║Comparison (datetime) 13999 is_greater_than (integer) 350000 = false (2ms)
+285ms ║║Cancelling condition #2's schedules...
+286ms ║║Condition #2 evaluated false (11ms)
+287ms ║║Cancelling condition #1's schedules...
+288ms ║║Condition group #1 evaluated false (state changed) (13ms)
+301ms ║║Condition #19 evaluated false (8ms)
+311ms ║║Comparison (enum) is (string) inactive = false (1ms)
+312ms ║║Condition #20 evaluated false (10ms)
+313ms ║║Condition group #18 evaluated false (state did not change) (21ms)
+320ms ║║Comparison (boolean) true is (boolean) false = false (1ms)
+321ms ║║Condition #21 evaluated false (7ms)
+322ms ║║Condition group #17 evaluated false (state did not change) (30ms)
+329ms ║║Comparison (time) 31652462 happens_daily_at (datetime) 1605534438414 = true (0ms)
+331ms ║║Time restriction check passed
+332ms ║║Cancelling condition #26's schedules...
+333ms ║║Condition #26 evaluated true (9ms)
+334ms ║║Cancelling statement #26's schedules...
+337ms ║║Requesting time schedule wake up at Tue, Nov 17 2020 @ 8:47:33 AM EST
+344ms ║║Comparison (boolean) false is (boolean) false = true (1ms)
+345ms ║║Condition #27 evaluated true (5ms)
+346ms ║║Cancelling condition #25's schedules...
+347ms ║║Condition group #25 evaluated true (state changed) (23ms)
+349ms ║║Cancelling statement #50's schedules...
+353ms ║║Executed virtual command setVariable (2ms)
+359ms ║║Comparison (integer) 2 is_greater_than (integer) 0 = true (1ms)
+360ms ║║Cancelling condition #31's schedules...
+361ms ║║Condition #31 evaluated true (4ms)
+361ms ║║Cancelling condition #30's schedules...
+362ms ║║Condition group #30 evaluated true (state changed) (7ms)
+364ms ║║Cancelling statement #32's schedules...
+374ms ║║Calculating (decimal) 0.0 - (decimal) 1.0 &gt;&gt; (decimal) -1.0
+379ms ║║Executed virtual command setVariable (2ms)
+395ms ║║Calculating (integer) 3 - (integer) -1 &gt;&gt; (integer) 4
+397ms ║║Calculating (integer) 4 - (integer) 2 &gt;&gt; (integer) 2
+403ms ║║Calculating (string) java.lang.StringIndexOutOfBoundsException: String index out of range: -1 + (string) and &gt;&gt; (string) java.lang.StringIndexOutOfBoundsException: String index out of range: -1 and
+407ms ║║Calculating (string) java.lang.StringIndexOutOfBoundsException: String index out of range: -1 and + (string) om &gt;&gt; (string) java.lang.StringIndexOutOfBoundsException: String index out of range: -1 and om
+410ms ║║Calculating (integer) -1 &gt; (integer) 0 &gt;&gt; (boolean) false
+414ms ║║Executed virtual command setVariable (2ms)
+420ms ║║Comparison (string) Mom is (string) Mom = true (2ms)
+421ms ║║Cancelling condition #36's schedules...
+422ms ║║Condition #36 evaluated true (4ms)
+423ms ║║Cancelling condition #35's schedules...
+423ms ║║Condition group #35 evaluated true (state changed) (6ms)
+425ms ║║Cancelling statement #37's schedules...
+432ms ║║Sending external web request to: api-use.voicemonkey.io/trigger?access_token=&amp;secret_token=&amp;monkey=mom-monkey&amp;announcement=Mom
+1143ms ║║Executed virtual command httpRequest (711ms)
+1149ms ║║Executed virtual command wait (0ms)
+1150ms ║║Waiting for 1250ms
+2409ms ║║Calculating (integer) 2 == (integer) 1 &gt;&gt; (boolean) false
+2415ms ║║Sending external web request to: api-use.voicemonkey.io/trigger?access_token=&amp;secret_token=&amp;monkey=returned-home-monkey&amp;announcement=Has%20Returned%20Home
+2782ms ║║Executed virtual command httpRequest (367ms)
+2787ms ║║Comparison (string) Mom is (string) Papa = false (1ms)
+2788ms ║║Condition #42 evaluated false (4ms)
+2789ms ║║Condition group #41 evaluated false (state did not change) (5ms)
+2791ms ║║Cancelling statement #47's schedules...
+2795ms ║║Executed virtual command setVariable (2ms)
+2799ms ║║Executed virtual command setVariable (2ms)
+2801ms ║╚Execution stage complete. (2533ms)
+2802ms ║Setting up scheduled job for Tue, Nov 17 2020 @ 8:47:33 AM EST (in 86398.475s)
+2808ms ╚Event processed successfully (2808ms)
11/16/2020, 8:47:18 AM +107ms
+1ms ╔Received event [Mom].presence = not present with a delay of 104ms
+204ms ║RunTime Analysis CS &gt; 20ms &gt; PS &gt; 120ms &gt; PE &gt; 64ms &gt; CE
+207ms ║Runtime (58967 bytes) successfully initialized in 120ms (v0.3.110.20191009) (205ms)
+208ms ║╔Execution stage started
+216ms ║║Calculating (datetime) 1605534438320 - (datetime) 1605477557925 &gt;&gt; (datetime) 56880395
+220ms ║║Comparison (datetime) 56880395 is_greater_than (integer) 350000 = true (1ms)
+221ms ║║Condition #2 evaluated true (9ms)
+222ms ║║Condition group #1 evaluated true (state did not change) (11ms)
+224ms ║║Cancelling statement #3's schedules...
+230ms ║║Executed virtual command setVariable (4ms)
+236ms ║║Executed virtual command setVariable (4ms)
+241ms ║║Cancelling statement #8's schedules...
+252ms ║║Executed virtual command setVariable (4ms)
+263ms ║║Calculating (integer) 2 - (integer) 1 &gt;&gt; (integer) 1
+266ms ║║Comparison (integer) 0 is_inside_of_range (integer) 0 .. (integer) 1 = true (2ms)
+268ms ║║Condition #11 evaluated true (13ms)
+269ms ║║Condition group #10 evaluated true (state did not change) (14ms)
+271ms ║║Cancelling statement #12's schedules...
+277ms ║║Calculating (dynamic) not present == (dynamic) present &gt;&gt; (boolean) false
+283ms ║║Executed virtual command setVariable (3ms)
+297ms ║║Calculating (string) + (string) &gt;&gt; (string)
+300ms ║║Calculating (string) + (string) Mom &gt;&gt; (string) Mom
+305ms ║║Executed virtual command setVariable (3ms)
+311ms ║║Executed virtual command setVariable (3ms)
+323ms ║║Condition #19 evaluated false (9ms)
+337ms ║║Comparison (enum) is (string) inactive = false (1ms)
+339ms ║║Condition #20 evaluated false (14ms)
+340ms ║║Condition group #18 evaluated false (state did not change) (25ms)
+345ms ║║Comparison (boolean) true is (boolean) false = false (1ms)
+346ms ║║Condition #21 evaluated false (6ms)
+347ms ║║Condition group #17 evaluated false (state did not change) (33ms)
+352ms ║║Comparison (time) 31638457 happens_daily_at (datetime) 1605534438414 = false (0ms)
+354ms ║║Condition #26 evaluated false (4ms)
+355ms ║║Cancelling statement #26's schedules...
+358ms ║║Requesting time schedule wake up at Mon, Nov 16 2020 @ 8:47:33 AM EST
+360ms ║║Condition group #25 evaluated false (state did not change) (11ms)
+365ms ║║Comparison (integer) 0 is_greater_than (integer) 0 = false (1ms)
+366ms ║║Condition #31 evaluated false (4ms)
+367ms ║║Condition group #30 evaluated false (state did not change) (5ms)
+373ms ║║Comparison (string) is (string) Mom = false (1ms)
+374ms ║║Condition #36 evaluated false (5ms)
+375ms ║║Condition group #35 evaluated false (state did not change) (5ms)
+380ms ║║Comparison (string) is (string) Papa = false (1ms)
+381ms ║║Condition #42 evaluated false (4ms)
+382ms ║║Condition group #41 evaluated false (state did not change) (5ms)
+385ms ║║Cancelling statement #47's schedules...
+389ms ║║Executed virtual command setVariable (3ms)
+394ms ║║Executed virtual command setVariable (2ms)
+397ms ║╚Execution stage complete. (190ms)
+398ms ║Setting up scheduled job for Mon, Nov 16 2020 @ 8:47:33 AM EST (in 14.91s)
+407ms ╚Event processed successfully (407ms)
11/16/2020, 8:45:34 AM +998ms
+1ms ╔Received event [Front Door Sensor].contact = closed with a delay of 100ms
+212ms ║RunTime Analysis CS &gt; 24ms &gt; PS &gt; 123ms &gt; PE &gt; 66ms &gt; CE
+216ms ║Runtime (58970 bytes) successfully initialized in 123ms (v0.3.110.20191009) (213ms)
+216ms ║╔Execution stage started
+225ms ║║Calculating (datetime) 1605534335220 - (datetime) 1605477557925 &gt;&gt; (datetime) 56777295
+229ms ║║Comparison (datetime) 56777295 is_greater_than (integer) 350000 = true (1ms)
+230ms ║║Condition #2 evaluated true (10ms)
+231ms ║║Condition group #1 evaluated true (state did not change) (11ms)
+233ms ║║Cancelling statement #3's schedules...
+239ms ║║Executed virtual command setVariable (3ms)
+244ms ║║Executed virtual command setVariable (3ms)
+253ms ║║Comparison (enum) closed changes_to (string) closed = false (1ms)
+254ms ║║Cancelling condition #19's schedules...
+255ms ║║Condition #19 evaluated false (6ms)
+264ms ║║Comparison (enum) is (string) inactive = false (2ms)
+265ms ║║Condition #20 evaluated false (9ms)
+266ms ║║Cancelling condition #18's schedules...
+267ms ║║Condition group #18 evaluated false (state changed) (19ms)
+272ms ║║Comparison (boolean) true is (boolean) false = false (1ms)
+274ms ║║Condition #21 evaluated false (5ms)
+274ms ║║Cancelling condition #17's schedules...
+275ms ║║Condition group #17 evaluated false (state changed) (27ms)
+280ms ║║Comparison (time) 31535276 happens_daily_at (datetime) 1605477557925 = false (0ms)
+282ms ║║Condition #26 evaluated false (4ms)
+282ms ║║Cancelling statement #26's schedules...
+286ms ║║Requesting time schedule wake up at Mon, Nov 16 2020 @ 4:59:32 PM EST
+288ms ║║Condition group #25 evaluated false (state did not change) (10ms)
+293ms ║║Comparison (integer) 0 is_greater_than (integer) 0 = false (1ms)
+294ms ║║Cancelling condition #31's schedules...
+295ms ║║Condition #31 evaluated false (5ms)
+296ms ║║Cancelling condition #30's schedules...
+296ms ║║Condition group #30 evaluated false (state changed) (6ms)
+302ms ║║Comparison (string) is (string) Mom = false (1ms)
+303ms ║║Condition #36 evaluated false (4ms)
+304ms ║║Condition group #35 evaluated false (state did not change) (5ms)
+309ms ║║Comparison (string) is (string) Papa = false (2ms)
+310ms ║║Condition #42 evaluated false (4ms)
+311ms ║║Condition group #41 evaluated false (state did not change) (5ms)
+313ms ║║Cancelling statement #47's schedules...
+318ms ║║Executed virtual command setVariable (3ms)
+323ms ║║Executed virtual command setVariable (2ms)
+326ms ║╚Execution stage complete. (110ms)
+327ms ║Setting up scheduled job for Mon, Nov 16 2020 @ 4:59:32 PM EST (in 29637.601s)
+336ms ╚Event processed successfully (336ms)