Text this: Optimizing energy cost in the residential sector through home energy management systems in a smart grid environment