Up in the "East Mountains", east of I'll-be-quirky (Albuquerque), we have a perennial rodent problem. We decided some cheap strobe lights may be part of the solution, so we bought one for our basement. Thing is, whatever the rodents think, Shelly finds the strobe annoying, so I was wondering whether it would be possible to only have it come on when the lights are off.
"Of course it is," I realized as the 2-way light bulb went on--and off--over my head! Simply use a double throw switch, normally used in a 2-way light circuit, to switch on an outlet when the lights are switched off. A few minutes probing my junk box (aka, the very basement I'm trying to de-ratify) and I had everything I needed.

Except, that is, for a new switch plate. Turns out the only two way switches I have are the old toggle type (I forget from where they came) and not the rocker switches we have in the rest of the cabin. But, switch plates are a lot cheaper than two way switches, so on my next trip to the hardware store...
I've not heard of a double throw switch used this way in house wiring, but I suppose it's legal. Might confuse the next owner, but the outlet could also be used to power an emergency exit light, or whatever. Or, they can hire a real electrician to clean up the mess. It's just possible the current home-owners have done some other odd-ball wiring stunts in this place.
Notes:
- No, the outlets are not installed upside down. The National Wiring Code says either way is acceptable, and it's often done this way in New Mexico, especially in lab settings.
- I've long since abandoned matching switch plate color to the outlet/switch. Whatever is available in the junk box gets used.
- In this part of the country, the home-owner is allowed to modify his/her wiring. (Following code, of course.)
- You can't see it in the picture, but that upper electrical box was in my junk without nails. No problem: I grabbed some nails and pushed them in. I already had the upper one in when I realized they went the wrong way and were aimed to the front of the stud. Oh, well, nobody's perfect! It may just be a clue to the professional the next owners hire that I don't have a license.
- No, the switch for the lights for this part of the basement is not the switch at the door jamb, but the switch on the next stud. Long story, and not particularly interesting, but note the comment about the current home-owner in the main body of the post.
Tom