I have two temperature sensor, for which I have a correction factor applied (DHT11 seem to be very inaccurate!), which display many decimal places. How do I reduce the number of decimal places?
- platform: mqtt
state_topic: 'tele/katys-room-temp/SENSOR'
name: 'Katys Room Temp' #DHT11
unit_of_measurement: '°C'
value_template: '{{ value_json.DHT11.Temperature | float - 2.7}}'