Setting a variable to location mode

Is it possible to set a variable to location.mode? I have a variable called $previousMode that I would like to set to the current mode just before it is changed by some event.

When doing a Set Variable action in a rule, there is nothing to select for Location attribute

Screenshot 2022-09-07 133139

Hi John-
Thanks for the heads up. We pushed a hotfix to beta which corrects this and makes the location ‘Mode’ available to be stored into a variable for our next-generation SmartThings connection. I sent you a PM with details on how to access the beta.