I completely agree djos. We are on the same side, but I only disagree when i read things that hydrogen is only here because it's promoted by the oil companies.
Both technologies have room for improvement. The Lithium batteries are far from perfect, if you consider the whole cradle to grave cycle. Also they are just to heavy. The next breakthrough won't be here anytime soon. A lot of (mobile) vehicles such as construction excavators can not be powered by batteries since they operate at places without heavy electric infrastructure.
@just a fan, hydrogen piping is composite. 10x cheaper than a copper cable, also it is possible to play around with pressures in the pipes so there is some possibility for buffering. I disagree that buffering electricity on a large scale is cheap.. Not anywhere near cheap nor practical in my opinion.
I do agree that hydrogen is also not the holy grail. As said by yourself, there are risks, most can be covered but they are expensive. Transporting by pipeline is quite okay, but transporting mobile is not as practical as diesel. (but more practical than batteries).
Also a negative is that hydrogens mass energy density is great! If you don't take the weight of the tanks in account.. But the real trouble for a lot of machines/vehicles is the space it consumes.
Diesel or gasoline is an extremely easy and practical product, which in a lot of cases we don't have a 1:1 alternative for. So for now it is a bit of compromising until some smart people come with better ideas.