This paper is extended from a preliminary work [7]. The rest of the paper is organized as follows. Section II describes the
proposed HEMS architecture in detail. Section III shows several implementation results for the architecture. Finally, section IV concludes this paper.