Smart Home automation by using intelligent electricity dispatch