EweLink ( Sonoff ) Dimmer won't Dim

Hi, I bought something like that :

then I setup the son off component with my user name and password. my issue is Home Assistant see it as a switch and not a dimmer so I can only switch it on and off

Is there a way to have the dimmer ?