Ah, so it is perfectly OK no matter the cost just so long as "renewables" are used?
The problem with hydrogen is that about 2x the amount of energy you can get out of it is used to split hydrogen from oxygen. Plus the cost of compressing hydrogen to 5,000-10,000 PSI in order to store in a reasonable volume. Or cryogenic at −252.8°C.
Hydrogen storage is a key enabling technology for the advancement of hydrogen and fuel cell technologies in power and transportation applications.
www.energy.gov
The only advantage is a lot of energy in a small volume which can be reloaded relatively quickly in a vehicle. Are we not continuously told of how wonderful a hydrogen power cell plus electric motor have no reciprocating parts? Conveniently forgets the compressor which packed the hydrogen into such volume? Lot of energy, cost of equipment, and maintenance. Just consider a scuba tank compressor?
For utility grade storage, batteries consume less resources and are more efficient.
No, cost has to be considered, but the people pushing these mandates don't consider the cost, or they make it up.
But if one has a way to generate power, and there is a surplus of that power, using it to make and store hydrogen might make sense. It does get down to costs. My example of the Shetland Islands shows that if one has amble renewable power, one can use it to generate hydrogen. Which is what they do. Is it worth the cost? That is a different conversation.

On some of the islands in Scotland and Ireland, the cost to run renewables is certainly worth it.
Batteries are VERY expensive and have a lifetime. Lead acid batteries, depending on the type, might get 500-1,100 cycles, before needing to be replaced. LiFePo batteries might go as high as 5,000 cycles depending on how deeply they are discharged/cycled. Most LiFePo battery makers are talking about 2,000-3,000 cycles.
We have been looking at using LiFePo batteries on a boat. Just to run the power needs on the boat can be done with a solar power. If one has say 1,000-2,000 watts of solar panels, one might be able to actually cook with electricity. LiFePo batteries to run such a system might be as low as $5,000 depending on how much power one is consuming and storing.
However, if one wants to have enough battery capacity to last 2-3 days without wind or solar power, be able to cook with electricity, and use limited HVAC on the boat, the price is up around $20,000-30,000. That price does not include BMSes, solar panels, wind generator(s), inverters, etc. On a boat, with a large enough battery bank to minimize cycling, the LiFePo batteries might/should last decades.
To do the same with a house would be even more expensive. Don't even want to think of the battery cost to be able to run the HVAC. It would be mind boggling. Not sure many people could run the HVAC using power from solar panels on the house.
Having batteries to store this on a grid scale would be hugely expensive. Telsa and Australia have built some. But even their huge battery systems will only supply power for 30 minutes to a million homes.
Energy storage is a problem as is transmission.
Later,
Dan