OK, briefly: Attach a float to the crank of a mechanical generator. Let the float bob up and down on sea waves, so turning the crank. Enjoy the free energy. There are many other means to the same end. Stick a pipe in the water and let the waves pump air back and forth. Use the compressed air however you see fit.
If we’re discussing alternatives to fossil fuels, hydrogen produced by steam reforming isn’t one: All you’re doing is devising a means of turning the energy stored in natural gas into energy stored in hydrogen, and spending energy to do it. Much the same, of course, is true of refining crude oil into petrol (Brit for gasoline), but, OTOH, crude oil is difficult to use as a fuel, whereas natural gas is at least as easy to use as hydrogen.
The question is, of course, whether by using a hydrogen fuel cell you can actually end up with a more efficient energy cycle: natural gas → hydrogen → hydrogen fuel cell → work as opposed to natural gas → combustion engine → work. I don’t have the figures to answer that. You need to bear in mind that hydrogen is a bugger of a fuel to transport and use, too.
If solar panels aren’t efficient enough to repay the energy costs of their manufacture, there are other alternatives. Domestic heating by roofing your house with heat-exchangers is one approach. For electrical generation, build yourself a nice big mirror to focus sunshine on a boiler and use the resulting steam to drive a power station. If all you want is heat, don’t bother with a boiler, just use the mirror for a solar-powered smelter. You need reliable sunshine, and at that you get, maximum, twelve hours out of twenty-four on average.
Regarding hydrogen fusion, I remember from “The Mote in God’s Eye” that the Mote world had unusually high levels of helium in the atmosphere. I was sure there was a reference in the book to the obvious implication: They must have been using hydrogen fusion for bloody ages. But I don’t think Earth’s in much danger from helium pollution 
While we’re on the sf angle, Larry Niven points out via some of his characters in “Ringworld” that orbital power satellites etc can, theoretically, present an environmental problem of their own. If you beam enough power down to your planet, you’re effectively increasing its energy input significantly over that which it would normally get from the Sun - and you have to bear in mind that all energy eventually ends up as waste heat. Get rid of all fossil fuel and use only nice, clean solar power, and you could, if you were greedy enough, still end up with global warming…