The red wire is generally a secondary warm wire. On a smart switch, the purple wire normally connects to your switch leg to regulate a light or other load. Within an electrical box, a purple wire may be a traveler, a switch leg or the 2nd sizzling of a 240-volt https://andreszxkzk.mpeblog.com/60994971/how-much-you-need-to-expect-you-ll-pay-for-a-good-smart-light-switch-white-clear-frame