Iammeter split phase energy dashboard

I am trying to integrate my new iammeter into my US split phase system to show grid consumption and solar export energy. I have the iammeter sensors showing but I’m not sure how to make an energy sensor that will show up on the energy dashboard that combines both phases. Has anyone done this and if so could you help me out?

Not sure if this is the feature you want:

sensor:
  - platform: template
    sensors:
      meter_importenergy_phases:
        unit_of_measurement: 'kWh'
        value_template: "{{ (states('sensor.meter_importenergy_a')|float + states('sensor.meter_importenergy_b')|float) }}"