For air conditioning (heating or cooling) you don't need to go as high tech as batteries - you can heat/cool water during the night and use it in daytime. This is common in heating applications (due to longstanding night-time electricity discounts) in cooler places of the world. Also works for district cooling.