Rotary knob

There are pretty decent blueprints for the Tap Dial both ZHA and Z2M in the Blueprints Exchange section of this forum. They’ll get you 95% of the way there. Eg. something like this one Philips HUE Dial Switch - Control actions and volume of your media player