Help with using multiple locations in a variable


#21

So it seemed to send the Push notification when he arrived at work but when he left it didn’t send the notification. Here are the logs.
2/5/2018, 4:57:54 PM +766ms
+5ms ╔Starting piston… (v0.2.102.20180116)
+435ms ║╔Subscribing to devices…
+456ms ║║Subscribing to Jane-beta.arrivingAtPlace…
+473ms ║║Subscribing to Tom-beta.arrivingAtPlace…
+489ms ║║Subscribing to Jane-beta.leavingPlace…
+505ms ║║Subscribing to Tom-beta.leavingPlace…
+629ms ║╚Finished subscribing (226ms)
+1231ms ╚Piston successfully started (1231ms)
2/5/2018, 4:02:35 PM +909ms
+1ms ╔Received event [Tom-beta].arrivingAtPlace = with a delay of 262ms
+82ms ║RunTime Analysis CS > 15ms > PS > 46ms > PE > 21ms > CE
+84ms ║Runtime (41616 bytes) successfully initialized in 46ms (v0.2.102.20180116) (82ms)
+85ms ║╔Execution stage started
+99ms ║║Comparison (string) changes_away_from (string) = false (2ms)
+101ms ║║Cancelling condition #4’s schedules…
+101ms ║║Condition #4 evaluated false (13ms)
+102ms ║║Cancelling condition #1’s schedules…
+103ms ║║Condition group #1 evaluated false (state changed) (14ms)
+115ms ║║Condition #8 evaluated false (10ms)
+116ms ║║Condition group #5 evaluated false (state did not change) (12ms)
+118ms ║╚Execution stage complete. (32ms)
+119ms ╚Event processed successfully (118ms)
2/5/2018, 12:56:11 PM +219ms
+1ms ╔Received event [Tom-beta].arrivingAtPlace = Tom’s Work with a delay of 78ms
+90ms ║RunTime Analysis CS > 18ms > PS > 51ms > PE > 22ms > CE
+93ms ║Runtime (41617 bytes) successfully initialized in 51ms (v0.2.102.20180116) (90ms)
+94ms ║╔Execution stage started
+111ms ║║Comparison (string) Tom’s Work changes_away_from (string) = true (1ms)
+113ms ║║Cancelling condition #4’s schedules…
+113ms ║║Condition #4 evaluated true (13ms)
+114ms ║║Cancelling condition #1’s schedules…
+115ms ║║Condition group #1 evaluated true (state changed) (16ms)
+118ms ║║Cancelling statement #2’s schedules…
+127ms ║║Calculating (string) Tom-beta + (string) is arriving at >> (string) Tom-beta is arriving at
+131ms ║║Calculating (string) Tom-beta is arriving at + (string) Tom’s Work >> (string) Tom-beta is arriving at Tom’s Work
+133ms ║║Calculating (string) Tom-beta is arriving at Tom’s Work + (string) . >> (string) Tom-beta is arriving at Tom’s Work.
+138ms ║║Tom-beta is arriving at Tom’s Work.
+139ms ║║Executed virtual command log (2ms)
+147ms ║║Calculating (string) Tom-beta + (string) is arriving >> (string) Tom-beta is arriving
+150ms ║║Calculating (string) Tom-beta is arriving + (string) Tom’s Work >> (string) Tom-beta is arriving Tom’s Work
+153ms ║║Calculating (string) Tom-beta is arriving Tom’s Work + (string) . >> (string) Tom-beta is arriving Tom’s Work.
+165ms ║║Executed virtual command sendPushNotification (8ms)
+182ms ║║Condition #8 evaluated false (13ms)
+183ms ║║Condition group #5 evaluated false (state did not change) (15ms)
+186ms ║╚Execution stage complete. (93ms)
+187ms ╚Event processed successfully (188ms)
2/5/2018, 12:12:31 PM +69ms
+1ms ╔Received event [Tom-beta].leavingPlace = with a delay of 59ms
+76ms ║RunTime Analysis CS > 14ms > PS > 37ms > PE > 25ms > CE
+78ms ║Runtime (41611 bytes) successfully initialized in 37ms (v0.2.102.20180116) (77ms)
+79ms ║╔Execution stage started
+99ms ║║Condition #4 evaluated false (13ms)
+100ms ║║Condition group #1 evaluated false (state did not change) (15ms)
+112ms ║║Comparison (string) changes_away_from (string) = false (1ms)
+114ms ║║Condition #8 evaluated false (11ms)
+115ms ║║Condition group #5 evaluated false (state did not change) (12ms)
+117ms ║╚Execution stage complete. (38ms)


