Integer in MQTT

Hello everyone!
I control the supply unit via MQTT. From OpenHAB, I’m trying to transmit the fan speed (an integer from 2 to 10). For some reason, the value 2.00000, 3.00000 comes to MQTT…
image
The item format is numeric.How to fix it?

Use %d for the outgoing value format on the Channel config (check show advanced).

1 Like