I will throw in my configuration and details below when measuring energy along with a battery and solar. Remember there are a few different things you need to remember based on the direction of energy flow along what you are wanting to measure.
Solar only has Generation (one-way) so this is easy to measure by doubling or having two CTs to measure the positive flows from the panels to the load center
Consumption or usage of energy by the home is measured by adding the use of grid and amount of solar which tells you what the home is consuming. So this is adding the two values together as you stated.
Exporting if when any excessive solar generation is sent out to the grid.
In the example below from my IoTaWatt (again remember I have a battery which also acts like a grid where I can import (discharge) and export (charge) to this storage device.
So for me, my total consumption (Con in the image below) includes my two Mains + Solar + Battery
I have grid import (to the home) which is a positive number coming from my two mains into the home.
I have generation which is the positive inflow coming from my solar panels CTs.
Grid Export is any negative values from the mains CTs meaning I’m sending this to the grid. Same for the Battery Storage unit.
Not sure if this is helpful in your situation, but you can see my outputs from the IoTaWatt below.