Question about MQTT dimming value

Hi all.
I have set up a mqtt dimmer, but when I move the slider to the far left, the value shows 1 instead of 0. The switch status still shows the on state.
When I use the switch to turn off the light, the slider moves to the far left also, the value is also shown as 1, not 0.
The question is how do I set the value of the slider to 0 and at the same time the switch shows the off state?

light_01-1
light_01-2
light_01-3

I would appreciate any help. Thank you all.

Is there no one who can help? Or can anyone provide an example of the correct setup? Thank you so much!