Technology for smart buildings