Hydrogen will have an important role to play in the future of green energy simply because it's a portable high density fuel, that doesn't require a battery to work.
The trade-off is that hydrogen takes more energy to create, then you get back. That doesn't make a lot of sense when you're using fossil fuels, but it would in a future with significant amounts of excess green energy e.g. wind, solar, fusion, etc.