Added REST functions to turn all devices off and on