Unless you need hydrogen for a capability that only hydrogen has it is much more efficient to use solar electricity either directly or to charge batteries.
In those parts of the globe where it makes sense to use solar, and during the day, yes. For everything else, you need a way to store the energy that can be measured in weeks, not hours. You also need to transport it. And you need to stabilize the energy output not to be entirely dependent on whether the sun shines. That's why hydrogen might be a good energy reservoir.
My Tesla Model S does that pretty efficiently. And for static batteries there are plenty of alternatives that don't use difficult to source elements.
> You also need to transport it.
We have a grid to do that already, with HVDC interconnects we can even sell it to places where the sun is not shining.