Text this: Predictive maintenance and optimized energy management in smart homes using machine learning based intelligent controller.