1) Give a description of the problem
This was copied from another persons example, and worked great for a few months. This piston is duplicating the announce once with the incorrect person, then with the correct.
2) What is the expected behaviour?
If someone arrives speak message on specified echo, if someone leaves speak on specified echo.
3) What is happening/not happening?
The logs are detecting the correct person leaving and arriving, but when someone leaves or arrives it is now announcing incorrectly once, then a moment later the correct announcement
**4) Post a Green Snapshot of the piston!
5) Attach logs after turning logging level to Full
4/30/2019, 10:13:05 AM +119ms
+1ms â•”Received event [Mojo Manor].time = 1556637185810 with a delay of -691ms
+175ms â•‘RunTime Analysis CS > 28ms > PS > 97ms > PE > 50ms > CE
+178ms â•‘Runtime (46385 bytes) successfully initialized in 97ms (v0.3.10a.20190223) (176ms)
+179ms â•‘â•”Execution stage started
+187ms ║║Cancelling condition #1’s schedules…
+209ms â•‘â•‘Calculating (string) Well, it seems that + (string) Eric >> (string) Well, it seems that Eric
+213ms â•‘â•‘Calculating (string) Well, it seems that Eric + (string) has left the house, >> (string) Well, it seems that Eric has left the house,
+217ms â•‘â•‘Calculating (string) Well, it seems that Eric has left the house, + (string) oh thank god >> (string) Well, it seems that Eric has left the house, oh thank god
+223ms â•‘â•‘Executed virtual command setVariable (3ms)
+225ms â•‘â•‘Condition #10 evaluated true (31ms)
+226ms â•‘â•‘Condition group #9 evaluated true (state did not change) (33ms)
+229ms ║║Cancelling statement #33’s schedules…
+333ms â•‘â•‘Executed physical command [Echo - Kitchen].speak([ Well, it seems that Eric has left the house, oh thank god]) (97ms)
+334ms â•‘â•‘Executed [Echo - Kitchen].speak (99ms)
+337ms ║╚Execution stage complete. (158ms)
+338ms ╚Event processed successfully (338ms)
4/30/2019, 10:12:55 AM +536ms
+1ms â•”Received event [Eric].presence = not present with a delay of 96ms
+138ms â•‘RunTime Analysis CS > 14ms > PS > 78ms > PE > 45ms > CE
+141ms â•‘Runtime (46383 bytes) successfully initialized in 78ms (v0.3.10a.20190223) (138ms)
+144ms â•‘â•”Execution stage started
+162ms ║║Comparison (time) 36775685 is_between (time) 28800000 … (time) 75600000 = true (10ms)
+164ms â•‘â•‘Time restriction check passed
+166ms â•‘â•‘Condition #32 evaluated true (17ms)
+167ms â•‘â•‘Condition group #null evaluated true (state did not change) (18ms)
+205ms â•‘â•‘Comparison (enum) not present changes_to (string) present = false (1ms)
+210ms â•‘â•‘Condition #2 evaluated false (40ms)
+211ms ║║Cancelling statement #1’s schedules…
+213ms â•‘â•‘Condition group #1 evaluated false (state did not change) (42ms)
+245ms â•‘â•‘Comparison (enum) not present changes_to (string) not present = true (1ms)
+255ms ║║Cancelling condition #10’s schedules…
+258ms ║║Cancelling statement #26’s schedules…
+266ms â•‘â•‘Executed virtual command setVariable (4ms)
+271ms â•‘â•‘Executed virtual command wait (1ms)
+273ms â•‘â•‘Requesting a wake up for Tue, Apr 30 2019 @ 10:13:05 AM CDT (in 10.0s)
+277ms â•‘â•‘Condition #10 evaluated true (61ms)
+278ms ║║Cancelling condition #9’s schedules…
+279ms â•‘â•‘Condition group #9 evaluated true (state changed) (63ms)
+282ms ║║Cancelling statement #33’s schedules…
+566ms â•‘â•‘Executed physical command [Echo - Kitchen].speak([ Well, it seems that Patrick has left the house, oh thank you jesus]) (277ms)
+567ms â•‘â•‘Executed [Echo - Kitchen].speak (279ms)
+573ms ║╚Execution stage complete. (432ms)
+575ms â•‘Setting up scheduled job for Tue, Apr 30 2019 @ 10:13:05 AM CDT (in 9.7s)
+584ms ╚Event processed successfully (584ms)
REMOVE BELOW AFTER READING
If a solution is found for your question then please mark the post as the solution.