Need help in creative activate/deactivate devices

How do I make some devices to activate on the first round and on the second round to deactivate ?