We present a novel HEMS that enables the residential customers to execute demand response programs autonomously. The proposed algorithm assures that the power consumption of the electrical appliances is always less than certain level. The proposed house is supported by the battery and photovoltaic system to avoid the peak hours during day time.