Electrolysis of water to produce hydrogen does have good efficiency numbers. The most efficient electrolysers are PEM.
But hydrogen can be more easily stored and transported if converted to ammonia-gas. Then ammonia-gas at the point of use can be easily converted to hydrogen without any local pollution.
Ammonia-gas is more of a public risk than hydrogen but ammonia-gas is currently used in agricultural farming activities for fertilizer purposes. Well, hydrogen dissipates instantly while ammonia-gas is a serious vapor threat.
Now water-pumping has good efficiencies. So excess solar or wind power can pump water from the low side of a dam to the high side of a dam.
Another note, hydrogen electrolysers can be set-up in series for the power level of magnified solar panels.
Lithium-ion batteries are used for electrical power storage because they are quick charging. Lithium-ion batteries are prone to fire in vehicle crashes but then safer when used in a stationary facility. Nickel-metal hydride batteries are about the best current alternative to lithium-ion batteries but the nickel-metal hydride batteries are lower performing.