I like that idea, can you tell me please what switch you used.
I was going to build it from scratch as I have a City & Guilds in electronic servicing, but when I searched for the components on line, I found a light sensitive module and a 30 Amp relay module. It can be put together without soldering and can be put together by someone with a limited knowledgw of electronics. (Just remember the relay switches mains voltage, so take usual precautions).
First of all is a list of components needed. I’ve included the web address of some of the components, but you may wish to search for your own.
LC Technology 5V 1 Channel Relay Module 250V AC 30V 30A DC
https://fluxworkshop.com/collections/bh-relays-solenoids/products/bhaa100045-5v-30a-c-nc-lc-blue
Weatherproof IP54 Inline Socket
https://www.amazon.co.uk/dp/B006X09WDW/ref=pe_3187911_189395841_TE_dp_1
LDR Photoresistor Light Detection Sensor Module Dependent Resistor Arduino PIC
LDR Photoresistor Light Detection Sensor Module Dependent Resistor Arduino PIC | eBay
13 amp plug.
A 5 Volt power supply with enough current to switch the relay. (? 3Amps)
A 3 pin, 3 line connector.
A 4 pin, 4 line connector.
3 amp connector block.
10 amp connector block.
13 amp 3 Core Flex 1.5mm, 5 metres or so.
Waterproof plastic box. Clip and close lunch box.
Telephone extension cable with connectors.
To complete this project, I am assuming some prior knowledge of basic hobby electronics. You will be using mains voltage electricity, so if you are at all unsure then please defer to someone who is. Anyone with a knowledge of electronics should be able to follow the attached circuit diagram.
The switch is in two parts which will connect together with the telephone extension socket and plug.
Photo sensor
Firstly you need a clear, plastic container to house the LDR Photoresistor Light Detection Sensor Module. I found an empty plastic test tube in the bathroom which had contained bath salts. You can buy them on Amazon, or a small plastic bottle will do.
For the connecting cable, I used a telephone extension cable with connectors. Cut the cable about a foot from the female connector. Bare the ends of three of the four wires.
Drill a small hole in the container and feed the cable through. Twist the ends of the telephone wires with the ends of the 3 pin connector which plugs into the LDR Photoresistor Light Detection Sensor Module. You can solder, shrink wrap or wax the connections. I used some bubble wrap to protect the module when I finally assembled it. Leave the module out for the moment as you will need to adjust the trigger level with the potentiometer.
Relay unit
You will need a weatherproof container large enough to hold the relay, 5 volt power supply and connector blocks. I used a waterproof, clip shut lunch box, but any weatherproof container will do.
Drill two holes at opposite ends of the box, just large enough for the 3 core flex to be forced through, and a small gap to feed through the other part of the telephone cable.
The 5 volt power supply I used was one I had in the garage from an old external ZIP drive for a computer. (Remember those?) I cut the plug off the flex and bared the ends to fit in the 10 amp connector block with the mains, 3 core flex. The ends of the 5 volt flex were bared and fitted in a 3 amp connector block with the ends of the telephone extension cable.
Note: Make sure your 5 volt power supply has enough amperage to trip the 30 amp relay. (I had to add another relay to trip the main relay.)
There is now one spare wire in each part of the telephone extension cable.
In the LDR Photoresistor Light Detection Sensor Module, it is connected to the terminal marked DO.
On the relay, it is connected to the terminal marked with a +, next to the VCC terminal.
Use the circuit diagram above to connect the wires into the connector blocks. You will need two extra wires to connect live mains into NO, and COM to live mains out.
Check all connections for stray strands of wire etc before powering up. If all is working correctly, there will be a red LED on the relay module and the photo sensor module. If you shine a torch on the photo sensor, or put the module in the sun, a green LED will light on both modules, and you will hear a click when the relay activates. I used a table lamp as a test load when I was setting up the sensitivity of the photo sensor.
This is only an example of how I built a photo sensitive switch. It is not a definitive set of instructions. Anyone who decides to try and build their own photo sensitive switch, does so at their own risk.
It works great and in April I got 61.44 kWh of solar, May 88.48 kWh, and June 62.72 kWh. That's around 980 miles for free!
