Re-write the firmware on the switch. I did this with a similar switch and used espurna. Really well written. Each switch has its own webpage and can be controlled easily. Lookup sonoff wall switch as all these switches are based on the ESP8266 chip and all can be reprogrammed the same way.