Solar panels can work like a generator during a power outage if you have a backup battery system installed. Solar batteries store excess solar energy so that it can be used when there is no sunlight available (like at night or during a power outage). When there is a power outage, your solar panels will stop producing electricity. However, if you have a solar battery, the stored solar energy will be used to power your home.