Using the Spark Core and Pi to automate my house