The design of the LED night lamp circuit (bedroom light) is similar to that of many commercially available products.
www.electroschematics.com