What happens during the night or on cloudy days?

Solar panels produce energy when the sun is shining. At night or when it’s cloudy, the system will use credits from any excess power overproduced from the system during the day. This is the primary reason that on-grid solar solutions rely on the utility grid and net metering laws to provide supplemental power when your system isn’t producing.