legacy on-off switch timer function tested