The purple wire will likely be a secondary very hot wire. Over a smart switch, the pink wire generally connects into the switch leg to manage a light or other load. In just an electrical box, a purple wire may be a traveler, a switch leg or the 2nd incredibly https://zionmwelo.isblog.net/p-hub-system-an-overview-51954069