#22

Interesting. Were there any events after that in the log? According to that, leavingPlace only triggered the piston one time at 12:12:31, and since it was blank the piston (rightfully) ignored it. There wasn’t an instance where leavingPlace = Tom’s Work?


#23

Yeah I noticed that also. It should have triggered him leaving as I have the ST presence sensor still setup and working as I test this one. It notified me that he had left work but this one didn’t.


#24

As a workaround, we could change the departing statement to "if currentPlace changes to “” ". In the meantime, I’ll set up a piston to log leavingPlace and a few other variables on events so I can see if mine behaved the same or if the failure today was a fluke.


#25

Another thing to keep in mind is that I only want it to send a notification for when we get to our work locations and leave our work locations. I don’t want it telling me when we leave and get home because I already have that piston setup.


#26

This should meet what you want. You’ll have to edit if the places typed in don’t exactly match your locations as saved in ST.

The departing IF statement has two conditions - either of these should work on their own, but I included an alternate approach since you didn’t get a message when Tom left work today. Using them both may result in duplicate messages due to timing differences of the two parameters changing:


#27

Yes, I think this is what I was trying to accomplish without having to use a whole pile of IF statements. I will see if this works tomorrow. I just put in the first IF condition for the leaving work. Let’s see how that goes. Thanks for your help!


#28

Well we are not quite there yet. This morning when Tom left home the notification said Tom has left Tom’s Work. So for some reason, it had currentplaces as Tom’s work.


#29

I’m thinking that was the presence sensors fault, not the piston. Since Tom sensor never triggered yesterday for leaving work, his current place still would have been work.

Can you grab all the logs from today and post them? Did it work correctly when he arrived at work?


#30

No, his presence sensor did have him at home because I got the notification. When I left this morning it said that I left 4 times, but I don’t have it notifying me when I leave Home. It also just said Jane is leaving . Then when I made it to work it didn’t notify me even though my presence sensor says that I am at that location. Here are the logs from this morning:

