Don't forget that you can't get out more energy from burning the hydrogen than you put in to electrolyse it. Usually a lot less, the rest of the energy warming the water.
Unless of course there's some release of nuclear energy somewhere in there... cold-water fusion?