The weird thing is that if I had connected the wrong wire, the new stat would have been fried, or the breaker would have popped. Right?
I tested the stat, worked perfectly, (apart from not firing up the boiler) no smoke or plastic smell and the breaker didn't pop. Unless the yellow wire goes to...