If you are planning to use relay for auto on/off application in street light, you can either use small or tiny solar cell, LDR (light dependent resistor), Photo transistor & building a small transistor comparator circuit you can turn relay on or off based on the ambient light.