Close
0%
0%

MQTT-ify the ECO Plug Outdoor

A number of stores and re-brands carry this outlet and I don't feel like using their app. So I made it run MQTT.

Similar projects worth following
OEM: http://www.kab-cable.com/product_description.php?PNo=470
Hacked Model: RC-028W
Brand Name: Eco Plug Outdoor
Code Platform: NodeMCU Lua

Pinout:

  1. GND - Black Wire
  2. VCC 3.3v - Red Wire
  3. ?
  4. ?
  5. ?
  6. ? - May have been the User Button
  7. ?
  8. GPIO to Red Led to GND
  9. GPIO to Blue Led to VCC
  10. GND
  11. RF (i think)
  12. GND
  13. RST
  14. TX - Yellow Wire
  15. RX - Green Wire
  16. ?
  17. ?
  18. 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.

View project log

  • 1
    Step 1

    Open it up

  • 2
    Step 2

    attach the five wires as listed in the text and shown in the pictures

  • 3
    Step 3

    Tie GPIO 0 (blue wire) to GND then hookup the rest of the wires to a usb to 3.3v serial adapter.

View all 7 instructions

Enjoy this project?

Share

Discussions

KD8NSF wrote 10/19/2017 at 02:50 point

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.

  Are you sure? yes | no

William Mears wrote 10/21/2017 at 15:22 point

sorry I have been looking at a lot of projects... silly me to not realize you used nodemcu.... 

  Are you sure? yes | no

William Mears wrote 10/19/2017 at 01:10 point

Thanks for your work on this. I have used some of this information on my EcoPlugs ($5 each at WalMart clearance) have you tried OTA on this board? Also what board do you choose in the pull down on the Arduino IDE?

  Are you sure? yes | no

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates