Yes, the sun does't shine at night, but batteries produced electricity every minute last night (4/4) as California set a new discharge record of 57.17 GWh/day.
Batteries have met 8.01% of all main-grid demand in 2026 in the 4th-largest economy in the world.
The batteries cost (if bought today) only ~0.28 cents/kWh-grid-output, or 0.86% the cost of grid electricity in CA.