add some new functions of libhomeradar