Selection mapping to mqtt issue

Try switch instead of number.. oh wait no that’s wrong, since you have multible states. Hmm
The behavior is correct since number is a float.

I think you need write a rule, see: