The solar panels absorb solar photon energy to generate electric energy to charge the battery during the day. Then, the inverter converts the DC current into AC current that can be used by home appliances.