How to Flash the Wyze Outdoor Plug - ESPHome or Tasmota - Local Control

 


Features
  • ESP32 for Bluetooth scanning!
  • Higher Gain antenna than a normal ESP module PCB antenna
  • LUX Sensor
  • Power Monitoring (Both relays combined, single channel)
  • Dual Relays
  • Dual Status LEDs
  • IP64 Weather proofing
  • 15 Amp capacity

First...plot change!  ESPHome is what we are going to use here.  Tasmota could be used but the two buttons would not work since Tasmota does not support the use of enabling pull-down resistors on the ESP32 module. UPDATE: 9.5 Tasmota supports this (template near the end of this article)  Yes, you heard this right, it's an ESP32 just like how the Sonoff Dual R3 came.  Luckily the efuses are not burned and we can use the device how we want, cloudless!  Thanks Wyze!  Dear Wyze, this is a good thing, you'll sell more of these plugs as well as additional word of mouth exposure for the company.  Win win situation, don't screw it up!

If you just came for the ESPHome Yaw Mill and don't care about reading or looking at my cool pics, you know the drill, go like and share my stuff, you'll find the YAML here.  

You will need to solder this plug, there's almost no way around that but it is relatively easy.  If you need to brush up on how to solder to the pads below, check out my in depth how to solder jumper wires to PCB pads in the Sonoff Dual R3 video as well as products I used in the video description - Sonoff Dual R3 Video.


