Andrew Partington drunkenly cut two gas pipes in his house because his girlfriend had left him and taken their children, the court heard.
He sent a series of Blackberry instant messages to partner Ms Williams on the night before the explosion.
In one he wrote: "Told you next time you leave, house goes up with me. You left your kids with no dad no home. Goodbye. Boom. Gas pipes cut. Already filled up. Boom."
He let his house fill with gas overnight, but said he woke up and cut the gas supply and opened windows.
Partington then lit a cigarette, with devastating consequences.
More top news
A judge who was reunited with an old school friend standing before her in the dock encountered another familiar face in her court room.
Campaign backed for under 18s right to delete embarrassing social media posts that could cause problems later in life.
An American hunter reportedly paid £32,000 to shoot Zimbabwe lion Cecil, a 13-year-old star tourist attraction who enjoyed human contact.