Kogan Smart Kettle

Thanks Aaron. I’ve de-soldered the boards. Last confirmation before I attempt.

Should the TYWE3S have both GND and GPI0-0 connected to the GND of the serial flasher? If so I’ll just solder the 3 together.

I haven’t seen any mention of connecting VCC. Is that the connection labelled 3.3v here https://user-images.githubusercontent.com/3240875/43324672-578ffcbc-917a-11e8-800c-f1d008ca3cf4.JPG

If so, do I just connect that to the 3.3v connection on the flasher?

Yes, VCC is 3.3v. make sure your board is outputting 3.3v (I fried an ESP8266 with 5v before).

Should the TYWE3S have both GND and GPI0-0 connected to the GND of the serial flasher? If so I’ll just solder the 3 together.

That’s fine, but remember, you need to disconnect gpio 0 from GND after flashing (and reboot by disconnecting power and reconnecting) to configure tasmota over wifi.

When the cyclic update happens from NodeRed -> Home assistant, the user ID is attached in the message. you can do this to ignore the state change triggered by nodered in nodered.

msg.data.event.new_state.context.user_id will give u the user id that triggers the state change,
you just need to make sure it’s != your node red’s user id. which can be found in /config/users

So my laptop is picking up the ESP, but it’s failing to read and write from/to the flash. Any ideas?

I have soldered the connections per the sample above.

ESP/SERIAL
RX -> TX
TX > RX
GPI0 > GND
GND - > GND
(the above two are spliced into one dodgy wire connecting to the flasher GND)
VCC -> 3.3V

Could my solder connections just be bad?

nub@laptop:~$ esptool.py --port /dev/ttyUSB0 write_flash -fs 1MB -fm dout 0x0 ./Downloads/tasmota.bin
esptool.py v3.0
Serial port /dev/ttyUSB0
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: ec:fa:bc:7a:c5:7b
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Compressed 601072 bytes to 429021...
Wrote 601072 bytes (429021 compressed) at 0x00000000 in 37.7 seconds (effective 127.6 kbit/s)...
Traceback (most recent call last):
  File "/home/nub/.local/bin/esptool.py", line 386, in command
    p = self.read()
  File "/home/nub/.local/bin/esptool.py", line 331, in read
    return next(self._slip_reader)
  File "/home/nub/.local/bin/esptool.py", line 2632, in slip_reader
    read_bytes = port.read(1 if waiting == 0 else waiting)
  File "/home/nub/.local/lib/python3.8/site-packages/serial/serialposix.py", line 595, in read
    raise SerialException(
serial.serialutil.SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nub/.local/lib/python3.8/site-packages/serial/serialposix.py", line 398, in _reconfigure_port
    orig_attr = termios.tcgetattr(self.fd)
termios.error: (5, 'Input/output error')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nub/.local/bin/esptool.py", line 3969, in <module>
    _main()
  File "/home/nub/.local/bin/esptool.py", line 3962, in _main
    main()
  File "/home/nub/.local/bin/esptool.py", line 3604, in main
    operation_func(esp, args)
  File "/home/nub/.local/bin/esptool.py", line 3011, in write_flash
    res = esp.flash_md5sum(address, uncsize)
  File "/home/nub/.local/bin/esptool.py", line 113, in inner
    return func(*args, **kwargs)
  File "/home/nub/.local/bin/esptool.py", line 780, in flash_md5sum
    res = self.check_command('calculate md5sum', self.ESP_SPI_FLASH_MD5, struct.pack('<IIII', addr, size, 0, 0),
  File "/home/nub/.local/bin/esptool.py", line 413, in check_command
    val, data = self.command(op, data, chk, timeout=timeout)
  File "/home/nub/.local/bin/esptool.py", line 402, in command
    self._port.timeout = saved_timeout
  File "/home/nub/.local/lib/python3.8/site-packages/serial/serialutil.py", line 372, in timeout
    self._reconfigure_port()
  File "/home/nub/.local/lib/python3.8/site-packages/serial/serialposix.py", line 401, in _reconfigure_port
    raise SerialException("Could not configure port: {}".format(msg))
serial.serialutil.SerialException: Could not configure port: (5, 'Input/output error')

Thanks, this is now working as expected

Problem: Tried another USB port and the flash actually transmits/progresses but then fails with an MD5 mismatch.

Resolution: Solved, had to jumper the 5V and VCC connection on the CH340G for a stable 3.3v connection.

nub@laptop:/dev$ tasmotizer.py 
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 2061, resource id: 33554764, major code: 40 (TranslateCoords), minor code: 0
esptool.py v2.8
Serial port /dev/ttyUSB0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 2386, resource id: 33554772, major code: 40 (TranslateCoords), minor code: 0
esptool.py v2.8
Serial port /dev/ttyUSB0
Connecting....
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 2MB
Erasing flash (this may take a while)...
Chip erase completed successfully in 0.0s
Flash params set to 0x0330
Compressed 388096 bytes to 277941...
Wrote 388096 bytes (277941 compressed) at 0x00000000 in 24.5 seconds (effective 126.8 kbit/s)...
File  md5: c102746728349fca903c0f004f67069e
Flash md5: e2ad804368743876107b60c8672cda29
MD5 of 0xFF is dcdfaee51e7a1597d1a0c4a738bd509f
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 4621, resource id: 33554799, major code: 40 (TranslateCoords), minor code: 0

Ok managed to successfully flash the ESP, the hash is now matching. It turns out I had to ‘jumper’ the 5v and VCC connections on the CH340G for the 3v3 connection to work. Hopefully I haven’t fried anything.

However there’s now no WiFI when I power the ESP up, I’ve removed the GND and GPIO-0 connections. Do I need to re-attach the other board for WiFI to work, or is the ESP fried?

More than fair chance it is fried. All of the guides I’ve used are very clear about ensuring only 3.3V is used.

Are you able to connect to the chip via serial?
Try using something like Termite (http://termie.sourceforge.net/)
and connect to the serial port (with GPIO0 NOT grounded).
then try the command like status 1 to see if it returns anything.
if this works fine, try using the commands to setup wifi and see if it connects.

ESP8266 chips are pretty tough, though 5v can fry it, but unless it’s been connected for a very long time at 5v, it should be okay.

No response via serial terminal unfortunately. I’ll see if I can source a replacement TYWE3S. Thanks for all your help guys.

would it be under warranty though?

That’s a good point, it is. :smirk:

HI guys, I’ve brought one of these jugs and just in the process of reflashing it and I’ve also notice what I suspect is the step down transformer on the power board is make a very high pitch sound, so much I don’t like keeping the jug on the base. I’ve tried to take AC voltage reading but can not get a reading. Does anyone have the specs for this component, or even the pins I should be taken the reading from as I might just have those wrong :frowning:

Ill be ask for a replacement

got mine in jan 2020 and used everyday has not mis a beat

I’ve just done Tuya convert, but all I get is a switch and its just marked as on all the time. Toggling does nothing.
What type did you set this as to get these?

Hi Sean, I didn’t tuya convert, instead used LocalTuya with the stock firmware that ships with the kettle, so I can’t help you.

Sorry stupid auto-correct, I’ve just done Tuya Local, what did you set the device type too when you added it?

I bought one of these in October last year, any ideas if it can be flashed OTA?
Not done any flashing before, and can’t seem to find much in the way of a guide for this device, if anyone can help?

try this way

it mite work

This is what I get when using local tuya and setting it as a switch.
I’ve tried binary sensor too, how did you get the two, and what type did you set it up as?