end-to-end implementation between browser and mochad for turning devices on and off.