Fan Speed zero to turn off

I am having a mqtt based Fan with speed control

In the fan card.
When the speed is reduced to zero it is not turning off the fan.

What has to be done, any script or by automation. Kindly help