This is possible in Rule Machine.
- Create a string variable, and populate it with the descriptionText (%text%) when the lock is opened or closed.
- Evaluate the contents of that string variable for "thumb turn" (or whatever else you want).
- Based on what matches - carry out the rest of your actions.
Here's a rough example - I just logged when the lock is controlled from the inside (thumb turn) or outside (button). Hope this helps .....
And here's what the logs created by the rule look like: