Rules
Rule1 On power1#state=1 do backlog power3 1 endon On power1#state=0 do power3 0 endon; On power2#state=1 do backlog power4 1 endon On power2#state=0 do power4 0 endon
@benmprojects I just got the switch (1 button) and trying to flash it but can’t get it to work. I flashed other esp8266 in the past so this shouldn’t be the issue. Mine got 5 pins:
g,o,r,t,v
which I map to
g -> ground
o -> gpio00
r -> Rx
t -> Tx
v -> Vcc
I confirmed those using a multimeter and probing the tuya chip (TYWE3S) and the connectors. When I try to flash it I ground gpio00 when I connect the usb port. Am I missing something?
Thanks for coming back to me. Those mapping were not the connections I made but how I interpreted the single letter label. I did connect the Tx to Rx and vice-versa. I’m using Windows 10 with NodeMCU-PyFlasher-4.0-x64.exe which I successfully used to flashed other esp8266. No sure why it never worked with this switch. I was able to flash it using the Tuya OTA flash method.
As I said above I used my raspberry pi with raspbian loaded and used esptool. If you have a spare microsd just load raspbian up and install esptool then use your raspberry pi that hassio runs on to program your switch.
No unfortunately and thanks for your help. I will try again in the future when I get another switch. For now the ota method worked. I just can’t mess-up with any future update as I will need to try to connect to it again
To anyone thinking buying those Nue 3A wall switch, beware! I’ve been trying to do the Tuya OTA update on a recently bought Nue 3A but it was not working, I then opened the switch to realized that they replaced the ESP8266 chip with a Realtek Rtl8710bn Tuya Wr3 WiFi! This chip is not compatible with Tasmota or other ESP8266 based chips!
The 3 traces on the left control the front LEDS and relays. The EN pin is connected to VCC. The following 3 pins are connected to the touch sensors. The pin just before VCC is connected to ground. As someone else suggested, the pinout looks very similar to a ESP-12E so my plan is to replace the chip with a ESP-12E and hope for the best. I already removed the chip and waiting for my ESP to arrive :
It works!! I flashed Tasmota before soldering the ESP-12E and programmed GPIO5 to Relay1 and GPIO14 to Button1 and it work beautifully!! So it is mostly possible to replace any device with the new Tuya WR3 chip (Realtek Rtl8710bn) with our old ESP-12E