MQTT, probaly asked 1000 times

Your value templates should be:


value_template: '{{ value|float|round(0) }}'

And

value_template: '{{ value|float|round(3) }}'

This takes the received string, converts it to a number then rounds it.

In future please format your code correctly. See point 11 here: How to help us help you - or How to ask a good question