As suggested here, there is no law that says you can’t power your house with electricity derived from hydrogen fuel cells. Of course, that doesn’t make it a good idea.
The problem is that the processes of electrolyzing water, then running the resulting hydrogen through a fuel cell, results in a net energy loss of approximately 50%. So if you want if you don’t mind dealing with something is so horribly inefficient that it requires twice as much energy to get the same job done, then maybe hydrogen isn’t a bad solution.
Even if that isn’t a deal-breaker, the fabulous capital and operational costs associated with the whole thing should be.
If hydrogen has a role in our energy future, it lies in transportation, where a portable liquid fuel is a potential competitor to batteries and petroleum derivatives.