There is nothing special about the WiFi enabled relay for your application because the right way to do what you want is to that the WiFi relay operate a contractor designed to switch motors.
I have to run and do some things.but If no one provides details I will try to check back and help more.