WiFi Combined With Energy Management and Building Automation