Question: how ceiling fan switch works?
Answer: Line voltage enters the switch outlet box and the line wire connects to each switch. Switched lines and neutral connect to a 3-wire cable that travels to the light/fan outlet box in the ceiling. The fan control switch usually connects to the black wire and the light kit switch to the red wire of the 3-way cable.