The red wire is usually a secondary sizzling wire. With a smart switch, the red wire often connects for the switch leg to regulate a light or other load. In an electrical box, a purple wire could be a traveler, a switch leg or the second sizzling of the 240-volt https://smart-light-switches52963.blogsmine.com/35244813/p-hub-system-an-overview