Fan.set_percentage action on a dashboard

Hey there, I have a Tuya fan switch which has 0-100% speed control. I can set this by clicking on the default card added and then using the slider control. What I wish to do is display the speed on a gauge or numerically. When I browse for an entity for this it does not exist. I can do this from the Dev Tools Actions and it works:

action: fan.set_percentage
target:
device_id: 38e7b1fdb040c7133bc3e44c031510b3
data:
percentage: 38

So my question is how do I create an entity for this that I can use on a card? Or is there a better way? Sorry if this is very nooby but i am unable to find the solution for many hours :smiley:

I was also wondering what entity/method the default card is using to display the % on the slider but could not figure this either.