You will use the electricity generated by the panels. Surplus electricity is stored in a battery for use when the panels are not generating electricity. The stored electricity is used before you use any electricity from the grid.