Engineering smart buildings, from vision to precision