Hacking a Rocker switch using SSR and Arduino

The project that I am working on involves controlling multiple AC appliances from OF.  I feel the need to find a better solution other than always splicing and rewriting hot wires because it is dangerous and deadly when I am not being careful. So instead of hot wiring, today, I pulled off the connections from a device that used a rocker switch to turn ON/OFF and changed speed of a motor, and then I wired the connections to an SSR controlled by an Arduino .