Grid On: When the grid is on, the sun rays hit the panels, electrical energy is produced and converted into 50 Hz, 220/380 V by the inverter. The electricity produced feeds directly the needed load, and the surplus is fed to charge the battery and the grid. See About Net-Meteringfor more details.
Grid Off: When the grid is off, you take free electrical energy from the solar system without the need to discharge from the battery.
DURING THE NIGHT
Grid On: During the night, you consume from the energy fed into the grid during the shiny days.
Grid Off: When the grid is off, you take free electrical energy from the solar system without consuming anything from your generator's subscription.