A Solution Based on Bluetooth Low Energy for Smart Home Energy Management