Arrival of people including multiple people at once


#182

My some very minor teaks to my version (corrected some Grammer in the announcements and removed logging since it does seem to be working correctly now). It is below for your reference. If you include your code I will look and see what might be causing the ‘Jane and Jane’ instance.


#183

Here is what I am using now. See if you can see why it repeats the first name when multiple people are coming and going.


#184

Your NamesIsAre variable expression in Line #92 is different than what I have? Maybe try to change that to what I have in my piston?


#185

Thanks, I have made the change. I will see what happens and report back.


#186

Just to keep everything the same I have taken @scottma61 changes and put it to the standard piston ready for a standard import. I have also updated the main thread.


#187

Arrival not working at all, departure works fine.


#188

Where is your motion sensor?


#189

Entrance to home


#190

inside or outside? If its inside you may need to remove the wait on line 81 or set it to don’t cancel on event change.


#191

I recently got my Door Sensors working by connecting Konnected to my old security system. I want to now use our Presence changes to “Present” and either of the Doors status changes to “Open” and to then play the greeting. What I have right now isn’t working. Can someone help with this?


#192

That’s because you put them in the wrong place, take a look again at my piston jmo67. The present part was already happening in the core part of the piston so you didn’t need to change that all you need to do was add your contact instead of the motion. It’s best to have it on closed as well, as then your be in the house to hear it. On open it will fire before your in


#193

I am getting multiple notifications and speaking when people are arriving.

Here is a part of the log:

