new light and switch problem please help
The two wires from the lamp; one will be the neutral (return) and normally should be white. The second wire will be the HOT feed and normally should be black.
At the wall switch location, establish which of the existing wires are HOT and neutral.
Using a test light find which wire stays hot regardles of the switch position.
Connect one of the wires from the lamp to the neutral.
Connect the other lamp wire to one side of the new switch.
Connect a pigtail from the HOT source to the second side of the switch