Smart buildings and precincts