Scalable building automation