I thought this would work with the switch in my walk in closet.  Unfortunately I didn't read the product description very well.  The light only works as a plug in.  :(  My niece was very excited to put this item in her bed room.  Now I'm out $$ and still don't have a chandelier.