Yes, it’s called a photoelectric nightlight.