BEWARE USING SOLID STATE RELAYS for AC Loads!!!
Beware using solid state relays to switch AC mains voltage if you dont have an electronics/electrical background!!! Yes there are no moving parts to fail, but there are many other design factors to consider for the average user. For this reason I recommend reef pi users stick with good mechanical relays.
If you select the wrong relay it wont be reliable, and could possibly get hot and either fail or start a fire. The second reason that solid state relays can be bad is that they are never really fully off. In the off state they still have a leakage across the load terminals, meaning the load will have some voltage present even when off. With mains AC this could be very unsafe. The third reason I do not recommend them is heat. Because they are a semiconductor conducting electricity, they get warm. SSR larger than 10 amps should have a heat sink.
There are 2 types of AC SSR relays that would commonly be used in our application. Zero-crossing SSR and instant-on SSR. Ill try to explain the two as simply as I can.
Zero cross relays use internal circuitry to turn on only when the ac sine wave voltage crosses the zero point on the sine wave. This is fine for resistive loads such as heaters, and incandescent lights but is one of the worst ways to turn on a highly inductive load like a light ballast, motor or a return pump.
On a highly inductive load, turning the load on at the zero crossing point can cause a current spike of 10 to 40 times the running current of the load. This can cause the ssr to heat up and fail. The same inductive load turned on at the peak of the voltage wave causes little or no such surge.
The second type of ssr is a random or instantaneous on ssr. This type switches on whenever triggered, no matter where the voltage is on the AC sine wave. These are better for inductive loads, and where precise timing is required, but they still are not perfect. The load may still switch on at the zero point, or maybe its at the voltage peak or somewhere in between. Because of this, if a ssr is used for an inductive load, a safety factor should be used. 50 percent is recommended. In other words, an ssr rated at 10 amps should only be used to switch an inductive load of 5 amps.
In short, although they can be very reliable when used properly, there are too many design factors to consider when using a solid state relay.
Selecting the wrong relay may cause premature failure, and possibly a fire.
@Ranjib feel free to link this is you find this helpful to the project.