How home energy storage works

Rooftop solar, hybrid inverter & home battery — Australian context
Solar DC AC to the home Battery charge / discharge Grid import / export Mode: Day
Sunshine on the north-facing roof: solar runs the home, the surplus charges the battery, and any extra is exported to the grid.
Simplified diagram, not to scale. Solar and battery systems must be installed by an accredited installer and licensed electrician.
▲ Charging