Using excess green energy to produce hydrogen is a great option, but those events are pretty rare, and it doesn’t produce very much, compared to pyrolysis of natural gas. Using regular electricity isn’t very smart, since you’re burning hydrocarbons to create hydrogen from water, when you could just get them from the hydrocarbons, so that’s even less efficient.
Using excess green energy to produce hydrogen is a great option, but those events are pretty rare, and it doesn’t produce very much, compared to pyrolysis of natural gas. Using regular electricity isn’t very smart, since you’re burning hydrocarbons to create hydrogen from water, when you could just get them from the hydrocarbons, so that’s even less efficient.