1) Give a description of the problem
physical device lock ‘lockCodes’ variable is an array but returns a string value
2) What is the expected behavior?
an indexed array in order to get the name or label on the unlock code
3) What is happening/not happening?
a string is returned
do Set variable {codes} = lock’s lockCodes;
…will return a string like…
string codes; /* {“3”:“Bob”,“2”:“Joe”,“1”:“Jim”} */
…when I need an array so that I can use $args.usedCode to determine the name of person that unlocked the door (eg, {codes[$args.usedCode]}). is there a way to force the returned value into an array or easily convert the returned string into an indexed array?
thanks.

