Hydrogen vs. Battery Electric Cars

I charge my battery electric vehicle at home.  If I got a hydrogen electric vehicle (no H2 stations in Michigan,) I would get an electrolysis type hydrogen generator and do the same thing.  It would end up costing about three times as much energy to run the hydrogen electric vehicle, but that still beats the cost of using gasoline or diesel.