2/6/2018, 9:23:15 AM +778ms
+1ms ╔Received event [Jane-beta].arrivingAtPlace = with a delay of 87ms
+10244ms ║RunTime Analysis CS > 26ms > PS > 10149ms > PE > 70ms > CE
+10245ms ║Piston waited at a semaphore for 10099ms
+10248ms ║Runtime (41889 bytes) successfully initialized in 10149ms (v0.2.102.20180116) (10245ms)
+10249ms ║╔Execution stage started
+10270ms ║║Comparison (string) is_any_of (string) Tom’s Work,Trutone,Mid-USA = false (3ms)
+10274ms ║║Comparison (string) is_any_of (string) Tom’s Work,Trutone,Mid-USA = false (3ms)
+10276ms ║║Condition #4 evaluated false (21ms)
+10277ms ║║Condition group #1 evaluated false (state did not change) (22ms)
+10296ms ║║Comparison (string) is_any_of (string) Tom’s Work,Trutone,Mid-USA = false (3ms)
+10299ms ║║Comparison (string) Tom’s Work is_any_of (string) Tom’s Work,Trutone,Mid-USA = true (1ms)
+10300ms ║║Condition #8 evaluated true (20ms)
+10301ms ║║Condition group #5 evaluated true (state did not change) (21ms)
+10304ms ║║Cancelling statement #6’s schedules…
+10315ms ║║Calculating (string) Jane-beta + (string) is departing >> (string) Jane-beta is departing
+10321ms ║║Calculating (string) Jane-beta is departing + (string) >> (string) Jane-beta is departing
+10324ms ║║Calculating (string) Jane-beta is departing + (string) . >> (string) Jane-beta is departing .
+10328ms ║║Jane-beta is departing .
+10329ms ║║Executed virtual command log (1ms)
+10338ms ║║Calculating (string) Jane-beta + (string) is leaving >> (string) Jane-beta is leaving
+10343ms ║║Calculating (string) Jane-beta is leaving + (string) >> (string) Jane-beta is leaving
+10346ms ║║Calculating (string) Jane-beta is leaving + (string) . >> (string) Jane-beta is leaving .
+10358ms ║║Executed virtual command sendPushNotification (8ms)
+10361ms ║╚Execution stage complete. (113ms)
+10362ms ╚Event processed successfully (10362ms)
2/6/2018, 9:23:15 AM +770ms
+2ms ╔Received event [Jane-beta].arrivingAtPlace = with a delay of 81ms
+127ms ║RunTime Analysis CS > 24ms > PS > 52ms > PE > 50ms > CE
+129ms ║Runtime (41813 bytes) successfully initialized in 52ms (v0.2.102.20180116) (127ms)
+130ms ║╔Execution stage started
+151ms ║║Comparison (string) is_any_of (string) Tom’s Work,Trutone,Mid-USA = false (3ms)
+154ms ║║Comparison (string) is_any_of (string) Tom’s Work,Trutone,Mid-USA = false (3ms)
+156ms ║║Condition #4 evaluated false (19ms)
+157ms ║║Condition group #1 evaluated false (state did not change) (21ms)
+177ms ║║Comparison (string) is_any_of (string) Tom’s Work,Trutone,Mid-USA = false (3ms)
+180ms ║║Comparison (string) Tom’s Work is_any_of (string) Tom’s Work,Trutone,Mid-USA = true (2ms)
+182ms ║║Condition #8 evaluated true (21ms)
+182ms ║║Condition group #5 evaluated true (state did not change) (22ms)
+185ms ║║Cancelling statement #6’s schedules…
+195ms ║║Calculating (string) Jane-beta + (string) is departing >> (string) Jane-beta is departing
+201ms ║║Calculating (string) Jane-beta is departing + (string) >> (string) Jane-beta is departing
+203ms ║║Calculating (string) Jane-beta is departing + (string) . >> (string) Jane-beta is departing .
+208ms ║║Jane-beta is departing .
+209ms ║║Executed virtual command log (1ms)
+217ms ║║Calculating (string) Jane-beta + (string) is leaving >> (string) Jane-beta is leaving
+222ms ║║Calculating (string) Jane-beta is leaving + (string) >> (string) Jane-beta is leaving
+225ms ║║Calculating (string) Jane-beta is leaving + (string) . >> (string) Jane-beta is leaving .
+237ms ║║Executed virtual command sendPushNotification (8ms)
+240ms ║╚Execution stage complete. (110ms)
+241ms ╚Event processed successfully (241ms)
2/6/2018, 9:23:13 AM +974ms
+1ms ╔Received event [Jane-beta].arrivingAtPlace = Home with a delay of 96ms
+117ms ║RunTime Analysis CS > 18ms > PS > 50ms > PE > 50ms > CE
+120ms ║Runtime (41811 bytes) successfully initialized in 50ms (v0.2.102.20180116) (118ms)
+121ms ║╔Execution stage started
+141ms ║║Comparison (string) Home is_any_of (string) Tom’s Work,Trutone,Mid-USA = false (3ms)
+145ms ║║Comparison (string) is_any_of (string) Tom’s Work,Trutone,Mid-USA = false (3ms)
+147ms ║║Condition #4 evaluated false (20ms)
+148ms ║║Condition group #1 evaluated false (state did not change) (21ms)
+167ms ║║Comparison (string) is_any_of (string) Tom’s Work,Trutone,Mid-USA = false (4ms)
+169ms ║║Comparison (string) Tom’s Work is_any_of (string) Tom’s Work,Trutone,Mid-USA = true (1ms)
+171ms ║║Condition #8 evaluated true (20ms)
+172ms ║║Condition group #5 evaluated true (state did not change) (21ms)
+175ms ║║Cancelling statement #6’s schedules…
+185ms ║║Calculating (string) Jane-beta + (string) is departing >> (string) Jane-beta is departing
+191ms ║║Calculating (string) Jane-beta is departing + (string) >> (string) Jane-beta is departing
+194ms ║║Calculating (string) Jane-beta is departing + (string) . >> (string) Jane-beta is departing .
+199ms ║║Jane-beta is departing .
+200ms ║║Executed virtual command log (1ms)
+208ms ║║Calculating (string) Jane-beta + (string) is leaving >> (string) Jane-beta is leaving
+214ms ║║Calculating (string) Jane-beta is leaving + (string) >> (string) Jane-beta is leaving
+217ms ║║Calculating (string) Jane-beta is leaving + (string) . >> (string) Jane-beta is leaving .
+230ms ║║Executed virtual command sendPushNotification (9ms)
+233ms ║╚Execution stage complete. (112ms)
+234ms ╚Event processed successfully (234ms)
2/6/2018, 9:23:10 AM +921ms
+1ms ╔Received event [Jane-beta].leavingPlace = with a delay of 78ms
+103ms ║RunTime Analysis CS > 14ms > PS > 44ms > PE > 46ms > CE
+106ms ║Runtime (41807 bytes) successfully initialized in 44ms (v0.2.102.20180116) (105ms)
+107ms ║╔Execution stage started
+131ms ║║Comparison (string) is_any_of (string) Tom’s Work,Trutone,Mid-USA = false (3ms)
+136ms ║║Comparison (string) is_any_of (string) Tom’s Work,Trutone,Mid-USA = false (4ms)
+138ms ║║Condition #4 evaluated false (23ms)
+139ms ║║Condition group #1 evaluated false (state did not change) (26ms)
+159ms ║║Comparison (string) is_any_of (string) Tom’s Work,Trutone,Mid-USA = false (5ms)
+163ms ║║Comparison (string) Tom’s Work is_any_of (string) Tom’s Work,Trutone,Mid-USA = true (2ms)
+165ms ║║Condition #8 evaluated true (22ms)
+167ms ║║Condition group #5 evaluated true (state did not change) (23ms)
+170ms ║║Cancelling statement #6’s schedules…
+184ms ║║Calculating (string) Jane-beta + (string) is departing >> (string) Jane-beta is departing
+189ms ║║Calculating (string) Jane-beta is departing + (string) >> (string) Jane-beta is departing
+193ms ║║Calculating (string) Jane-beta is departing + (string) . >> (string) Jane-beta is departing .
+198ms ║║Jane-beta is departing .
+198ms ║║Executed virtual command log (1ms)
+207ms ║║Calculating (string) Jane-beta + (string) is leaving >> (string) Jane-beta is leaving
+211ms ║║Calculating (string) Jane-beta is leaving + (string) >> (string) Jane-beta is leaving
+214ms ║║Calculating (string) Jane-beta is leaving + (string) . >> (string) Jane-beta is leaving .
+228ms ║║Executed virtual command sendPushNotification (9ms)
+231ms ║╚Execution stage complete. (123ms)
+232ms ╚Event processed successfully (232ms)
2/6/2018, 6:33:10 AM +624ms
+2ms ╔Received event [Tom-beta].leavingPlace = Tom’s Work with a delay of 86ms
+128ms ║RunTime Analysis CS > 25ms > PS > 60ms > PE > 43ms > CE
+130ms ║Runtime (41813 bytes) successfully initialized in 60ms (v0.2.102.20180116) (128ms)
+131ms ║╔Execution stage started
+153ms ║║Comparison (string) is_any_of (string) Tom’s Work,Trutone,Mid-USA = false (3ms)
+156ms ║║Comparison (string) is_any_of (string) Tom’s Work,Trutone,Mid-USA = false (3ms)
+158ms ║║Condition #4 evaluated false (21ms)
+159ms ║║Condition group #1 evaluated false (state did not change) (23ms)
+173ms ║║Comparison (string) Home is_any_of (string) Tom’s Work,Trutone,Mid-USA = false (3ms)
+176ms ║║Comparison (string) Tom’s Work is_any_of (string) Tom’s Work,Trutone,Mid-USA = true (1ms)
+177ms ║║Cancelling condition #8’s schedules…
+178ms ║║Condition #8 evaluated true (16ms)
+179ms ║║Cancelling condition #5’s schedules…
+180ms ║║Condition group #5 evaluated true (state changed) (19ms)
+182ms ║║Cancelling statement #6’s schedules…
+192ms ║║Calculating (string) Tom-beta + (string) is departing >> (string) Tom-beta is departing
+196ms ║║Calculating (string) Tom-beta is departing + (string) Tom’s Work >> (string) Tom-beta is departing Tom’s Work
+198ms ║║Calculating (string) Tom-beta is departing Tom’s Work + (string) . >> (string) Tom-beta is departing Tom’s Work.
+203ms ║║Tom-beta is departing Tom’s Work.
+203ms ║║Executed virtual command log (1ms)
+211ms ║║Calculating (string) Tom-beta + (string) is leaving >> (string) Tom-beta is leaving
+215ms ║║Calculating (string) Tom-beta is leaving + (string) Tom’s Work >> (string) Tom-beta is leaving Tom’s Work
+217ms ║║Calculating (string) Tom-beta is leaving Tom’s Work + (string) . >> (string) Tom-beta is leaving Tom’s Work.
+230ms ║║Executed virtual command sendPushNotification (9ms)
+232ms ║╚Execution stage complete. (101ms)
+234ms ╚Event processed successfully (234ms)
2/6/2018, 6:33:10 AM +329ms
+1ms ╔Received event [Tom-beta].arrivingAtPlace = with a delay of 68ms
+92ms ║RunTime Analysis CS > 20ms > PS > 35ms > PE > 38ms > CE
+95ms ║Runtime (41810 bytes) successfully initialized in 35ms (v0.2.102.20180116) (94ms)
+96ms ║╔Execution stage started
+114ms ║║Comparison (string) is_any_of (string) Tom’s Work,Trutone,Mid-USA = false (3ms)
+118ms ║║Comparison (string) is_any_of (string) Tom’s Work,Trutone,Mid-USA = false (3ms)
+120ms ║║Cancelling condition #4’s schedules…
+121ms ║║Condition #4 evaluated false (18ms)
+122ms ║║Cancelling condition #1’s schedules…
+122ms ║║Condition group #1 evaluated false (state changed) (20ms)
+140ms ║║Comparison (string) Home is_any_of (string) Tom’s Work,Trutone,Mid-USA = false (3ms)
+144ms ║║Comparison (string) is_any_of (string) Tom’s Work,Trutone,Mid-USA = false (3ms)
+145ms ║║Condition #8 evaluated false (19ms)
+146ms ║║Condition group #5 evaluated false (state did not change) (21ms)
+149ms ║╚Execution stage complete. (54ms)
+150ms ╚Event processed successfully (150ms)
2/6/2018, 6:31:49 AM +856ms
+2ms ╔Received event [Tom-beta].arrivingAtPlace = Tom’s Work with a delay of 83ms
+105ms ║RunTime Analysis CS > 17ms > PS > 49ms > PE > 39ms > CE
+108ms ║Runtime (41819 bytes) successfully initialized in 49ms (v0.2.102.20180116) (105ms)
+109ms ║╔Execution stage started
+129ms ║║Comparison (string) is_any_of (string) Tom’s Work,Trutone,Mid-USA = false (3ms)
+131ms ║║Comparison (string) Tom’s Work is_any_of (string) Tom’s Work,Trutone,Mid-USA = true (1ms)
+133ms ║║Cancelling condition #4’s schedules…
+134ms ║║Condition #4 evaluated true (19ms)
+135ms ║║Cancelling condition #1’s schedules…
+136ms ║║Condition group #1 evaluated true (state changed) (22ms)
+138ms ║║Cancelling statement #2’s schedules…
+148ms ║║Calculating (string) Tom-beta + (string) is arriving at >> (string) Tom-beta is arriving at
+151ms ║║Calculating (string) Tom-beta is arriving at + (string) Tom’s Work >> (string) Tom-beta is arriving at Tom’s Work
+154ms ║║Calculating (string) Tom-beta is arriving at Tom’s Work + (string) . >> (string) Tom-beta is arriving at Tom’s Work.
+159ms ║║Tom-beta is arriving at Tom’s Work.
+159ms ║║Executed virtual command log (1ms)
+167ms ║║Calculating (string) Tom-beta + (string) has made it to >> (string) Tom-beta has made it to
+171ms ║║Calculating (string) Tom-beta has made it to + (string) Tom’s Work >> (string) Tom-beta has made it to Tom’s Work
+173ms ║║Calculating (string) Tom-beta has made it to Tom’s Work + (string) . >> (string) Tom-beta has made it to Tom’s Work.
+187ms ║║Executed virtual command sendPushNotification (10ms)
+206ms ║║Comparison (string) Home is_any_of (string) Tom’s Work,Trutone,Mid-USA = false (3ms)
+210ms ║║Comparison (string) is_any_of (string) Tom’s Work,Trutone,Mid-USA = false (2ms)
+211ms ║║Condition #8 evaluated false (21ms)
+212ms ║║Condition group #5 evaluated false (state did not change) (22ms)
+215ms ║╚Execution stage complete. (106ms)
+216ms ╚Event processed successfully (216ms)
2/6/2018, 5:46:56 AM +147ms
+1ms ╔Received event [Tom-beta].leavingPlace = Home with a delay of 310ms
+10161ms ║RunTime Analysis CS > 25ms > PS > 10078ms > PE > 59ms > CE
+10163ms ║Piston waited at a semaphore for 10022ms
+10165ms ║Runtime (41886 bytes) successfully initialized in 10078ms (v0.2.102.20180116) (10163ms)
+10166ms ║╔Execution stage started
+10191ms ║║Comparison (string) is_any_of (string) Tom’s Work,Trutone,Mid-USA = false (3ms)
+10195ms ║║Comparison (string) is_any_of (string) Tom’s Work,Trutone,Mid-USA = false (2ms)
+10196ms ║║Condition #4 evaluated false (23ms)
+10197ms ║║Condition group #1 evaluated false (state did not change) (25ms)
+10213ms ║║Comparison (string) Home is_any_of (string) Tom’s Work,Trutone,Mid-USA = false (3ms)
+10217ms ║║Comparison (string) Home is_any_of (string) Tom’s Work,Trutone,Mid-USA = false (3ms)
+10219ms ║║Condition #8 evaluated false (18ms)
+10220ms ║║Condition group #5 evaluated false (state did not change) (20ms)
+10222ms ║╚Execution stage complete. (56ms)
+10223ms ╚Event processed successfully (10224ms)
2/6/2018, 5:46:56 AM +90ms
+1ms ╔Received event [Tom-beta].leavingPlace = with a delay of 56ms
+93ms ║RunTime Analysis CS > 13ms > PS > 37ms > PE > 42ms > CE
+95ms ║Runtime (41800 bytes) successfully initialized in 37ms (v0.2.102.20180116) (93ms)
+96ms ║╔Execution stage started
+120ms ║║Comparison (string) is_any_of (string) Tom’s Work,Trutone,Mid-USA = false (3ms)
+123ms ║║Comparison (string) is_any_of (string) Tom’s Work,Trutone,Mid-USA = false (3ms)
+125ms ║║Condition #4 evaluated false (22ms)
+126ms ║║Condition group #1 evaluated false (state did not change) (24ms)
+141ms ║║Comparison (string) Home is_any_of (string) Tom’s Work,Trutone,Mid-USA = false (3ms)
+145ms ║║Comparison (string) is_any_of (string) Tom’s Work,Trutone,Mid-USA = false (3ms)
+147ms ║║Condition #8 evaluated false (18ms)
+148ms ║║Condition group #5 evaluated false (state did not change) (19ms)
+150ms ║╚Execution stage complete. (54ms)
+151ms ╚Event processed successfully (151ms)

