What are three different kinds of automatic switching devices? What are the conditions that cause the on/off action of the switch?