Solar panels require sunlight to generate electricity
for your home so they do not work in darkness.
... Net metering and solar-plus-storage
technology allow your solar panel system to access electricity overnight when solar panel production is
dormant, either through connection to the electric grid or to a battery