Solar, battery, home and grid
Your panels make electricity in daylight. The inverter sends it to your home first, puts spare into the battery, and exports the rest to the grid.
In the evening the battery runs your home. The grid tops up when the battery is low or you use a lot at once.