Gravar-mail: Energy Management in Smart Cities Based on Internet of Things: Peak Demand Reduction and Energy Savings