Configure template sensor

Hi
I have some IHC tempeture sensors that is showing to many decimals and I want to round this, but can’t the template to work,

this how it’s setup in my configuration.yaml

sensor:
- id: 10510100
name: Stue
unit_of_measurement: ‘°C’
note: Rum temp.
position: Hjørnet ved skænk
- id: 3864340
name: Soveværelse
unit_of_measurement: ‘°C’
note: Rum temp.
position: Ved dør
- id: 3864340
name: Alrum
unit_of_measurement: ‘°C’
note: Rum temp.
position: Ved dør

  • platform: template
    sensors:
    sensor.alrum:
    value_template: “{{ states(‘sensor.alrum’) | float | round(1) }}”
    sensor.stue:
    value_template: “{{ states(‘sensor.mattias’) | float | round(1) }}”

can anyone see what I am doing wrong? also if i put the template section under my other sensors, they will all fail in HA, so I have to put it at the top of my configuration file, hope you understand what i mean :slight_smile:

Please see: