Reprogramming a $13 consumer wifi-enabled outlet
This looks quite similar to the Sonoff S20. [1] Although they opted for the ESP module instead of designing a custom PCB around the ESP8266 chip as Sonoff does.<p>According to the S20 schematic, uart is routed to a header, so it should be easier to flash. [2]<p>The Sonoff S20 is the same price as the mentioned model, and is supported by espurna. [3] Espurna is great, it has MQTT, Domoticz, Home Assistant, an HTTP API, and Alexa integration. Espurna also supports sending data directly to InfluxDB which is very handy.<p>If you want to monitor power consumption as well, I can highly recommend the Sonoff POW. [4] Although to get a plug you will need to butcher an extension cable or power strip. If you only want to monitor power consumption and don't want to have the relay, it's quite easy to solder across the relay in the Sonoff POW and use it only as a power monitoring device.<p>Just a reminder to anyone working with these devices: never, ever connect UART while the device is plugged into AC!!<p>[1] <a href="https://www.itead.cc/smart-socket.html" rel="nofollow">https://www.itead.cc/smart-socket.html</a><p>[2] <a href="https://www.itead.cc/wiki/S20_Smart_Socket" rel="nofollow">https://www.itead.cc/wiki/S20_Smart_Socket</a><p>[3] <a href="https://bitbucket.org/xoseperez/espurna/wiki/Hardware.md" rel="nofollow">https://bitbucket.org/xoseperez/espurna/wiki/Hardware.md</a><p>[4] <a href="https://www.itead.cc/sonoff-pow.html" rel="nofollow">https://www.itead.cc/sonoff-pow.html</a>