A clever laboratory for smart homes