Sunlight, zinc oxide, and water goes in, hydrogen comes out. This is a prototype about to undergo 6 weeks of testing to answer the very question you pose about it being economically competitive. The main advantage this has? No emissions such as carbon dioxide.