From Home Automation to Building Automation