Electrical – using a relay to swich between main and solar power

electricalrelay

I have both solar and mains voltage at my house and since the solar isn't enough to continuously power the house , we switch between it and mains when there is less sun.I was hoping to make an automated system to do this switching using a relay and a raspberry pi.

I understand that a solid state relay provides a fast switch,
Is this a realistic project ?
Is a Solid State or Mechanical relay which would fit the requirements available?
If so what should I be looking for ?

Edit:
To make it more clear,I have two sources of power and I use a manual switch as shown below to switch between them
enter image description here

I want to use a relay instead of the change over switch and would like to know what kind of relay I should use.
(Indian 220V system)

Best Answer

There is more to it that you may not realize. By using manual switching, you inherently prevent even the remotest possibility of back-feeding the utility grid with your solar power. It is not physically capable of being connected to both systems simultaneously. As soon as you "automate" this, you introduce the possibility that something could fail in an unsafe state. The result could then be that your solar system is feeding the grid and a utility line worker is killed by it because he is working on the wires when your "transfer switch" screws up and connects. For that very reason, as soon as you go with anything other than a manual changeover switch, it must have certification that your power utility accepts regarding its safety.

You will need to start there before you buy anything.

And to answer your question about using solid state switching, absolutely not. Solid state switches "leak" when they are supposedly off. The leakage is minimal and for general purposes is often ignored, but for something like this it is potentially lethal.