There’s no way to directly send a value to rule that you call with the UI. Fortunately, there is a very simple workaround. You just need a single proxy string item. When the UI component is triggered, you don’t want to use the rule action, you want to use the command action to set the value of your proxy item to the full name of the real item you want utilize. Then you just need to set your rule to run when that proxy item changes and process the string in the proxy item however you need to get item name and group information. You can see a similar example here: OH3 Widget: Dynamic Favorites Bar.