I know that ~ 15 years ago we were already using datacenters in The Netherlands that were used to heat houses in a city.
I do vaguely remember that the economics of it all were not great, but it’s definitely a thing for quite a while already.