WIFI based appliance module using the ESP8266 and a latching relay