I am interested in simulating/coding a typical smart home with HVAC, critical appliances, Electric vehicle and a rooftop solar PV system with battery connected to grid via Hybrid inverter all these are interconnected via a Energy managment system. I want to implement a demand response algorithm and test it on considered smart home with detail appliance modeling, control logic implementation for economical and peak demand benefits comparision.