The report query results include the following variables:
     generation, feedin, gridconsumption, charge, discharge
I just wanted to confirm that 
    generation = pv +  battery
so that to get a pv figure
   pv = generation + charge - discharge
    				
    				
    				
    				
    				
    				
    				
    				    					    				
    				    			Yes ‘generation’ is all of the work that the inverter has done.
So : Solar generation = (battery charge - battery discharge - grid consumption + loads consumption + feed in)
But note that Fox have recently added the actual PV production to the report with the variable ‘PVEnergyTotal’, this is only available for Hybrid inverters (not solar only which don’t store statistics)
    				
    				
    				
    				
    				
    				
    				
    				    					    				
    				    			So : Solar generation = (battery charge - battery discharge - grid consumption + loads consumption + feed in)
But note that Fox have recently added the actual PV production to the report with the variable ‘PVEnergyTotal’, this is only available for Hybrid inverters (not solar only which don’t store statistics)