Previous Location Mode

variables
locationmode

#1

After a location mode has changed, I would like to capture what the previous location mode was and assign it to a variable.

Ideas on how I would go about that?


#2

In physical devices I was able to use $currentEventValue and $previousEventValue, try logging that to console to see if it works for virtual devices.


#3

Thanks, I’ll give that a try.


#5

This might be better.
You will need to create a global variable named @PreviousLocationMode
And then import this piston.
And it won’t display correctly until after the first location change.

UPDATED.


#6

$currentEventValue and $previousEventValue worked with location mode. Thanks @eibyer


#7

Thanks @Baz2473. I appreciate the help.