OH3 Generic Rule to read values from widget

I have a widget that I want to use as a generic tri state widget for different lights - there may be many lights I want to control. Is there a way to have a DSL rule that can read the properties of the widget based on the button that was clicked IN the widget? I pretty sure I can work out the trigger, just not a single script…

OK - I have to stop thinking of doing things the “old way” - this widget ALREADY does what I want it to do - it sends the command for low, med, high to the item - no rule required!