It’s not even the grid, by the time you’ve done the electrolysis you’d be better off just charging a battery.

Also, compressing and cooling a gas takes another huge hit at the efficiency. Electrolysis comes out at atmospheric pressures.

Oh and the platinum electrodes you need…

I’m also just now visualising a hydrogen pipeline fire… terrible terrible idea.