What you're talking about is exclusively chemical storage. Check out thermal and mechanical storage. Those are likely the more promising large scale solutions and both are already used in a variety of different ways at industrial scales. I'm particularly partial to the use of heated salt via solar thermal plants as an affordable and scalable solution. Several such plants are already in operation.