Send value to command in a UI rule

And, because this might be an XY Problem, there are a couple of other ways you can achieve this.

  1. The Follow Profile, no rule required. Items | openHAB

  2. The Debounce rule template on the marketplace, no coding required but you will have to add Item metadata. To get a straight passthrough, just use ‘0s’ as the debounce time. Debounce [3.2.0;3.4.9]