Wyze made a nice little weatherproof door for us to easily open and close this plug!  To access it you will need a triangle screw driver bit.  If you do not have one, it's time to get a nice kit.  You can cheap out of course and get a cheap kit, but if you want a nice one, I can't say how impressed I am with the quality on the iFixit toolkit (they didn't sponsor this).  Super nice!  Amazon Link




Once you get the five screws out you'll be greeted with the ESP32 module (that I traced out for you...) and the nicely labeled flashing pads.  


Right next to the module is GND, RX, TX and BOOT.  Boot is your GPIO 0 pin that needs to be held to ground to enable the flash mode.  Where's 3.3v?  It's tucked up under the mains AC lines.  

If you are afraid you might melt the case or the wires soldering 3v3, you can remove the board from the case, remove the two screws on the wire clamp and rotate the board out.  Please do not attempt to power this via Mains AC while you have small wires attached to it or the case open!

If you only have one Ground pin on your USB TTL adapter for flashing, I use a simple solder bridged header pin to make a splitter.  Make sure your USB TTL is on 3v3 and NOT 5v!


Use the provided ESPHome YAML for an example setup, create your bin and flash it up!  Enjoy.  Flashing instructions - https://esphome.io/guides/faq.html#i-can-t-get-flashing-over-usb-to-work

New to ESPHome?  Check out some of my previous sensor builds for complete walkthroughs with ESPHome setup and flashing - Bathroom Sensor or Multisensor

If you need help flashing, setting up ESPHome, or anything, feel free to join us in the Discord Chat.  https://discord.digiblur.com

Purchase the Wyze Outdoor Plug (Amazon)

Tasmota ESP32 Bin File Template (DO NOT USE ESPHOME FLASHER) use the Chrome based Tasmota Flasher

{"NAME":"Wyze Outdoor Plug","GPIO":[0,0,0,0,0,576,0,0,0,0,0,224,321,7712,7713,320,0,0,0,0,0,2624,2656,2720,0,0,0,0,225,0,4704,0,0,0,0,0],"FLAG":0,"BASE":1}

Products We Use/Recommend

Be Social!
Discord Chat - https://discord.gg/bNtTF2v
Patreon - https://www.patreon.com/digiblurDIY
Facebook - https://www.facebook.com/groups/digiblurdiy
Instagram - https://www.instagram.com/digiblurdiy
Please note that links above may be affiliate link, using them could earn digiblurDIY a small commission of most purchases and helps with future video projects. Thank you!


Comments

  1. Thank you DigiBlur.

    Here utilized Amazon Fermerry 28 AWG Stranded Wire Silicone Cables and purchased new soldering tips. I connected different colored wires to GND, RX, TX , BOOT, 3.3VDC and 2nd GND pads.

    I have yet to upgrade the firmware. Went off to modifying the Wink Relay 2.

    ReplyDelete
  2. Thanks for this write up. My local Home Depot has these on the shelf for $15.

    Do you think it is possible to add any sensors or a small display to the ESP32 in this unit? I.e. are any of the other I/O pins accessible?

    ReplyDelete
    Replies
    1. It looks like the module is an ESP32-WROOM-32x. Pinout can be found at: https://tasmota.github.io/docs/Pinouts/#esp32-wrover
      I'm going to get one and try attaching a DS18B20 temperature sensor for thermostatic control of a heater

      Delete
    2. Success! With the help of a little flux, I soldered onto one of the castellations on the ESP module to connect to a DS18B20. Thanks, DigiBlur!

      Delete
  3. Hey T,

    Wondering if you possibly have the bandwidth to develop a (ESPHome or Tasmota) plug / power device solution regardig this device or a similar device to cater to backyard or even quasi-commercial chicken keepers? 14ish daylight hours on full spectrum LED + heated water or heated coop options. HMU and let's discuss some things. More than willing to pay for your expertise just to coolaberate a potential solution for my individual situation.

    ReplyDelete
  4. Hi.......I bought a couple of these and flashed and used your template file however the Switch 2 turns itself on and off repeatedly. The button press on Switch 1 works fine. Getting ready to flash the 2nd one now. My first flash was with Tasmota, not Tasmota32 and I wonder if there are some gremlins left behind. At any rate the template is not working on my device. Everything else is perfect. Thanks!........John

    ReplyDelete
  5. Had to sign in and say thanks. First time learning/flashing these ESP32 chips and all worked (surprisingly) well thanks to your guide. 👍

    ReplyDelete
  6. And you are a dumdum like me and you pull the boot pad right off the board, the last pin in the closest corner is a harder to solder substitute.

    ReplyDelete
  7. Wondering if anyone is having issues with this recently. I just bought 2 new plugs. I had purchased one a few months ago and flashed with esphome no issues. Now I am trying one of these new plugs and flashed esphome. It shows it uploaded but from there nothing happens. Shows no logs, doesn't connect to AP. I also tried flashing tasmota and same issue. Flashes fine but doesn't work after flash. Seeing if anyone else is having this issue before I try my other one.

    ReplyDelete
    Replies
    1. I had this problem and after a ton of troubleshooting it turns out that it was my wifi configuration. I have a separate SSID that I use for all my IOT devices to isolate them from computers and whatnot. I had that SSID set to not broadcast, all the other devices I have connected to it work just fine but for some reason esphome cannot connect to it. The SSID needs to be broadcast.

      Delete
  8. Thank you for your great vids and lessons! Am I reading the update correctly? You can flash tasmota on this? does it support OTA flashing?

    ReplyDelete
    Replies
    1. Yes, flash the regular tasmota32.bin on it. And yes, that version supports OTA updates.

      Delete
    2. How does one do it with the Chrome based flasher since there is no choice for a "vanilla" Tasmota32 in it?

      Delete
    3. Pick Tasmota and it will do Tasmota32

      Delete
  9. Great guide - flashed all 10 of 'em :)

    ReplyDelete
  10. Please update the custom config to the config from https://www.digiblur.com/2021/03/wyze-outdoor-plug-with-tasmota.html a comment from Unknown on 10/14/2021@12:03: {"NAME":"Wyze Outdoor Plug","GPIO":[0,0,0,0,0,576,0,0,0,0,0,224,321,7713,7712,320,0,0,0,0,0,2624,2656,2720,0,0,0,0,225,0,4704,0,0,0,0,0],"FLAG":0,"BASE":1}
    The config on the page does not work correctly, but the one posted has the correct LEDs on power. I believe the flags are both set to Led_i 1 where GPIO16 should be Led_i 2

    ReplyDelete
  11. Thanks for all the tutorials you do. I somehow stumbled on your washer automation tutorial, and suddenly I've got home assistant, smart plugs, sensors and automations all over the place.

    I'm having an issue with this plug, when try to flash with the web installer i get, "failed to open serial port", and when I try to flash tasmota32.bin with Tasmotizer i get "Failed to connect to ESP8266: Timed out waiting for packet header"

    Some observations about the situatn
    - It seems like my solder connections are all good.
    - i double checked RX/TX and even tried with them reversed to make sure.
    - when trying to flash with Tasmotizer, RX and TX lights are blinking on the USB adapter.
    - I'm grounding GPIO0 to the ground pad that the usb ground is connected to.
    - when I boot with GPIO0 grounded, there's no lights lit up on the plug. Should there be?
    - when I boot without GPIO0 grounded, the blue light blinks and both white lights are on.

    I'm wondering if I'm missing something silly here. I've flashed a bunch of S31s without an issue.

    ReplyDelete
    Replies
    1. Upon chatting in discord, I took the advice and I bought a new usb adapter, and powered with my bench power supply. With that I was able to get a response back with `esptool.py flash_id `. But still no serial connection with the Tasmota web installer on either my Linux or Windows machines.

      Since I was getting some response from esptool, I decided to attempt to flash with that following your instructions on this video - https://www.youtube.com/watch?v=oljs35TwlkU&ab_channel=digiblurDIY

      Worked great and I'm up and running. Thanks again!

      Delete

Post a Comment