As for the delay timer, Rule Machine will give you that functionality.
And for the switch, you can check out here: