I'm rewiring my unfinished basement. It has two entrances - a cellar door to the outside and the normal staircase in the house. Even though it is unfinished, the basement is kind of divided into different rooms. I want each "room" to have its own light and light switch. I also want to be able to kill all of the lights at once from the top of my stairs and also re-energize the whole circuit if I happen to walk in through the cellar door. Please tell me whether the following plan is safe and workable:
I'll start with a fairly normal 3 way switch setup. Picture one switch on the left, next switch in the middle, and the light on the right. This light is the one over my stairs, and it will work off of the 3 way switch like you would normally expect. Power from the breaker box can go into the middle switch or the light on the right - either way is easy enough. Once that is all set up I splice a 2 + ground cable to the hot and neutral on the light and run it to the next light, except I wire that second light to its own 2 way switch. From there I continue the circuit until I have 6 or 7 lights with each of them controlled by its own 2 pole switch. If the kids leave 2 or 3 of those lights on, then instead of walking through the whole basement to turn them off, I can just flip the three way switch at the top of my stairs to kill the entire basement lighting circuit. The next time someone enters the basement from either door, they hit the 3 way switch and all of the lights that the kids left on come on again (plus the stairway light turns on because the 3 way is the only switch connected to it). Of course, none of the lights in the basement would work unless that 3 way switch circuit is closed.
Is all of this safe and up to code?