“…The applications of IoT in smart homes [ 9 , 10 , 11 , 12 , 14 ] and smart buildings [ 2 , 3 , 4 , 5 , 6 , 7 , 8 , 13 , 15 , 16 , 17 , 18 , 19 , 20 , 21 , 22 , 23 ] have been discussed in many publications covering different domains, including surveys [ 6 , 7 , 10 , 11 , 12 , 15 , 18 ], architectures [ 5 ], frameworks [ 8 , 14 ], platforms [ 9 ], and algorithms [ 16 ]. However, most of the research is based on assumptions or simulations which ignore the practical issues from the real implementation.…”