The light switch should be located close to the opening to the attic entrance where a 2 wire cable with ground is installed up to the existing light.
How to wiring in attic.
Whenever i do attic wiring i remove the insulation and staple it to the ceiling joist.
Nec 2008 394 12 uses not permitted.
If you will need to fish wiring through a wall drill a hole through the wood plate in the attic only.
I was also under the impression that if wiring is in an attic space that it may need to be derated because it can get very hot up there.
The attic wiring should be protected and secured to ceiling joists or other wood structural supports.
Use wire nuts to connect the black wire from the 12 2 wire to the black or red wire in the attic fan the white wire to the white wire in the attic fan and the two ground wires.
You ll need two wires one white and one black for one circuit or more if you intend to wire a three way switch from the house or add more than one circuit.
5 hollow spaces of walls ceilings and attics where such spaces are insulated by loose rolled or foamed inplace insulating material that envelops the conductors.
Attic light and switch wiring kirk because there is power to an existing light fixture in the attic area then the additional light switch and light fixture will be relatively straight forward.
If this meets code then i will be running attic wiring in this manner from now on.
Also it may not be as simple as stapling the wiring to the structural members.
Use thwn 2 14 gauge stranded wire if you get power from a 15 amp circuit or thwn 2 12 gauge stranded wire for a 20 amp circuit.
And use semi rigid wiring fish tape to pull your wiring down to your outlet location.
Concealed knob and tube wiring shall not be used in the following.
1 for each hot and neutral wire entering the box 1 for all the ground wires combined 1 for all the cable clamps combined if any 2 for each device switch or outlet but not light fixtures multiply the total by 2 for 14 gauge wire and 2 25 for 12 gauge wire to get the minimum box size required in cubic inches.
Yes this should be corrected and it would be good to have the wiring and all the circuit connections inspected as well.