How do I reduce the Number of Decimal Places on a Temperature Reading?

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?

Annotation%202019-11-27%20223531

  - 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}}'
1 Like

value_template: '{{ (value_json.DHT11.Temperature|float - 2.7 )|round(1) }}'

2 Likes

@tom_l, thanks

1 Like