Create rf dimmer link to homekit?

I’m the man successful created rf dimmer with slider in this topic.

But in homekit, It just show on/off, how can I show it as a dimmer in homekit?
Please show me some guides :smiley:
Thanks for reading my post