I have read that the meme that hydrogen is a good replacement for fossil petroleum mostly gained ground in the GW Bush era, in an attempt to appear to be taking green fuels seriously in a way that was actually friendly to petrochemical industry. It's not a coincidence that 1) Bush pushed the "hydrogen economy", and 2) hydrogen largely comes from fossil fuels.
A really, really good writeup here: https://www.thenewatlantis.com/publications/the-hydrogen-hoa...
It's true that it's inefficient, but I'm curious as of how much inefficient it really it, because nuclear energy can be made abundant and cheap if you use electrolysis close to a nuclear plant.
(This may sound somewhat on-the-nose, but one of the biggest lessons 'hydrogen-gas-is-the-future' hype has to teach is just how useful hydrocarbons are compared to any other method of chemical hydrogen use.)
There's enough energy in the gas network today to power the world for a few days, seems like a great way to store excess renewable power.
Salt domes (commonly used to store large amounts of natural gas) might also be useful for hydrogen storage but would need to have their plumbing replaced.
The best way to store energy is in potential gravity energy. We should build these modules connected to the grid to buffer alot energy. Smart Grid etc.
Electric cars with smart grid implementation into them would also help alot.
Also these buffer hubs can even EARN MONEY. If they buy cheap electricity at daytime from solar, sell it at night for more. It's an actual business case.
Nonetheless, on a longer timescale, hydrogen effectively becomes a roundabout instrument of space-, time- and demand-shifted energy storage, but potentially bulk-conveyable using portions of existing gas pipeline infrastructure. This compares favorably to batteries (which are heavy, solid, contain other commodities, and are non-bulk-conveyable in a comparable way), and other energy storage schemes (which are immobile or lack effective the distribution of work). It's broadly similar to hydrocarbon natgas and syngas, but without the direct release of carbon during actual combustion.
The hope in this effort to encourage progress and deployment of hydrogen-based technologies, infrastructure, and business models, and tolerate some short-term wastefulness to target a more favorable goal in the long term.