Recreate ST virtual device interaction?

You could pass a parameter to the rule and then access that from a Context Variable in your rule.