Here is the current piston:


#31

Perfect, thanks! With these logs I’ll be able to figure out why it’s falling down and suggest some changes, but not until later today. What you’re attempting to do is simple in terms of a piston - we just need to figure out what parameters of the webCoRE presence sensor serve it best and most reliably. We’ll figure it out!


#32

Ok, let’s pick these two events to dissect what’s happening. One 6:31am Tom’s arrival was reported as “Tom’s Work” and you should have received a corresponding message, and one where Tom’s arrival was reported blank, and no message should have been sent.

First, the arrives at work one

This seems to have worked perfectly according to the logs.

Next we’ll look at one where the arrivalplace was blank and see what happens there:

This seems to have worked too. No push message, nothing logged to the console.

Next I’ll look at how the piston operates when your presence sensor is the one triggering.

One question first - when you say the piston notified you 4 times that you left - did you receive 4 messages or do you mean you see it in the log 4 times?


#33

OK, these two have some issues we can sort out. These events happen in quick succession when you arrive home. First your Leaving Place changes reports blank because you’re leaving an undefined area when you get home - and then a few seconds later it reports your Arriving Place as Home. Neither of these should send a message, so let’s see where it all goes sideways. :slight_smile:

It looks like Tom’s leaving place was still recorded as “Tom’s Work”. I have no idea why, but that triggered your 2nd IF statement to evaluate TRUE and the piston started to build a “is departing/leaving” message. Since your phone triggered the piston and your Leaving Place was blank, it recorded “Jane-beta is departing/leaving” for your push message and log.

