Electrolysis may not be the most efficient way, but neither is carrying an extra 1,000lbs worth of batteries to haul around your electricity - as a Tesla does (comparision: Tesla Model S vs. Honda FCX Clarity).
But efficiency may not be that much of an issue. When you think about it, solar power can never be very efficient because the vast majority of solar power never comes anywhere remotely near earth. Yet solar power can still have a significant impact.
Why, let's just take some of Germany's new 22GW solar capabilities and merge them with the hydrogen zeppelin tech they had in the 1930s. These could now be piloted automatically by GPS (a heck of a lot easier than a Google driverless car). The hydrogen already on board could power the craft all the way to a delivery point where the hydrogen (providing a few thousand tankfuls of H2) could be replaced with helium for the trip back.
Of course, by this means of delivery, production wouldn't be limited to sunny Germany, but could utilize all sorts of energy of the sort that's available in places like Iceland. Hydrogen can float itself anywhere in the world. You can't do that with a battery.