AI tools for optimizing energy consumption in smart homes