Virtual Battery for Solar panels

im using Shelly 3EM 3-phase Net Metering templates for Import, export and consumption
to monitor the import export via shelly and use net metering and then i used sensor.power_import and sensor.power_export values