Energy Management in Residential Microgrid Based on Non-Intrusive Load Monitoring and Internet of Things | Synapse