Added function to control home_automator