Looking at it, the process repeats verbatim 3 seconds later when your Arriving Place changes to home and triggers the piston to run again:

Since you only have a couple presence sensors and locations, we can simplify your piston to this and you won’t get anymore duplicate notices. Just click on the “on events from” statements and add both presence sensors and you’re done. I only had one to add, but everything else will work with multiple selected.


#34

Thanks, I will try it. Sorry for not replying but all the emails from webcore.co are being directed to my quarantine file and I don’t see them until the quarantine email comes in at night. I have set my email account to accept these emails, but it still doesn’t. Technology!?


#35

No problem! Is the latest piston working for you now?


#36

I have a simliar piston. Not trying to limit to specific areas,but basically Person 1 arrived at X, Person 1 is arriving at Y. I find that Current Place works great for me, but arriving at, leaving, last place, etc are a little buggy. I dont think its the piston, I’m confident that its the set up of the rings on the places. Like maybe I’m just on the edge of the outside ring, it will show me as arriving at X, then Arrving at “”, then Arriving at X again.

As expected I am getting multiple alerts. I’m working on adding a variable to keep it from reporting more than once per minute or two. I believe that will fix my problem.

I just wanted to share my experience with ArrivingAtPlace. I like using Arriving at place a little better because it gives you a little more time to complete an action. Like open the garage door. I find that CurrentPlace might take a little too long, and then I’m waiting for 15 seconds for my garage door to open.


