Hydrogen vs. Battery Electric Cars

The amout of energy that you need to produce more of due to the efficiency loss during the production of the hydrogen felt a little overlooked. In order for the car to be environmental friendly that's a LOT more renuable energy sources you would need and I am not sure where this energy is all supposed to come from. I mean the energy grid will have to grow already if everyone will drive electric in the future but adding the 70% loss on top does seem like a big waste. If that's electricity from non renewable energy sources that's even worse I imagine.