An Intelligence-based Tool for Energy Management by Device Interoperability in Smart Houses