Backing up esp8266 firmware
This is done by pulling GPIO0 and RST to GND for 3 seconds. In order to push an image to the device, you need to first put the device into programming mode. Using the programmer, you need to connect the following pins:
#Backing up esp8266 firmware serial#
The device basically acts as a USB to Serial converter.Įnsure the programmer is set to 3.3V and not 5V. In my case, I used an AVR programmer from DFRobot. This method used an AVR programmer and a couple of hookup wires to push an image to the device directly. I’ve been using this method with an image generated by the Arduino IDE, but uploaded through tuya-convert.
Once you push a new image to the device, you’re then reliant on your own OTA for any further changes (or use method 2). when the original firmware is on the smart switch. Basically the software impersonates an access point to which the DETA smart switch connects, and then sends it a new image. This method needs a Linux computer (I used an Ubuntu USB stick), and a WiFi adaptor. This will replace the firmware with a Tasmota or ESPHome image (or a custom image you create). This method uses the tuya-convert software which is a Linux based package that you use to simulate an OTA (over-the-air) update to the device. There are two different methods that I tried for replacing the image with a custom image (as I wanted to avoid the provided cloud service and integrate directly within my home network). I’ve included a link to the manual for the TYWE3S package. The device uses an ESP8266 compatible chip, with a product code of TYWE3S. I actually didn’t use ESPHome, but rather pushed my own code/image to the device. I recently bought a DETA Grid Connect Smart Switch from Bunnings, with the plan being to integrate them with Home Assistant, using ESPHome, or other user-provided code.