Trying to add additional names to string for presence change


#1

1) Give a description of the problem
I have a piston that announces when someone is about to arrive home, and when they close the door. However, sometimes there’s more than one person in the car. I am attempting to add the additional names to the list to be spoken, but the presence change isn’t always simultaneous. This is my attempt to create a pause and look for other arrivals to add to the list.

2) What is the expected behavior?
The first arrival starts the piston. There’s a 12-pause to wait for any additional arrivals. The first and additional names are combined (and the Life360 device name removed) and then spoken.

3) What is happening/not happening?
It does not get past the initial arrival. I created SMS notifications to let me know which parts are running, and I only receive the first one.

4) Post a Green Snapshot of the pistonimage

5) Attach any logs (From ST IDE and by turning logging level to Full)
12/17/2018, 11:55:57 PM +171ms
+1ms ╔Received event [Home].time = 1545119757521 with a delay of -350ms
+274ms ║RunTime Analysis CS > 23ms > PS > 67ms > PE > 183ms > CE
+277ms ║Runtime (54010 bytes) successfully initialized in 67ms (v0.3.109.20181207) (275ms)
+278ms ║╔Execution stage started
+280ms ║╚Execution stage complete. (1ms)
+281ms ╚Event processed successfully (281ms)
12/17/2018, 11:47:39 PM +453ms
+2ms ╔Received event [Front Door Sensor].contact = closed with a delay of 607ms
+131ms ║RunTime Analysis CS > 25ms > PS > 52ms > PE > 53ms > CE
+134ms ║Runtime (53983 bytes) successfully initialized in 52ms (v0.3.109.20181207) (130ms)
+135ms ║╔Execution stage started
+150ms ║║Comparison (enum) closed changes_to (string) closed = true (1ms)
+152ms ║║Cancelling condition #156’s schedules…
+155ms ║║Cancelling statement #160’s schedules…
+160ms ║║Executed virtual command setVariable (1ms)
+170ms ║║Comparison (dynamic) Life360 Derek is (string) Google = false (2ms)
+172ms ║║Condition #163 evaluated false (8ms)
+173ms ║║Condition group #162 evaluated false (state did not change) (9ms)
+177ms ║║Cancelling statement #166’s schedules…
+190ms ║║Calculating (string) Well, Welcome Home + (string) Life360 Derek >> (string) Well, Welcome Home Life360 Derek
+194ms ║║Calculating (string) Well, Welcome Home Life360 Derek + (string) , did you bring any food home? >> (string) Well, Welcome Home Life360 Derek, did you bring any food home?
+198ms ║║Executed virtual command setVariable (1ms)
+204ms ║║Executed virtual command setVariable (1ms)
+206ms ║║Condition #156 evaluated true (60ms)
+207ms ║║Cancelling statement #155’s schedules…
+208ms ║║Condition group #155 made progress up the ladder, currently at step 2 of 2
+210ms ║║Cancelling statement #155’s schedules…
+211ms ║║Condition group #155 evaluated true (state did not change) (70ms)
+212ms ║║Cancelling condition #101’s schedules…
+213ms ║║Condition group #101 evaluated true (state changed) (73ms)
+239ms ║║Condition #110 evaluated false (21ms)
+240ms ║║Condition group #109 evaluated false (state did not change) (24ms)
+243ms ║╚Execution stage complete. (109ms)
+244ms ╚Event processed successfully (244ms)
12/17/2018, 11:47:28 PM +815ms
+2ms ╔Received event [Front Door Sensor].contact = open with a delay of 640ms
+145ms ║RunTime Analysis CS > 27ms > PS > 63ms > PE > 54ms > CE
+148ms ║Runtime (54025 bytes) successfully initialized in 63ms (v0.3.109.20181207) (144ms)
+149ms ║╔Execution stage started
+161ms ║║Comparison (enum) open changes_to (string) closed = false (1ms)
+166ms ║║Condition group #169 evaluated true (state did not change) (0ms)
+169ms ║║Cancelling statement #170’s schedules…
+174ms ║║Executed virtual command setVariable (1ms)
+177ms ║║Condition #156 evaluated false (20ms)
+178ms ║║Cancelling condition #101’s schedules…
+180ms ║║Condition group #101 evaluated false (state changed) (25ms)
+209ms ║║Condition #110 evaluated false (26ms)
+211ms ║║Condition group #109 evaluated false (state did not change) (27ms)
+214ms ║╚Execution stage complete. (65ms)
+215ms ║Setting up scheduled job for Mon, Dec 17 2018 @ 11:55:57 PM PST (in 508.491s)
+225ms ╚Event processed successfully (224ms)
12/17/2018, 11:46:09 PM +169ms
+1ms ╔Received event [Home].time = 1545119169513 with a delay of -344ms
+185ms ║RunTime Analysis CS > 47ms > PS > 82ms > PE > 56ms > CE
+189ms ║Runtime (54021 bytes) successfully initialized in 82ms (v0.3.109.20181207) (187ms)
+190ms ║╔Execution stage started
+199ms ║║Cancelling condition #155’s schedules…
+201ms ║║Cancelling condition #101’s schedules…
+212ms ║╚Execution stage complete. (22ms)
+214ms ║Setting up scheduled job for Mon, Dec 17 2018 @ 11:55:57 PM PST (in 588.139s)
+222ms ╚Event processed successfully (222ms)
12/17/2018, 11:45:58 PM +128ms
+2ms ╔Received event [Life360 Eric].presence = present with a delay of 146ms
+157ms ║RunTime Analysis CS > 28ms > PS > 67ms > PE > 62ms > CE
+161ms ║Runtime (54030 bytes) successfully initialized in 67ms (v0.3.109.20181207) (157ms)
+162ms ║╔Execution stage started
+179ms ║║Cancelling condition #156’s schedules…
+183ms ║║Condition group #169 evaluated true (state did not change) (0ms)
+186ms ║║Cancelling statement #170’s schedules…
+191ms ║║Executed virtual command setVariable (2ms)
+194ms ║║Condition #156 evaluated false (23ms)
+195ms ║║Condition group #101 evaluated false (state did not change) (28ms)
+219ms ║║Comparison (enum) present changes_to (string) not present = false (0ms)
+221ms ║║Condition #110 evaluated false (23ms)
+223ms ║║Condition group #109 evaluated false (state did not change) (24ms)
+226ms ║╚Execution stage complete. (65ms)
+229ms ║Setting up scheduled job for Mon, Dec 17 2018 @ 11:46:09 PM PST (in 11.157s), with 1 more job pending
+241ms ╚Event processed successfully (241ms)
12/17/2018, 11:45:57 PM +282ms
+2ms ╔Received event [Life360 Derek].presence = present with a delay of 118ms
+123ms ║RunTime Analysis CS > 19ms > PS > 54ms > PE > 49ms > CE
+126ms ║Runtime (53985 bytes) successfully initialized in 54ms (v0.3.109.20181207) (123ms)
+127ms ║╔Execution stage started
+154ms ║║Comparison (enum) present changes_to (string) present = true (1ms)
+160ms ║║Cancelling condition #102’s schedules…
+163ms ║║Cancelling statement #173’s schedules…
+168ms ║║Executed virtual command setVariable (2ms)
+175ms ║║Executed virtual command setVariable (4ms)
+189ms ║║Calculating (string) 1 Arrival = + (string) Yes >> (string) 1 Arrival = Yes
+194ms ║║Calculating (string) 1 Arrival = Yes + (string) , Who Arrived = >> (string) 1 Arrival = Yes, Who Arrived =
+199ms ║║Calculating (string) 1 Arrival = Yes, Who Arrived = + (string) Life360 Derek >> (string) 1 Arrival = Yes, Who Arrived = Life360 Derek
+203ms ║║Calculating (string) 1 Arrival = Yes, Who Arrived = Life360 Derek + (string) , Who All Arrived = >> (string) 1 Arrival = Yes, Who Arrived = Life360 Derek, Who All Arrived =
+207ms ║║Calculating (string) 1 Arrival = Yes, Who Arrived = Life360 Derek, Who All Arrived = + (string) Life360 Derek >> (string) 1 Arrival = Yes, Who Arrived = Life360 Derek, Who All Arrived = Life360 Derek
+224ms ║║Executed virtual command sendSMSNotification (11ms)
+229ms ║║Executed virtual command wait (0ms)
+230ms ║║Requesting a wake up for Mon, Dec 17 2018 @ 11:46:09 PM PST (in 12.0s)
+234ms ║║Condition #102 evaluated true (100ms)
+236ms ║║Cancelling statement #155’s schedules…
+237ms ║║Condition group #155 made progress up the ladder, currently at step 1 of 2
+241ms ║║Condition group #101 evaluated false (state did not change) (109ms)
+260ms ║║Comparison (enum) present changes_to (string) not present = false (1ms)
+263ms ║║Condition #110 evaluated false (18ms)
+264ms ║║Condition group #109 evaluated false (state did not change) (20ms)
+267ms ║╚Execution stage complete. (141ms)
+269ms ║Setting up scheduled job for Mon, Dec 17 2018 @ 11:46:09 PM PST (in 11.963s), with 1 more job pending
+278ms ╚Event processed successfully (277ms)