The red wire is frequently a secondary incredibly hot wire. Over a smart switch, the purple wire generally connects into the switch leg to regulate a light or other load. In just an electrical box, a purple wire could be a traveler, a switch leg or the next hot of https://electricians-cashmere10975.blogoxo.com/34948753/everything-about-wiring-to-switches