#37

It worked for Tom arriving today but it hasn’t worked for me arriving at my location today. When I look at the presence sensor in ST it says that I am Away and ~.69KM from Home and ~4.56KM from work. However, I am sitting at work. I find that these presence sensors don’t seem as reliable as the ST one. The ST one has me at Work. And it isn’t the circles because the webCore presence sensor has had me at Work in the past.


#38

Yeah, there’s nothing we can write in a piston to get around that. :frowning:

I use the Life360 integration and it’s accurate for me arriving at home 99% of the time, but it only allows has two states: present or not present (at home).

Can you edit the piston to use ST sensors? I haven’t messed with those in a while and in the past they had the same location restriction as Life360.


#39

Well I have the ST presence sensors already setup for different Locations and I have a piston working for this. But you have to setup different Locations in ST and then you have to add each presence sensor to those locations and setup a piston in each of those locations as well… It works fine when it is setup. I just thought that I would try the webcore sensors because I didn’t have to add multiple locations in ST, etc. and I could run one piston for all of the presence sensors and locations. I might just stick to the way I have it setup. It has been working good. I looked at Life360 before setting everything up originally a year ago but you have to subscribe and I am cheap. So I thought, hmm, I can set this up for free!:smirk:


#40

I don’t pay anything for 360… I think all you get with a subscription is a longer history for each person. Google maps already knows everything about everywhere I go and e-mails me a monthly summary!

I a fellow miser. :slight_smile: