Rather than ifs in the rte.py, we could have a single interface for the power supply control, and implement it for each case (sonoff, rte relay).