Home Assistant/HEMS help

I have got this custom / average temperature value working on the DEVELOPER section of another instance of Home Assistant, but still don’t know how to turn it into a working YAML.

  • platform: template
    Sensors:
    averageGF_T:
    friendly_name: ‘Ground Floor Temp’
    unit_of_measurement: ‘°C’
    value_template: {{((states(‘sensor.lounge_valve_current_temperature’)|float+states(‘sensor.dining_room_th01_temperature’)|float+states(‘sensor.living_room_th01_temperature’)|float+states(‘sensor.receiver_current_temperature’)|float)/4.0)|round(2)}}