Extra electricity from renewable energy could be used to split water to obtain hydrogen - but methods to accomplish this are usually prohibitively expensive, need too much power, or draw on catalyst materials that too rapidly...
As far as sustainable energy systems go, nothing is quite as perfect as a plant: Through photosynthesis, plants create their own energy using only sunlight and water...