Switch hots and line neutral will connect to a 3 wire cable that travels to the fan light outlet box in the ceiling.
Fan and light switch combo wiring.
I also used a diagram picture thanks for watching.
Connect your white wires together and secure with wire nut.
I explain how i wired a ceiling fan on one part of the switch and the light on the 3 way part of the switch.
Connect the green wire to your household ground wire copper bare wire.
In order for the light to be controlled by its own switch the wiring between the switch and the fan unit needs a fourth wire a red wire to carry power to the light kit.
The line voltage enters the switch outlet box and the hot wire will connect to every switch.
Ceiling fan and light switch wiring diagram.
Connect two of the black pigtail leads to the black wire coming from the receptacle.