webCoRE - Presense Sensor Help!


#1

1) Give a description of the problem
Creating a piston to do specific things when I leave work…

  1. Notify my wife.
  2. Play a sound on my echo.

Different things on each day of the week…

The problem is I don’t know how the WebCoRE sensor works, or stores information…

2) What is the expected behavior?
See the piston below, but the idea is to do different things each day when I leave work.
This is the basic idea, but I want to expand on this going forward.

3) What is happening/not happening?
The piston seems to be working, but it doesn’t appear to store ‘leavingplace’ or ‘previousPlace’ for too long… So when I use that in my 3rd and 4th IF statements, it doesn’t work.

4) Post a Green Snapshot of the pistonimage

5) Attach any logs (From ST IDE and by turning logging level to Full)
…had it turned off! ugh…


#2

I forgot to include this…

When I use go into an expression field to test the device variables, here is what happens:

closestPlace = reports properly.
currentPlace = reports properly.
previousPlace = nothing is returned… no error, just blank.


#3

I ended up creating a new boolean variable “heading_home”.
When my leavingplace changes to “guy_work”, I set it to be “true”.

The next if statements are now:
If
“heading_home” = true and
arrivingPlace changes to “TheHouse” and
location mode is home
Then
do all those things…

During the final ‘else if’, I set the variable back to “false”.

I’ll see how this works tonight.


#4

That worked!