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?
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?
In physical devices I was able to use $currentEventValue and $previousEventValue, try logging that to console to see if it works for virtual devices.
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.