Beginner starting out trying to add up A +B+C phases

Hi
First post just need some help adding up the total poer used from all Phases.
see below

templetes:
name: Total Energy Usage
state: >
states(‘sensor.phase_a_energy’)|float + states(‘sensor.phase_b_energy’)|float + states(‘sensor.phase_c_energy’)|float
unit_of_measurement: kWh
device_class: energy
state_class: total_increasing
entity_id: sensor.total_energy_usage

Kind regards

Just a bit of advice

:one::one: Format it properly

When sharing the code, share it as text and not an image. When you do that, remember that spacing is critical in YAML, and if you just throw the code on the page then it’ll look ugly and nobody will know if the problem is because of spacing. We need you to use code blocks and appropriate markup.

For example, this is easy to read and it is obvious if the spacing is correct:

# Turn off lights when everybody leaves the house
  - alias: 'Rule 2 - Away Mode'
    trigger:
      platform: state
      entity_id: group.all_devices
      to: 'not_home'
    action:
      service: light.turn_off
      entity_id: group.all_lights

{{states ('sensor.xxx')| int(0) + states ('sensor.xxx')| int(0)+ states ('sensor.xxx')| int(0) }}

You are missing brackets to start