Smart Protection for Smart Buildings