The Transistor as a Switch

A small current into the base switches a big one: off, partly on or fully on. Then rebuild the night light so it switches cleanly and wastes almost nothing.