A Novel Energy Management Approach for Smart Homes using Bluetooth Low Energy