The pink wire is frequently a secondary very hot wire. Over a smart switch, the red wire usually connects into the switch leg to regulate a light or other load. In just an electrical box, a red wire could be a traveler, a switch leg or the 2nd incredibly hot https://smartwifipowerpoint18305.thechapblog.com/33869516/wiring-to-lights-an-overview