Sonoff time-activation control