I couldn’t get it to flash using this USB to serial. I constantly got stuck on
Connecting… … … … … … … … … …
A fatal error occurred: Failed to connect to Espressif device: Timed out waiting for packet header
I wired it like this:
3.3v to VCC (top left in the picture)
Ground to GND (bottom left)
TXD to TXD (bottom right)
RXD to RXD (2nd from bottom right)
CTS to GPIO0 (3rd from bottom left).
I think I stuffed that last one up… my switch still works though. Actually, the LED on the board didn’t even come on while I plugged it into the serial adapter.
I’ll have a crack again on the weekend if someone has any ideas?
Note: My board looks more like this and this one, without the holes on the right hand side where the VCC/GND/TX/RX stuff is.
boc,
I can also recommend the Fronius system for integration into HA. But I think it also needs to have the Smart Meter. It looks like an entire meter, but is only the size of a breaker switch, so like the size of a matchbox really. I am using the integration to trigger my AC to turn on and heat/cool if there is enough sustained export - leveraging the system.
You dont need the Fronius smart meter. The inverter will provide generation figures and you can use any of many methods to determine grid import / export. eg: I use IotaWatt
Thanks BradAU,
I have completed my first tuya-convert. The Gen 2 Kogan Smart Plugs with USB are up and running in ESPhome now with power monitoring. Great plug for the price.
I had some difficulty with errors while compiling in ESPhome I had to remove web_server and captive_portal, as these threw errors that I could not resolve.
You are a gem and a half! Thanks, I managed to get it to work first time with your guidance.
Here are a few photos:
This is the serial setup. https://newadventuresinwi-fi.blogspot.com/2019/10/brilliant-smart-elite-glass-wall.html has really good information on it. I found using the ground from the headers which connect to the 240v board worked great. The loosey goosey purple one was connected to the RST for 3 seconds while I plugged the usb cable in and then removed it let it float about.
Just did one this evening. I wish the relays were a little quieter and that it had tactile buttons. I guess I can pretend that the relay click is audio feedback
You got ahead of me, I didn’t find time this weekend to flash my 4-gang.
But I rung out the pins, my best guess for the control
relay1 : gpio16
relay2: gpoi4
relay3: gpio2
relay4: gpoi13
led: !gpio15
Completely untested. Does that match your 3-gang?
But I’m a bit concerned, that the 1 & 2 Gangs may no longer tuya-convert.
The purple wire which is floating around in my picture was touching the top right hand leg of the TYWE3S chip when I powered it on. If I removed the GPIO0 wire then it would stop reading/flashing the device.
@diramu - thanks for that link. GPIO0 works for my LEDLink too. I’ve submitted it to the repo, lets see if it gets approved.
Just wanted to check in with the folks who have the Grid Connect ceiling fans. Have there been any updates to the Tuya component that makes them visible in HA yet?