The ewelink aplication features a relay with contackts that works in conjunction with a wi-fi connection

Is there a relay that works with ewelink that opens the contact when there is a Wi-Fi connection and closes the contact when the Wi-Fi connection is lost? In other words, the contact will operate synchronously with the Wi-Fi connection without needing to touch a virtual button.