Simulate currentLocation Changes


#1

1) Give a description of the problem
I want to test location changes with my pistons currentLocation changes to/from

2) What is the expected behavior?
Piston executes accordingly

3) What is happening/not happening?
Not sure how/if this is possible.

4) Post a Green Snapshot of the pistonimage

5) Attach any logs (From ST IDE and by turning logging level to Full)
(PASTE YOUR LOGS HERE BETWEEN THE MARKS)


#2

Change your presence sensors to something that is easy to control, like a light. You can exercise the logic by swapping a presence sensor Home or Away for a light On/Off.

I’d make a duplicate piston, change the duplicate to prove it out, and then delete it. Easier than trying to revert back to presence sensors one you’re satisfied with the logic.


#3

You can also make a “Simulated Presence Sensor” in the ST IDE and then use the App on your phone to toggle it Away/Present. There are docs on here or the ST forum on how to create a Simulated Device…

That’s what I’ve done to test out some of my Presence based routines and when you’re done you just change the variable back to your real Presence sensor.


#4

I can force presence via the webCoRE app.

I want to simulate the, currentPlace variable.


#5

No good way to simulate the webcore presence variables


#6

As a last ditch effort, you could try downloading a GPS spoofing app (like FakeGPS Free) and use that for trials. I’ve used it in the past but it seems after a few ‘moves’ it would hose up the presence sensor and I’d have to restart my phone and/or leave the current “place” to get it working again.