Hot answers tagged switch
It's highly unlikely that the box itself is broken and causing this problem. What you should do next is remove everything from the box (label the wires first). Also remove each wire nut and put it back on, one at a time. In doing this, you may find a loose connection or wire nut. If not, then inspect each wire to make sure the plastic covering is intact. If ...
Leviton ODS15-IDG Rated 1800 watts at 120 volts Single Gang Space $45 at Amazon
You'll have to purchase a timer that is specifically designed to work as a 3-way switch. Or you'll have to rewire the other 3-way switch in such a way that it will no longer control anything. Since I can't see the wiring at the second switch, I'm guessing the wiring currently looks something like this... Which is sketchy, since there's no grounded ...
Based on what you've shown, you should be able to wire it up like this... However, those red Wing-Nut® twist-on wire connectors are only rated for a maximum of 6 #14 conductors. So you'll have to split up the neutrals in to two groups, and connect the groups with a pigtail between them.
Only top voted, non community-wiki answers of a minimum length are eligible