Some code for controlling my home