This circuit is an Automatic Dark switch or photocell using a solar panel.
It can switch ON the light bulb at night and turns it OFF at day time automatically.
You have to connect it across the garden switch.
NOTE: The solar panel here used just to activate the relay, not to produce the high voltage for the light bulb, you need an external 110/220V source (grid power).
Parts list:
Solar panel 6V 1.1W
Relay 5V
Diode 1N4007
Circuit:
Video: