[driver] apply duration with on command - powerSwitch, rgbLed