How does a home battery work?

When your solar system produces excess energy to what you are consuming on-site, it will charge your home battery. If the battery is full of charge, the excess will go back to the grid.   When you have energy consumption on-site that is more than what your solar...