Methodology to improve devices interoperability for energy efficiency in smart homes