Smart building technology, once a future promise for energy efficiency and climate adaptation, now faces urgent real-world tests amid record heatwaves.