+1ms ╔Starting piston… (v0.3.105.20180628)
+398ms ║╔Subscribing to devices…
+431ms ║║Subscribing to Jane.presence…
+446ms ║║Subscribing to Lauren.presence…
+458ms ║║Subscribing to Ryan.presence…
+470ms ║║Subscribing to Tom.presence…
+482ms ║║Subscribing to Front Door.contact…
+496ms ║║Subscribing to Garage Door.contact…
+580ms ║║Subscribing to Kitchen Sonos…
+580ms ║╚Finished subscribing (201ms)
+603ms ║Calculating (datetime) 1532970143111 - (datetime) 1532967900338 >> (datetime) 2242773
+607ms ║Comparison (datetime) 2242773 is_greater_than (integer) 350000 = true (2ms)
+624ms ║Calculating (integer) 4 - (integer) 1 >> (integer) 3
+627ms ║Comparison (integer) 6 is_inside_of_range (integer) 0 … (integer) 3 = false (3ms)
+629ms ║Cancelling condition #8’s schedules…
+629ms ║Cancelling condition #2’s schedules…
+642ms ║Cancelling condition #80’s schedules…
+642ms ║Cancelling condition #55’s schedules…
+647ms ║Comparison (boolean) true is (boolean) false = false (1ms)
+654ms ║Comparison (time) 46943164 happens_daily_at (datetime) 1532967900338 = false (1ms)
+663ms ║Cancelling statement #49’s schedules…
+667ms ║Requesting time schedule wake up at Tue, Jul 31 2018 @ 12:25:30 PM EDT
+679ms ║Comparison (boolean) true is (boolean) false = false (0ms)
+684ms ║Comparison (integer) 0 is_greater_than (integer) 0 = false (1ms)
+697ms ║Comparison (time) 46943201 is_between (time) 28800000 … (time) 79200000 = true (5ms)
+698ms ║Time restriction check passed
+719ms ║Setting up scheduled job for Tue, Jul 31 2018 @ 12:25:30 PM EDT (in 84187.108s)
+737ms ╚Piston successfully started (736ms)
7/30/2018, 12:58:04 PM +917ms
+2ms ╔Received event [Front Door].contact = closed with a delay of 147ms
+239ms ║RunTime Analysis CS > 26ms > PS > 70ms > PE > 143ms > CE
+244ms ║Runtime (78700 bytes) successfully initialized in 70ms (v0.3.105.20180628) (240ms)
+245ms ║╔Execution stage started
+258ms ║║Calculating (datetime) 1532969885170 - (datetime) 1532967900338 >> (datetime) 1984832
+263ms ║║Comparison (datetime) 1984832 is_greater_than (integer) 350000 = true (2ms)
+265ms ║║Condition #27 evaluated true (13ms)
+266ms ║║Condition group #24 evaluated true (state did not change) (14ms)
+268ms ║║Cancelling statement #25’s schedules…
+275ms ║║Executed virtual command setVariable (5ms)
+281ms ║║Executed virtual command setVariable (3ms)
+296ms ║║Comparison (enum) closed changes_to (string) closed = true (0ms)
+297ms ║║Cancelling condition #80’s schedules…
+298ms ║║Condition #80 evaluated true (11ms)
+299ms ║║Cancelling condition #55’s schedules…
+300ms ║║Condition group #55 evaluated true (state changed) (13ms)
+308ms ║║Comparison (boolean) true is (boolean) false = false (2ms)
+309ms ║║Condition #29 evaluated false (8ms)
+310ms ║║Condition group #11 evaluated false (state did not change) (24ms)
+318ms ║║Comparison (time) 46685231 happens_daily_at (datetime) 1532967900338 = false (0ms)
+319ms ║║Condition #49 evaluated false (5ms)
+320ms ║║Cancelling statement #49’s schedules…
+324ms ║║Requesting time schedule wake up at Tue, Jul 31 2018 @ 12:25:30 PM EDT
+327ms ║║Condition group #38 evaluated false (state did not change) (14ms)
+335ms ║║Comparison (integer) 0 is_greater_than (integer) 0 = false (2ms)
+336ms ║║Condition #65 evaluated false (6ms)
+337ms ║║Condition group #61 evaluated false (state did not change) (7ms)
+340ms ║╚Execution stage complete. (96ms)
+342ms ║Setting up scheduled job for Tue, Jul 31 2018 @ 12:25:30 PM EDT (in 84445.08s)
+354ms ╚Event processed successfully (354ms)
7/30/2018, 12:57:28 PM +906ms
+1ms ╔Received event [Front Door].contact = open with a delay of 152ms
+223ms ║RunTime Analysis CS > 25ms > PS > 65ms > PE > 133ms > CE
+227ms ║Runtime (78698 bytes) successfully initialized in 65ms (v0.3.105.20180628) (225ms)
+229ms ║╔Execution stage started
+241ms ║║Calculating (datetime) 1532969849142 - (datetime) 1532967900338 >> (datetime) 1948804
+246ms ║║Comparison (datetime) 1948804 is_greater_than (integer) 350000 = true (2ms)
+247ms ║║Condition #27 evaluated true (12ms)
+248ms ║║Condition group #24 evaluated true (state did not change) (14ms)
+251ms ║║Cancelling statement #25’s schedules…
+258ms ║║Executed virtual command setVariable (4ms)
+263ms ║║Executed virtual command setVariable (4ms)
+278ms ║║Comparison (enum) open changes_to (string) closed = false (0ms)
+280ms ║║Cancelling condition #80’s schedules…
+281ms ║║Condition #80 evaluated false (11ms)
+282ms ║║Cancelling condition #55’s schedules…
+283ms ║║Condition group #55 evaluated false (state changed) (14ms)
+284ms ║║Condition group #11 evaluated false (state did not change) (15ms)
+291ms ║║Comparison (time) 46649194 happens_daily_at (datetime) 1532967900338 = false (1ms)
+292ms ║║Condition #49 evaluated false (5ms)
+294ms ║║Cancelling statement #49’s schedules…
+298ms ║║Requesting time schedule wake up at Tue, Jul 31 2018 @ 12:25:30 PM EDT
+300ms ║║Condition group #38 evaluated false (state did not change) (13ms)
+307ms ║║Comparison (integer) 0 is_greater_than (integer) 0 = false (1ms)
+309ms ║║Condition #65 evaluated false (6ms)
+310ms ║║Condition group #61 evaluated false (state did not change) (7ms)
+313ms ║╚Execution stage complete. (85ms)
+315ms ║Setting up scheduled job for Tue, Jul 31 2018 @ 12:25:30 PM EDT (in 84481.118s)
+326ms ╚Event processed successfully (327ms)
7/30/2018, 12:54:54 PM +496ms
+1ms ╔Received event [Garage Door].contact = closed with a delay of 124ms
+208ms ║RunTime Analysis CS > 21ms > PS > 53ms > PE > 133ms > CE
+212ms ║Runtime (78700 bytes) successfully initialized in 53ms (v0.3.105.20180628) (210ms)
+213ms ║╔Execution stage started
+225ms ║║Calculating (datetime) 1532969694717 - (datetime) 1532967900338 >> (datetime) 1794379
+230ms ║║Comparison (datetime) 1794379 is_greater_than (integer) 350000 = true (2ms)
+232ms ║║Condition #27 evaluated true (13ms)
+233ms ║║Condition group #24 evaluated true (state did not change) (14ms)
+235ms ║║Cancelling statement #25’s schedules…
+241ms ║║Executed virtual command setVariable (4ms)
+246ms ║║Executed virtual command setVariable (3ms)
+287ms ║║Comparison (enum) closed changes_to (string) closed = true (1ms)
+289ms ║║Cancelling condition #80’s schedules…
+290ms ║║Condition #80 evaluated true (13ms)
+291ms ║║Cancelling condition #55’s schedules…
+292ms ║║Condition group #55 evaluated true (state changed) (16ms)
+299ms ║║Comparison (boolean) true is (boolean) false = false (1ms)
+301ms ║║Condition #29 evaluated false (8ms)
+302ms ║║Condition group #11 evaluated false (state did not change) (27ms)
+309ms ║║Comparison (time) 46494801 happens_daily_at (datetime) 1532967900338 = false (1ms)
+311ms ║║Condition #49 evaluated false (5ms)
+312ms ║║Cancelling statement #49’s schedules…
+316ms ║║Requesting time schedule wake up at Tue, Jul 31 2018 @ 12:25:30 PM EDT
+318ms ║║Condition group #38 evaluated false (state did not change) (13ms)
+326ms ║║Comparison (integer) 0 is_greater_than (integer) 0 = false (2ms)
+327ms ║║Condition #65 evaluated false (6ms)
+328ms ║║Condition group #61 evaluated false (state did not change) (7ms)
+332ms ║╚Execution stage complete. (118ms)
+333ms ║Setting up scheduled job for Tue, Jul 31 2018 @ 12:25:30 PM EDT (in 84635.509s)
+347ms ╚Event processed successfully (347ms)
7/30/2018, 12:54:50 PM +764ms
+1ms ╔Received event [Garage Door].contact = open with a delay of 126ms
+220ms ║RunTime Analysis CS > 22ms > PS > 50ms > PE > 147ms > CE
+225ms ║Runtime (78698 bytes) successfully initialized in 50ms (v0.3.105.20180628) (222ms)
+226ms ║╔Execution stage started
+239ms ║║Calculating (datetime) 1532969690998 - (datetime) 1532967900338 >> (datetime) 1790660
+244ms ║║Comparison (datetime) 1790660 is_greater_than (integer) 350000 = true (2ms)
+246ms ║║Condition #27 evaluated true (13ms)
+247ms ║║Condition group #24 evaluated true (state did not change) (15ms)
+249ms ║║Cancelling statement #25’s schedules…
+257ms ║║Executed virtual command setVariable (4ms)
+262ms ║║Executed virtual command setVariable (3ms)
+278ms ║║Comparison (enum) open changes_to (string) closed = false (0ms)
+280ms ║║Cancelling condition #80’s schedules…
+280ms ║║Condition #80 evaluated false (11ms)
+282ms ║║Cancelling condition #55’s schedules…
+283ms ║║Condition group #55 evaluated false (state changed) (14ms)
+284ms ║║Condition group #11 evaluated false (state did not change) (15ms)
+291ms ║║Comparison (time) 46491051 happens_daily_at (datetime) 1532967900338 = false (1ms)
+292ms ║║Condition #49 evaluated false (5ms)
+294ms ║║Cancelling statement #49’s schedules…
+298ms ║║Requesting time schedule wake up at Tue, Jul 31 2018 @ 12:25:30 PM EDT
+301ms ║║Condition group #38 evaluated false (state did not change) (15ms)
+309ms ║║Comparison (integer) 0 is_greater_than (integer) 0 = false (2ms)
+310ms ║║Condition #65 evaluated false (6ms)
+311ms ║║Condition group #61 evaluated false (state did not change) (7ms)
+315ms ║╚Execution stage complete. (90ms)
+317ms ║Setting up scheduled job for Tue, Jul 31 2018 @ 12:25:30 PM EDT (in 84639.258s)
+330ms ╚Event processed successfully (330ms)
7/30/2018, 12:44:01 PM +276ms
+2ms ╔Received event [Front Door].contact = closed with a delay of 149ms
+239ms ║RunTime Analysis CS > 25ms > PS > 72ms > PE > 141ms > CE
+244ms ║Runtime (78700 bytes) successfully initialized in 72ms (v0.3.105.20180628) (241ms)
+245ms ║╔Execution stage started
+259ms ║║Calculating (datetime) 1532969041531 - (datetime) 1532967900338 >> (datetime) 1141193
+264ms ║║Comparison (datetime) 1141193 is_greater_than (integer) 350000 = true (2ms)
+266ms ║║Condition #27 evaluated true (13ms)
+267ms ║║Condition group #24 evaluated true (state did not change) (15ms)
+270ms ║║Cancelling statement #25’s schedules…
+276ms ║║Executed virtual command setVariable (4ms)
+282ms ║║Executed virtual command setVariable (4ms)
+297ms ║║Comparison (enum) closed changes_to (string) closed = true (1ms)
+299ms ║║Cancelling condition #80’s schedules…
+300ms ║║Condition #80 evaluated true (11ms)
+301ms ║║Cancelling condition #55’s schedules…
+302ms ║║Condition group #55 evaluated true (state changed) (13ms)
+310ms ║║Comparison (boolean) true is (boolean) false = false (2ms)
+312ms ║║Condition #29 evaluated false (9ms)
+313ms ║║Condition group #11 evaluated false (state did not change) (25ms)
+320ms ║║Comparison (time) 45841593 happens_daily_at (datetime) 1532967900338 = false (0ms)
+322ms ║║Condition #49 evaluated false (6ms)
+323ms ║║Cancelling statement #49’s schedules…
+327ms ║║Requesting time schedule wake up at Tue, Jul 31 2018 @ 12:25:30 PM EDT
+330ms ║║Condition group #38 evaluated false (state did not change) (14ms)
+338ms ║║Comparison (integer) 0 is_greater_than (integer) 0 = false (1ms)
+339ms ║║Condition #65 evaluated false (6ms)
+340ms ║║Condition group #61 evaluated false (state did not change) (7ms)
+343ms ║╚Execution stage complete. (98ms)
+345ms ║Setting up scheduled job for Tue, Jul 31 2018 @ 12:25:30 PM EDT (in 85288.718s)
+357ms ╚Event processed successfully (357ms)
7/30/2018, 12:43:13 PM +551ms
+1ms ╔Received event [Front Door].contact = open with a delay of 99ms
+274ms ║RunTime Analysis CS > 50ms > PS > 78ms > PE > 146ms > CE
+278ms ║Runtime (78704 bytes) successfully initialized in 78ms (v0.3.105.20180628) (276ms)
+279ms ║╔Execution stage started
+292ms ║║Calculating (datetime) 1532968993839 - (datetime) 1532967900338 >> (datetime) 1093501
+297ms ║║Comparison (datetime) 1093501 is_greater_than (integer) 350000 = true (2ms)
+299ms ║║Cancelling condition #27’s schedules…
+300ms ║║Condition #27 evaluated true (14ms)
+301ms ║║Cancelling condition #24’s schedules…
+302ms ║║Condition group #24 evaluated true (state changed) (17ms)
+305ms ║║Cancelling statement #25’s schedules…
+312ms ║║Executed virtual command setVariable (3ms)
+318ms ║║Executed virtual command setVariable (3ms)
+333ms ║║Comparison (enum) open changes_to (string) closed = false (1ms)
+335ms ║║Condition #80 evaluated false (11ms)
+336ms ║║Condition group #55 evaluated false (state did not change) (12ms)
+338ms ║║Condition group #11 evaluated false (state did not change) (14ms)
+346ms ║║Comparison (time) 45793893 happens_daily_at (datetime) 1532967900338 = false (1ms)
+348ms ║║Cancelling condition #49’s schedules…
+349ms ║║Condition #49 evaluated false (8ms)
+351ms ║║Cancelling statement #49’s schedules…
+355ms ║║Requesting time schedule wake up at Tue, Jul 31 2018 @ 12:25:30 PM EDT
+358ms ║║Condition group #38 evaluated false (state did not change) (17ms)
+366ms ║║Comparison (integer) 0 is_greater_than (integer) 0 = false (2ms)
+367ms ║║Condition #65 evaluated false (6ms)
+368ms ║║Condition group #61 evaluated false (state did not change) (7ms)
+372ms ║╚Execution stage complete. (93ms)
+374ms ║Setting up scheduled job for Tue, Jul 31 2018 @ 12:25:30 PM EDT (in 85336.414s)
+414ms ╚Event processed successfully (415ms)
7/30/2018, 12:25:30 PM +144ms
+1ms ╔Received event [Home].time = 1532967930338 with a delay of -195ms
+222ms ║RunTime Analysis CS > 26ms > PS > 69ms > PE > 127ms > CE
+226ms ║Runtime (78705 bytes) successfully initialized in 69ms (v0.3.105.20180628) (224ms)
+227ms ║╔Execution stage started
+239ms ║║Calculating (datetime) 1532967930379 - (datetime) 1532967900338 >> (datetime) 30041
+243ms ║║Comparison (datetime) 30041 is_greater_than (integer) 350000 = false (2ms)
+244ms ║║Condition #27 evaluated false (11ms)
+245ms ║║Condition group #24 evaluated false (state did not change) (12ms)
+262ms ║║Condition #80 evaluated false (11ms)
+263ms ║║Condition group #55 evaluated false (state did not change) (13ms)
+264ms ║║Condition group #11 evaluated false (state did not change) (15ms)
+270ms ║║Comparison (time) 44730411 happens_daily_at (datetime) 1532967900338 = true (0ms)
+271ms ║║Time restriction check passed
+272ms ║║Cancelling condition #49’s schedules…
+273ms ║║Condition #49 evaluated true (6ms)
+274ms ║║Cancelling statement #49’s schedules…
+278ms ║║Requesting time schedule wake up at Tue, Jul 31 2018 @ 12:25:30 PM EDT


#194

@borristhecat I am trying to import your piston jmo67 but I am getting an error. Is it still around for importing?


#195

I assume so? Maybe because I no longer use it then it stops working? Unless your trying to import it to HE? There are issues with importing it between platforms.


#196

Yes, I think I was trying to import it into HE but I did import it into ST OK. I have found that I have to use both HE and ST. Some things run better in HE and some run better in ST with Webcore.


#197

Sounds right.

I think there is a way to do it but I think you have to do a red copy. So import it to ST then do a red file then try and import that to HE.


#198

I am trying to get this working again. but I am having a really hard time getting it to work with my sonos speakers. If i so speak text and restore and set the volume at 50 it is so quite I can’t here anything. And it doesn’t restore to what was playing before. Same thing with speak and resume.


#199

Yeah there is still something not right about that on HE. Reach out to support and it might get fixed if someone else reports it :slight_smile:


#200

I am also trying it in ST and it is not working there either.


#201

Been using this piston for a couple weeks and it is working amazingly well. Thanks!!