it is a 2 way switch
the stove light is a house light that sits over the stove along with an exhaust hood and fan
I cannot reconnect the wires like they were connected to the old switch because I never took the old switch out
so, we have a two way switch and two wires, both black
the live wire branches off to the stove light
the dead wire connects to the ceiling light
two wires and two connections on the two way switch
does it matter which wire goes where ?
the answer appears to be no
A simple switch makes or breaks the connection between two wire ends. It doesn't matter which end goes to which terminal on the switch, and the circuit can be interrupted anywhere. That is theory. Works whether the supply is from DC Battery or AC house-panel:
Practical: House wire runs in cables with two conductors (black and white) and a bare ground. That let's everyone understand the function (and danger) of every wire they see. You can think of a negative battery terminal connecting to the white and the positive to the black. For safety, the black wire is the only wire that is interrupted by switches. The white makes a continuous run from panel to fixtures:
In the second and third examples,
note that the end of the white wire attached to the switch has been coloured black in all the boxes where it can be seen. That's because it is being used to extend the black wire from the fixture-box to the switch and back to the lamp. Sadly no one makes cable with two black conductors. What this means (if the electrician coloured his wires as he's supposed to) is that two black wires always connect to the two terminals on your switch. Always. So the path always reduces back down to that same path in the battery diagram; any other wires in the box are just passing through.
For you: Ignore all pix but the battery diagram and the first practical drawing.
•Get a new switch that is the same type (
two screw terminals,
not three or more) as the old switch has.
•Cut the power to the switch and the light it controls at the panel. Test to make sure it's now safe.
•One by one take the
two wires from the old switch and move them to the new switch. It doesn't matter which wire goes to which screw terminal.
•Ignore all the other wires,
do not disturb them.
•Make sure all connections are tight and secure, and that any other wires in the box are also good.
•Mount the new switch to the box so it is ON when it's flicked up/pressed in at the top. Restore power and test your work.
Please, this thread has gotten complicated enough, with sidebars about three-way switches and phases and now for the first time you mention a ceiling light.
Replace only the one defective switch, do nothing else. Do NOT even do that if you have not verified that the two wires you are going to work with are both dead, because you have cut the power.
Please also note, that only you have diagnosed your problem as a defective switch and a replacement as the fix. Replacing the switch should not make anything worse, but if it doesn't fix the problem after all, then you'll have to describe your problem better.
I do recommend the huge resources of the Toronto Public Library, they have many well-written and well-illustrated books on household wiring for DIY types, and the Ontario Electrical Code Simplified which I am fond of. It has all the info a DiYer needs to wire an entire small house.
----
PS: SPST=Single pole, just one end for the switch to makes contact, Single throw, just one direction for it to move. That's the tech-talk version of our 2-way switch.