Add home automation spy function