Code to control and automate my home.