Webcore Presence Notification


#1

1) Give a description of the problem
A piston to notify when the presence sensor (phone) has arrived at any of the predefined locations.
I am sure this is possible, but how do I filter out blank Notifications, or should arrivingatplace change if you have only left a place, but not yet arrived at a another place.

2) What is the expected behavior?
Notification is ST app

3) What is happening/not happening?
Getting blank notifications also, so "xxx has arrived "

**4) Post a Green Snapshot of the piston![image|45x37]

5) Attach any logs (From ST IDE and by turning logging level to Full)


#2

I prefer to have both arrival and departure messages… so I do it like this:


#3

If you’re looking for a condition 'current place is not null then try:


(double quotes)
.
or
.

(count(ā€œstringā€) returns 1, count("") returns 0)


#4

Thanks, I’ll give it a go


#5

OK… I have what is probably a stupid question/issue but I’ve been stumped for the past 3 days. I just deployed ST hub and got webCore setup over the weekend. Since then I’ve been trying to get my iPhone (v8 IOS 11.2.1) presence sensors working with places to track coming and going from work, school, and of course home.

In this post there is an image of the Edit Condition screen. To the right of the device itself (named Robin) there is a drop-down and it says ā€œcurrent placeā€.

Here in lies my first issue… I only have presence and status in my drop-down. When I restore other users pistons that appear similar to whats being described in this post none of them work. In fact, the conditions all have to be modified beyond just changing the presence sensor device to an iPhone.

Here in lies my second issue…As a workaround, I discovered I could create a global variable for a specific phone and when using the variable as the device I’m then able to select current place from the drop-down. However, as you’ve probably guessed, that although good, in theory, it doesn’t work either.

I’ve created a simple piston that I run manually that checks for my presence and if I’m present at home then log to the console currentPlace, peviousPlace, arrvingAtPlace, and leavingPlace just to see if they have anything in them. Unfortunately, they all return null data and if I use a conditional piston (if variable’s currentplace changes) and leave my house nothing whatsoever even happens.

Can someone please tell me why the heck my webCore doesn’t look/work like this post and if its not supposed to then why is my workaround not working?. Thanks in advance to any kind soul willing to take a moment to help clarify my issue(s).


#6

You only get the current place attribute when using the webCoRE presence app… it can be downloaded from the iOS App Store or Android Play Store.


#7

Sorry, forgot to add those details. I’ve got the ST and webCoRE apps installed on all my phones. Ive also selected every phone under avail devices.

I have the following items installed using github integration in my ST IDE (webCoRE, webCoRE Dashboard, webCoRE Piston, webCoRE Storage, and the webCoRE Presence Sensor DTH).


#8

The Current Place attribute will only be available when ONLY webCoRE Presence devices are selected… if you also select other presence devices in the same statement, like the ST arrival sensors, ST mobile app etc, the attribute will not show.

Attributes don’t show if they are not applicable to ALL devices selected.


#9

OK then maybe that’s where the root of my issue lies. Can you please elaborate on what a webCoRE Presence sensor device is and how I use/select it?

A quick rundown of what Ive installed/configured… I ran through the setup of my ST hub which included installing the ST app on my phone, I then connected a couple zwave light switches, I then configured the webCoRE SmartApp using ST IDE and github integration which included installing the weCoRE app on my phone, I launched the webCoRE dashboard on my PC and created a couple simple pistons for basic automation, I then moved to what I’m currently trying to get working… presence tracking.

When I attempt to add say an If condition, the first thing I select is what to compare so I select Physical device(s) as shown earlier in this post. I then select my iPhone under physical devices from the drop-down, I then move onto the final step which is to try and select currentPlace from the drop-down to the right but Im only provided with presence and status.

Where did it all go so terribly wrong?

PS - At the moment I dont have any other sensors/actuators, virtual or physical configured/connected aside from 3 iphones, and 4 switches. Also, Im attempting to select all three phones, or one phone at a time and the result is still the same.


#10

You may be confusing the webCoRE smartapp installed in ST with the webCoRE app installed directly from the iOS App Store?


#11

I’m actially 80% through creating a video covering webCoRE presence installation and use… might have time to finish it on Sunday.


#12

Anything is possible but I dont think so… I have the ST app including the ST webCoRE automation SmartApp AND the standalone webCoRE iPhone app installed on my phone. Both apps were installed from the app store and the webCoRE automation SmartApp was installed using your installation video (thank you for that by the way!).


#13

After installing the standalone webCoRE app, did you access settings (via that app) and setup a location followed by setting up the Presence device?

If so, Can you show me a screenshot of the Presence device that would have appeared within the ST app.


#14

Robin… you’re a genius :smile: That was the missing piece. However, now I have two physical devices in my drop down. One that is limited to presence and status and the new one with all the additional tracking items.

Should I have two per phone? If so, I know how to use the new one but what would I use the limited one for? If not, how do I now get rid of the original physical device?


#15

I doubt the limited one has anything to do with webCoRE… you must have setup a ST mobile presence sensor within the ST app… delete it or ignore it.


#16

Would it happen to be the webCoRE Presence Sensor DTH configured on the ST IDE from github or do I still need that?


#17

You still need that…


#18

The webCoRE presence device looks like this:

The ST presence device looks like this:

When viewing the ST presence device, click the cog symbol and then click ā€˜remove’


#19

Found it and you were correct. I manually added it as a presence sensor ā€œthingā€ inside the ST app. It been removed it and the device scan found the new webCoRE presence sensor for the phone and the dashboard is updated and now reflects a single device for my phone.

Thank you SO much for getting me squared away. I really wish I’d gotten out of my own way sooner and asked for some help.


#20

Does anyone know what value I should be using when sending a notification? I want the message to include the ArrivingAtPlace value for the alerting device.

Im currently using {$currentEventDevice} is arriving at {[$currentEventDevice:ArrivingAtPlace]} but its not working. I receive the alert when it changes but it doesnt include the actual ArrivingAtPlace value.