My application with ugly code to control my lights and other stuff