Define the energy boundary first
Use existing manufacturer monitoring or documented metering records; do not open batteries, panels or live conductors, add instruments or change dispatch settings. Identify timestamps, system, register meanings and whether measurements are at AC system ports or DC battery terminals. Both totals must cross the same defined boundary. Do not mix AC charging with DC discharging, whole-home import/export or solar energy passing directly to a load. Record whether inverter and auxiliary consumption are inside the boundary; do not add a loss again if it is already included.