Pinout:
- GND - Black Wire
- VCC 3.3v - Red Wire
- ?
- ?
- ?
- ? - May have been the User Button
- ?
- GPIO to Red Led to GND
- GPIO to Blue Led to VCC
- GND
- RF (i think)
- GND
- RST
- TX - Yellow Wire
- RX - Green Wire
- ?
- ?
- GPIO 0 - Blue Wire
There are 2 other IO that are used, but i did not track them to the pads, the User Button accessible from the outside of the case and the output to the relay. See the Github link for the firmware and configuration i use, as i have all the I/O set correctly in it.
The esp8266 on the board has 1mb of flash, same as the standard on/off SONOFF's, but with a different pinout from any other esp8266 i have seen. Also the pinout does not match the informaiton on the FCC lookup.
On a side note I did not include any extra functions in the lua scripts, its just a mqtt output device. You could easily add schedules and other features if you wanted but i use cron jobs and other scripts on my automation server to run everything.
I have not tried OTA yet as on these and some other similar devices i used the NodeMCU lua firmware vs Arduino. You should be able to flash the Arduino framework via these steps: http://www.instructables.com/id/Quick-Start-to-Nodemcu-ESP8266-on-Arduino-IDE/
Just replace the normal USB connection shown on the NodeMCU boards with a usb to serial adapter via the pinout above.