How to show a slider in home assistant freom an mqtt topic

Hi, I do have a wallbox to charge my electric car. This wallbox allows the user to change the current that is charging the car setting an mqtt topic
<base_topic>/1/command/set_current_limit
the payload is the amount of current you wish to charge your car (3 for 3 Ampere, 4 for 4 Ampere and so on)

I wish to present this in Lovelace like with a number
number.car_charge_limit or
like the volume of a media_player